================
@@ -458,3 +454,41 @@ void testOperandPermutations(std::map<int, int>& Map) {
   // CHECK-MESSAGES: :[[@LINE-1]]:{{[0-9]+}}: warning: use 'contains' to check 
for membership [readability-container-contains]
   // CHECK-FIXES: if (!Map.contains(0)) {};
 }
+
+void testStringNpos(std::string Str1, std::string Str2, std::string_view 
StrView) {
+  if (Str1.find(Str2) == std::string::npos) {};
----------------
localspook wrote:

Nit: stray semicolons after all the `if`s in this function

https://github.com/llvm/llvm-project/pull/157243
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to