From 3157fcdf793327d56c58ad48fe453c8dcf29e5fb Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Fri, 15 Aug 2025 12:07:09 +0100 Subject: [PATCH] C++: Add some BAD annotations to SloppyGlobal test --- .../query-tests/Best Practices/SloppyGlobal/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/ql/test/query-tests/Best Practices/SloppyGlobal/main.cpp b/cpp/ql/test/query-tests/Best Practices/SloppyGlobal/main.cpp index 8ec2e49e38b..e279fbf0257 100644 --- a/cpp/ql/test/query-tests/Best Practices/SloppyGlobal/main.cpp +++ b/cpp/ql/test/query-tests/Best Practices/SloppyGlobal/main.cpp @@ -6,14 +6,14 @@ int descriptive_name; // GOOD: sufficient static int z; // GOOD: not a global -int v1; -int v2; +int v1; // BAD: too short +int v2; // BAD: too short template -T v3; +T v3; // BAD: too short template -T v4; +T v4; // BAD: too short template -T v5; +T v5; // BAD: too short void use_some_fs() { v2 = 100;