================
Comment at: clang-tidy/google/GoogleTidyModule.cpp:37
@@ -36,1 +36,3 @@
bool (*Pred)(const Token &)) {
+ if (StartLoc.isMacroID() || EndLoc.isMacroID())
+ return SourceRange();
----------------
This seems a very conservative approach, as there seem to be many cases where
we can provide a fix in a macro... Perhaps we can use Lexer::makeFileCharRange?
http://reviews.llvm.org/D3611
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits