================
@@ -56,11 +56,14 @@ void IntegerTypesCheck::registerMatchers(MatchFinder
*Finder) {
// http://google.github.io/styleguide/cppguide.html#64-bit_Portability
// "Where possible, avoid passing arguments of types specified by
// bitwidth typedefs to printf-based APIs."
- Finder->addMatcher(typeLoc(loc(isInteger()),
- unless(hasAncestor(callExpr(
-
callee(functionDecl(hasAttr(attr::Format)))))))
- .bind("tl"),
- this);
+ Finder->addMatcher(
+ typeLoc(loc(isInteger()),
+ unless(anyOf(hasAncestor(callExpr(
+ callee(functionDecl(hasAttr(attr::Format))))),
+ hasParent(parmVarDecl(hasAncestor(functionDecl(
+ matchesName("operator\"\".*$"))))))))
----------------
felix642 wrote:
Thank you, didn't think about this
https://github.com/llvm/llvm-project/pull/78859
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits