The misc-static-assert check will not warn on the followings:
- assert("Some message" == NULL);
- assert(NULL == "Some message");
Added corresponding test cases.
Differential D8920
[clang-tidy] Fix for Bug 23161 eszasip on Apr 9 2015, 6:32 AM. Authored by
Details
Diff Detail Event TimelineComment Actions The new fix handles the case when NULL is defined as ((T)0), where T is an arbitrary type.
Comment Actions The result type of the cast (in the definition of NULL) is restricted to T*.
Comment Actions Committed in r234596 Thanks. |
Maybe wrap anyOf in an expr() and use .bind() on it?