[PATCH] D14204: Fix crash in redundant-void-arg check.

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 30 09:33:51 PDT 2015


alexfh added inline comments.

================
Comment at: clang-tidy/modernize/RedundantVoidArgCheck.cpp:131
@@ -130,1 +130,3 @@
     StringRef GrammarLocation) {
+  if (Range.getBegin().isMacroID() || Range.getEnd().isMacroID())
+    return;
----------------
What happens if instead you pass the range through `Lexer::makeFileCharRange`? This might be a way to enable fixes at least in some trivial cases involving macros.


http://reviews.llvm.org/D14204





More information about the cfe-commits mailing list