[PATCH] [clang-tidy] Fix for Bug 23161
Alexander Kornienko
alexfh at google.com
Thu Apr 9 10:14:03 PDT 2015
================
Comment at: clang-tidy/misc/StaticAssertCheck.cpp:84
@@ -77,3 +83,3 @@
// False literal is not the result of macro expansion.
- if (IsAlwaysFalse) {
+ if (IsAlwaysFalse && (!CastExpr || CastType.endswith("*"))) {
SourceLocation FalseLiteralLoc =
----------------
Wait, doesn't `CastExpr->getType().isPointerType()` work?
http://reviews.llvm.org/D8920
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the cfe-commits
mailing list