[PATCH] [clang-tidy] Assert related checkers

Gábor Horváth xazax.hun at gmail.com
Thu Feb 26 00:30:55 PST 2015


================
Comment at: clang-tidy/misc/StaticAssertCheck.cpp:72
@@ +71,3 @@
+
+  if (MacroName != "assert" || !Condition->isEvaluatable(*ASTCtx))
+    return;
----------------
alexfh wrote:
> I wonder if it's intentional that the other check has an option for assert macro names and this one doesn't. 
I think the fixit might not be valid for a custom assert. Once custom assert macros are supported either those should not be rewritten or it should be configurable whether to rewrite custom macros or not. Or we can just rely on that the users won't run this checker with custom asserts configured and apply fixits mode. What do you think?

http://reviews.llvm.org/D7375

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list