Skip to content

Commit 3157fcd

Browse files
committed
C++: Add some BAD annotations to SloppyGlobal test
1 parent bfd4c41 commit 3157fcd

File tree

1 file changed

+5
-5
lines changed
  • cpp/ql/test/query-tests/Best Practices/SloppyGlobal

1 file changed

+5
-5
lines changed

cpp/ql/test/query-tests/Best Practices/SloppyGlobal/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ int descriptive_name; // GOOD: sufficient
66

77
static int z; // GOOD: not a global
88

9-
int v1;
10-
int v2;
9+
int v1; // BAD: too short
10+
int v2; // BAD: too short
1111
template <typename T>
12-
T v3;
12+
T v3; // BAD: too short
1313
template <typename T>
14-
T v4;
14+
T v4; // BAD: too short
1515
template <typename T>
16-
T v5;
16+
T v5; // BAD: too short
1717

1818
void use_some_fs() {
1919
v2 = 100;

0 commit comments

Comments
 (0)