[Clangd] NFC: Added fixme for checking for local/anonymous types for extracted parameters
authorShaurya Gupta <shauryab98@gmail.com>
Thu, 29 Aug 2019 15:11:59 +0000 (15:11 +0000)
committerShaurya Gupta <shauryab98@gmail.com>
Thu, 29 Aug 2019 15:11:59 +0000 (15:11 +0000)
llvm-svn: 370372

clang-tools-extra/clangd/refactor/tweaks/ExtractFunction.cpp

index 4b28416..d21db54 100644 (file)
@@ -459,6 +459,7 @@ CapturedZoneInfo captureZoneInfo(const ExtractionZone &ExtZone) {
 // Adds parameters to ExtractedFunc.
 // Returns true if able to find the parameters successfully and no hoisting
 // needed.
+// FIXME: Check if the declaration has a local/anonymous type
 bool createParameters(NewFunction &ExtractedFunc,
                       const CapturedZoneInfo &CapturedInfo) {
   for (const auto &KeyVal : CapturedInfo.DeclInfoMap) {