-
Notifications
You must be signed in to change notification settings - Fork 113
Adding C++ compiler diagnostic messages to the database #403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
clang::DiagnosticConsumer is handling the diagnostic messages (compilation errors, warnings, notes, etc.) during C/C++ compilation. These diagnostic messages are collected and stored in the database.
whisperity
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We need a follow up to wire reading this table in on the Web UI.
mcserep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks and works good, I only had a minor change request to remove a TODO message, then LGTM.
Am I right, that these logged messages are not available yet from the web interface? There is a getBuildLog endpoint in project.thrift, but I did found any call to it.
| const clang::Diagnostic& info_) | ||
| { | ||
| // TODO: Is this needed? | ||
| clang::DiagnosticConsumer::HandleDiagnostic(diagLevel_, info_); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only increments the numWarnings or numErrors counters. We do not use them now, so technically it is not needed, but later it could be useful, so in my opinion we shall keep it and remove the TODO.
@mcserep Yes, the similar feature was never wired in. The JS code that builds the log table UI elements is there, but that function is also nowhere called. That function would be called with the records populated by the API call. |
mcserep
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed TODO. Ready to be merged after CI passes.
clang::DiagnosticConsumeris handling the diagnostic messages (compilation errors, warnings, notes, etc.) during C/C++ compilation. These diagnostic messages are collected and stored in the database.