TEST_DIFFERENCE : QUERY : PreProcessorShallOnlyBeUsedForCertainDirectivesPatternsPACKAGE : MacrosCOMPILE_ERROR_OUTPUT : SUITE : AUTOSARTEST_PASS : TrueCOMPILE_PASS : TrueRULE : A16-0-1TEST_DIFFERENCE : QUERY : UseOfReservedLiteralSuffixIdentifierPACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : ReuseOfReservedIdentifierPACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : UseOfDoubleUnderscoreReservedPrefixPACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : FunctionReusesReservedNamePACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : RedefiningOfStandardLibraryNamePACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : UseOfSingleUnderscoreReservedPrefixPACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : ObjectReusesReservedNamePACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPPTEST_DIFFERENCE : QUERY : EnumeratorReusesReservedNamePACKAGE : NamingCOMPILE_ERROR_OUTPUT : [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:7: warning: "SIZE_MAX" redefined [2023-03-10 19:17:23] [build-stderr] #define SIZE_MAX 256 // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/lib/gcc/x86_64-linux-gnu/8/include/stdint.h:9, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdint:41, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:1: [2023-03-10 19:17:23] [build-stderr] /usr/include/stdint.h:227: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] # define SIZE_MAX (18446744073709551615UL) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:37: warning: "FD_SET" redefined [2023-03-10 19:17:23] [build-stderr] #define FD_SET(X) \ [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/x86_64-linux-gnu/sys/types.h:179, [2023-03-10 19:17:23] [build-stderr] from /usr/include/stdlib.h:394, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/cstdlib:75, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/string_conversions.h:41, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:6400, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/x86_64-linux-gnu/sys/select.h:85: note: this is the location of the previous definition [2023-03-10 19:17:23] [build-stderr] #define FD_SET(fd, fdsetp) __FD_SET (fd, fdsetp) [2023-03-10 19:17:23] [build-stderr] [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:18:5: error: conflicting declaration 'int tzname' [2023-03-10 19:17:23] [build-stderr] int tzname = 0; // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] In file included from /usr/include/pthread.h:23, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr-default.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/x86_64-linux-gnu/c++/8/bits/gthr.h:148, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/ext/atomicity.h:35, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/bits/basic_string.h:39, [2023-03-10 19:17:23] [build-stderr] from /usr/include/c++/8/string:52, [2023-03-10 19:17:23] [build-stderr] from /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:2: [2023-03-10 19:17:23] [build-stderr] /usr/include/time.h:166:14: note: previous declaration as 'char* tzname [2]' [2023-03-10 19:17:23] [build-stderr] extern char *tzname[2]; [2023-03-10 19:17:23] [build-stderr] ^~~~~~ [2023-03-10 19:17:23] [build-stderr] /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp:22:30: warning: literal operator suffixes not preceded by '_' are reserved for future standardization [-Wliteral-suffix] [2023-03-10 19:17:23] [build-stderr] void operator"" x(long double); // NON_COMPLIANT [2023-03-10 19:17:23] [build-stderr] ^ [2023-03-10 19:17:24] [ERROR] Spawned process exited abnormally (code 1; tried to run: [/__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql/tools/linux64/preload_tracer, g++, -std=c++14, -fsyntax-only, /__w/codeql-coding-standards-release-engineering/codeql-coding-standards-release-engineering/codeql-coding-standards/cpp/cert/test/rules/DCL51-CPP/test.cpp]) SUITE : CERT-C++TEST_PASS : FalseCOMPILE_PASS : FalseRULE : DCL51-CPP
Description
fixes#215
fixes#232
Change request type
.ql,.qll,.qlsor unit tests)Rules with added or modified queries
Release change checklist
A change note (development_handbook.md#change-notes) is required for any pull request which modifies:
If you are only adding new rule queries, a change note is not required.
Author: Is a change note required?
🚨🚨🚨
Reviewer: Confirm that format ofshared queries (not the .qll file, the
.ql file that imports it) is valid by running them within VS Code.
Reviewer: Confirm that either a change note is not required or the change note is required and has been added.
Query development review checklist
For PRs that add new queries or modify existing queries, the following checklist should be completed by both the author and reviewer:
Author
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.
Reviewer
As a rule of thumb, predicates specific to the query should take no more than 1 minute, and for simple queries be under 10 seconds. If this is not the case, this should be highlighted and agreed in the code review process.