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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D31130: ... Matthias Gehre via Phabricator via cfe-commits

Reply via email to