[PATCH] D22567: [include-fixer] Add mising qualifiers to all instances of an unidentified symbol.

Eric Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 20 06:32:36 PDT 2016


ioeric added a subscriber: ioeric.

================
Comment at: include-fixer/tool/ClangIncludeFixer.cpp:365
@@ +364,3 @@
+  for (const auto &Info : Context.getQuerySymbolInfos()) {
+    Replacements->insert({FilePath, Info.Range.getOffset(),
+                          Info.Range.getLength(),
----------------
Now that we insert namespace qualifiers, we might want to do a `formatReplacements` before applying them.


https://reviews.llvm.org/D22567





More information about the cfe-commits mailing list