[PATCH] D35257: [clang-tidy] Add new modernize use unary assert check

Barancsuk Lilla via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 12 00:30:22 PDT 2017


barancsuk added inline comments.


================
Comment at: clang-tidy/modernize/UnaryStaticAssertCheck.cpp:32
+
+  if (!AssertMessage || AssertMessage->getLength())
+    return;
----------------
aaron.ballman wrote:
> I think this should be `!AssertMessage->getLength()`
It works correctly without the negation, otherwise the tests fail. 


https://reviews.llvm.org/D35257





More information about the cfe-commits mailing list