We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 819e9f9 commit 07840ddCopy full SHA for 07840dd
cpp/common/test/rules/nonbooleanifstmt/test.cpp
@@ -46,3 +46,16 @@ void test_boolean_conditions() {
46
if (a) { // COMPLIANT - a has an explicit operator bool()
47
}
48
49
+
50
+template <typename T> bool test_fp_reported_in_10a(T &p1) {
51
+ if (p1.length() > 10) { // COMPLIANT
52
+ return true;
53
+ }
54
+ return false;
55
+}
56
57
+#include <string>
58
+void test_fp_reported_in_10b() {
59
+ std::string s;
60
+ test_fp_reported_in_10a(s);
61
0 commit comments