Skip to content

[C++] Compiler diagnostics are silent in parser output #437

@whisperity

Description

@whisperity

As discovered in #432 with #403 being the potential culprit, the Clang compiler diagnostics during parse time are not printed to the parser's standard streams anymore:

When analysing CodeCompass with CodeCompass itself:

[INFO] (62/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/session.cpp
[INFO] (63/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/sessionmanager.cpp
2 warnings generated.
[INFO] (64/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/threadedmongoose.cpp
[INFO] (65/129) Parsing /home/w/Work/CodeCompass/Source/webserver/src/mongoose.c
[INFO] (66/129) Parsing /home/w/Work/CodeCompass/Source/webserver/authenticators/plain/src/plugin.cpp
2 warnings generated.

[...]

2 errors generated.
Error while processing /home/w/Work/CodeCompass/Source/plugins/cpp/test/src/cppparsertest.cpp.
[WARNING] (100/129) Parsing /home/w/Work/CodeCompass/Source/plugins/cpp/test/src/cppparsertest.cpp has been failed.

Previously, the Clang diagnostics were formatted and output as if a true compiler was running. While it's less of a problem for warnings, for errors it's challenging to understand the output (especially without booting a server) - it says 2 errors generated but never says what the errors are.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Kind: Bug ⚠️Plugin: C++Issues related to the parsing and presentation of C++ projects.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions