Added negated string literals to the set of IsAlwaysFalse expressions to avoid flagging of
assert(!"msg")
Differential D33827
[clang-tidy] misc-static-assert shouldn't flag assert(!"msg") fgross on Jun 2 2017, 6:20 AM. Authored by
Details Added negated string literals to the set of IsAlwaysFalse expressions to avoid flagging of assert(!"msg")
Diff Detail
Event TimelineComment Actions While not directly related to this Differential, i wonder if it would make sense to also not warn on calls to (especially non-member) functions marked with __attribute__((const)), maybe __attribute__((pure)) too. |