================
@@ -924,6 +930,50 @@ class ReportInTemplateContainerNonEmptyMethod {
}
};
+namespace GH198494 {
+
+void testStdSize(const std::string &str, std::vector<int> vect) {
+ if (std::size(vect))
+ ;
+ // CHECK-MESSAGES: :[[@LINE-2]]:7: warning: the 'empty' method should be
used to check for emptiness instead of 'size' [readability-container-size-empty]
----------------
zeyi2 wrote:
```suggestion
// CHECK-MESSAGES: :[[@LINE-2]]:7: warning: the 'empty' method should be used
to check for emptiness instead of 'size'
```
Same as other places.
https://github.com/llvm/llvm-project/pull/201231
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits