[PATCH] D22367: [include-fixer] Always add as few as possible qualifiers to the unidentified symbol.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 09:50:42 PDT 2016


bkramer accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: include-fixer/IncludeFixerContext.cpp:54
@@ -49,2 +53,3 @@
 
-  return FullyQualifiedName;
+  auto FullySymbolQualifiers = SplitQualifiers(FullyQualifiedName);
+  auto ScopedQualifiers = SplitQualifiers(SymbolScopedQualifiersName);
----------------
Add a comment that you're trying to find the minimal scope qualifier here.


https://reviews.llvm.org/D22367





More information about the cfe-commits mailing list