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

[analyzer] Handle getting options for old analyzer version #3297

Conversation

csordasmarton
Copy link
Contributor

@csordasmarton csordasmarton commented Apr 30, 2021

Closes #3296

In case of Clang Static Analyzer we try to get analyzer / checker configuration options by using the -analyzer-config-help / -analyzer-checker-option-help options which were introduced in Clang 8.

The problem can be reproduced with clang <7 and with the following commands:

CodeChecker analyzers --analyzer-config clangsa
CodeChecker checkers --checker-config --analyzers clangsa

With this patch we will handle the use case when someone is using an older version of clang which doesn't support these options.

@csordasmarton csordasmarton added bugfix 🔨 analyzer 📈 Related to the analyze commands (analysis driver) labels Apr 30, 2021
@csordasmarton csordasmarton added this to the release 6.16.0 milestone Apr 30, 2021
@csordasmarton csordasmarton requested a review from bruntib April 30, 2021 08:12
In case of Clang Static Analyzer we try to get analyzer / checker configuration
options by using the `-analyzer-config-help` / `-analyzer-checker-option-help`
options which were introduced in Clang 8.

With this patch we will handle the use case when someone is using an older version
of clang which doesn't support these options.
@csordasmarton csordasmarton force-pushed the handle_get_old_clang_version_configs branch from 51cbf72 to 1d2e7a1 Compare April 30, 2021 08:15
@csordasmarton csordasmarton merged commit bdcb5c4 into Ericsson:master May 17, 2021
@csordasmarton csordasmarton deleted the handle_get_old_clang_version_configs branch January 28, 2022 09:52
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) bugfix 🔨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error: unknown argument: '-analyzer-config-help'
2 participants