Skip to content

Commit 162de1d

Browse files
committed
Always collect undeclared identifiers
1 parent a881fa9 commit 162de1d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,7 @@ int main(int argc, const char **argv) {
208208
ClangTool tool(optParser.getCompilations(), optParser.getSourcePathList());
209209

210210
ArduinoDiagnosticConsumer dc;
211-
if (outputOnlyNeededPrototypes) {
212-
dc.collectUndeclaredIdentifiersIn(undeclaredIdentifiers);
213-
}
211+
dc.collectUndeclaredIdentifiersIn(undeclaredIdentifiers);
214212
if (outputDiagnostics) {
215213
dc.outputJsonDiagnosticsTo(cout);
216214
}

0 commit comments

Comments
 (0)