================
@@ -50,38 +50,52 @@ void FoldInitTypeCheck::registerMatchers(MatchFinder 
*Finder) {
       hasType(hasCanonicalType(IteratorWithValueType("Iter2ValueType"))));
   const auto InitParam = parmVarDecl(hasType(BuiltinTypeWithId("InitType")));
 
+  // Transparent standard functors that preserve arithmetic conversion 
semantics
+  const auto TransparentFunctor = expr(hasType(
+      hasCanonicalType(recordType(hasDeclaration(cxxRecordDecl(hasAnyName(
+          "::std::plus", "::std::minus", "::std::multiplies", "::std::divides",
----------------
vbvictor wrote:

Agree that FN is a lot better than FP.
Some people consider checks unrelaible if there are only a couple of FP over 
whole codebase.

https://github.com/llvm/llvm-project/pull/183300
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to