Skip to content

Commit eee0373

Browse files
committed
gcc-parser: use more specific regex for file location
... to avoid unnecessary collisions with code snippets
1 parent 48a6676 commit eee0373

File tree

5 files changed

+406
-1
lines changed

5 files changed

+406
-1
lines changed

gcc-parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AbstractTokenFilter: public ITokenizer {
5959
ITokenizer *slave_;
6060
};
6161

62-
#define RE_LOCATION "([^ :\"][^:\"]+)(?::([0-9]+))?(?::([0-9]+))?"
62+
#define RE_LOCATION "([^ #:\"][^:\"]+)(?::([0-9]+))?(?::([0-9]+))?"
6363
#define RE_TOOL_SUFFIX "(?: <--\\[[^\\]]+\\])?$"
6464
#define RE_EVENT_GCC "(?:(?:(?:fatal|internal) )?[a-z]+)"
6565
#define RE_EVENT_PROSPECTOR "(?:[A-Z]+[0-9]+\\[[a-z0-9]+\\])"

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ test_csgrep(csgrep "48-csparser-missing-break-key-evt")
168168
test_csgrep(csgrep "49-csparser-findbugs-jsr166" )
169169
test_csgrep(csgrep "50-gcc-parser-gcc-9.2.1" )
170170
test_csgrep(csgrep "51-gcc-parser-systemd" )
171+
test_csgrep(csgrep "52-gcc-parser-clang-nss" )
171172
test_csparser(csparser-5.8 00)
172173
test_csparser(csparser-5.8 01)
173174
test_csparser(csparser-5.8 02)

tests/csgrep/52-gcc-parser-clang-nss-args.txt

Whitespace-only changes.
Lines changed: 198 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,198 @@
1+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:2587: error: shiftTooManyBitsSigned: Shifting signed 64-bit value by 63 bits is undefined behaviour <--[cppcheck]
2+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:2587: error: shiftTooManyBitsSigned: Shifting signed 64-bit value by 63 bits is undefined behaviour <--[cppcheck]
3+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:58:20: warning: 8th function call argument is an uninitialized value <--[clang++]
4+
SECStatus rv = PK11_ImportEncryptedPrivateKeyInfoAndReturnKey(
5+
^
6+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:377:53: note: Calling 'Pk11KeyImportTestBase::Test' <--[clang++]
7+
TEST_P(Pk11KeyImportTestEC, GenerateExportImport) { Test(); }
8+
^~~~~~
9+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:47:5: note: 'key_type' declared without an initial value <--[clang++]
10+
KeyType key_type;
11+
^~~~~~~~~~~~~~~~
12+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:50:5: note: Calling 'Pk11KeyImportTestBase::GenerateAndExport' <--[clang++]
13+
GenerateAndExport(&key_type, &key_info, &public_value);
14+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:203:5: note: Control jumps to 'case 0:' at line 203 <--[clang++]
16+
ASSERT_NE(nullptr, params);
17+
^
18+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
19+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
20+
^
21+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
22+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
23+
^
24+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
25+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
26+
^
27+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
28+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
29+
^
30+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:75:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
31+
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
32+
^
33+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:876:40: note: expanded from macro 'GTEST_AMBIGUOUS_ELSE_BLOCKER_' <--[clang++]
34+
# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT
35+
^
36+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:203:5: note: Assuming the condition is false <--[clang++]
37+
ASSERT_NE(nullptr, params);
38+
^~~~~~~~~~~~~~~~~~~~~~~~~~
39+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
40+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
41+
^~~~~~~~~~~~~~~~~~~~~~~~~~~
42+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
43+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
44+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
46+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
47+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
49+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
50+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:40: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
52+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
53+
^~~~~~~~
54+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:203:5: note: Taking false branch <--[clang++]
55+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
56+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
57+
^
58+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
59+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
60+
^
61+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
62+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
63+
^
64+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
65+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
66+
^
67+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
68+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
69+
^
70+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:203:5: note: Returning without writing to '*key_type' <--[clang++]
71+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
72+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
73+
^
74+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
75+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
76+
^
77+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:44: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
78+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
79+
^
80+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:50:5: note: Returning from 'Pk11KeyImportTestBase::GenerateAndExport' <--[clang++]
81+
GenerateAndExport(&key_type, &key_info, &public_value);
82+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
83+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:51:5: note: Control jumps to 'case 0:' at line 51 <--[clang++]
84+
ASSERT_NE(nullptr, key_info);
85+
^
86+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
87+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
88+
^
89+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
90+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
91+
^
92+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
93+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
94+
^
95+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
96+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
97+
^
98+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:75:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
99+
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
100+
^
101+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:876:40: note: expanded from macro 'GTEST_AMBIGUOUS_ELSE_BLOCKER_' <--[clang++]
102+
# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT
103+
^
104+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:51:5: note: Assuming the condition is true <--[clang++]
105+
ASSERT_NE(nullptr, key_info);
106+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
107+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
108+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
109+
^~~~~~~~~~~~~~~~~~~~~~~~~~~
110+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
111+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
112+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
113+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
114+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
115+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
116+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
117+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
118+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
119+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:40: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
120+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
121+
^~~~~~~~
122+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:51:5: note: Taking true branch <--[clang++]
123+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
124+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
125+
^
126+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
127+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
128+
^
129+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
130+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
131+
^
132+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
133+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
134+
^
135+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
136+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
137+
^
138+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:52:5: note: Control jumps to 'case 0:' at line 52 <--[clang++]
139+
ASSERT_NE(nullptr, public_value);
140+
^
141+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
142+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
143+
^
144+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
145+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
146+
^
147+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
148+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
149+
^
150+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
151+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
152+
^
153+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:75:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
154+
GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
155+
^
156+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:876:40: note: expanded from macro 'GTEST_AMBIGUOUS_ELSE_BLOCKER_' <--[clang++]
157+
# define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: // NOLINT
158+
^
159+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:52:5: note: Assuming the condition is true <--[clang++]
160+
ASSERT_NE(nullptr, public_value);
161+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
162+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
163+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
164+
^~~~~~~~~~~~~~~~~~~~~~~~~~~
165+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
166+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
167+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
168+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
169+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
170+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
171+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
172+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
173+
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
174+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:40: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
175+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
176+
^~~~~~~~
177+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:52:5: note: Taking true branch <--[clang++]
178+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:2004:32: note: expanded from macro 'ASSERT_NE' <--[clang++]
179+
# define ASSERT_NE(val1, val2) GTEST_ASSERT_NE(val1, val2)
180+
^
181+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest.h:1986:3: note: expanded from macro 'GTEST_ASSERT_NE' <--[clang++]
182+
ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
183+
^
184+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:165:3: note: expanded from macro 'ASSERT_PRED_FORMAT2' <--[clang++]
185+
GTEST_PRED_FORMAT2_(pred_format, v1, v2, GTEST_FATAL_FAILURE_)
186+
^
187+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:146:3: note: expanded from macro 'GTEST_PRED_FORMAT2_' <--[clang++]
188+
GTEST_ASSERT_(pred_format(#v1, #v2, v1, v2), \
189+
^
190+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/gtest_pred_impl.h:76:3: note: expanded from macro 'GTEST_ASSERT_' <--[clang++]
191+
if (const ::testing::AssertionResult gtest_ar = (expression)) \
192+
^
193+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc:58:20: note: 8th function call argument is an uninitialized value <--[clang++]
194+
SECStatus rv = PK11_ImportEncryptedPrivateKeyInfoAndReturnKey(
195+
^
196+
1 warning generated.
197+
/builddir/build/BUILD/nss-3.44/nss/gtests/google_test/gtest/include/gtest/internal/gtest-port.h:2587: error: shiftTooManyBitsSigned: Shifting signed 64-bit value by 63 bits is undefined behaviour <--[cppcheck]
198+
/builddir/build/BUILD/nss-3.44/nss/gtests/pk11_gtest/pk11_import_unittest.cc: internal warning: child 8741 timed out after 30s <--[cppcheck]

0 commit comments

Comments
 (0)