[PATCH] D31130: B32239 clang-tidy should not warn about array to pointer decay on system macros
Matthias Gehre via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 27 13:08:58 PDT 2017
mgehre added inline comments.
================
Comment at: clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.cpp:83
+ unless(hasSourceExpression(stringLiteral())),
+ unless(sysSymbolDecayInSysHeader()))
.bind("cast"),
----------------
I would say that the check can ignore PredefinedExpr such as `__PRETTY_FUNCTION__` by
```
unless(hasSourceExpression(predefinedExpr ())),
```
https://reviews.llvm.org/D31130
More information about the cfe-commits
mailing list