Skip to content
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

[DRAFT] CodeChecker invocation for single compilation entry with customizable behaviour #4176

Open
vodorok opened this issue Feb 29, 2024 · 0 comments
Labels
analyzer 📈 Related to the analyze commands (analysis driver) new feature 👍 New feature request RFC ✒️ Request For Comments

Comments

@vodorok
Copy link
Collaborator

vodorok commented Feb 29, 2024

When prototyping the bazel integration for CodeChecker, the need emerged to have a CodeChecker analyze invocation, which produces the output to a single file, insted writing a group of files for the analysis. Bazel could invoke this command for every single compilation action (in an aspect).

The following is proposed:

The main difference compared to the standard analyze command would be:

  • A direct compiler call, (as a string) could be specified in place of the compilation database. The following example demonstrates the usage.
CodeChecker analyze --compile-action “gcc something.c” --output-file something.plist

Only a singleoutput .plist file should be generated

  • The path to this output file could be directly specified with the --otput-file option.
  • no other files such as metadata.json, compiler_info.json should be generated

The compilation and analysis directory should be the current working dir of the CodeChecker invocation.

We should consider that there might be multiple analyzers.

  • Create a "custom" plsit, containing the output of all analyzers, so we could identify the analyzer that produced the diagnostic message.

In this mode, there should not be any metadata or shared files created, instead a separate command should generate these, or compute them during store and parse.

@whisperity whisperity added RFC ✒️ Request For Comments analyzer 📈 Related to the analyze commands (analysis driver) new feature 👍 New feature request labels Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analyzer 📈 Related to the analyze commands (analysis driver) new feature 👍 New feature request RFC ✒️ Request For Comments
Projects
None yet
Development

No branches or pull requests

2 participants