-
Notifications
You must be signed in to change notification settings - Fork 381
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
CodeChecker trashing all C++ files #4297
Comments
Here's an example command that it generates:
|
Could you please run |
Here are some edited output:
My compiler version is:
|
Here's the commands file. To me it seems like the
|
I've now tried to fix the compile_commands.json file by running the following Python script on it:
This will give me the following JSON:
This now fails with:
The problem seems to be that there's this common args file that is included in the clang command, which adds various flags:
This file has the following contents:
Just seems like the tool doesn't quite handle these sorts of complexities. The full debug output of the checker is:
|
Describe the bug
I have an Xcode project and I've created the compile_commands.json as follows:
Following the manual, I've then execute CodeChecker as follows:
The code checker will then print lots of output as follows:
If I after running the analyzer run
git status
I see that it has trashed every C++ file in my project. I can manually run the compilation commands in the JSON and they work just fine. Paths that it generates to the files are also correct.CodeChecker version
6.23.1
Expected behaviour
It should actually do the analysis.
Desktop (please complete the following information)
The text was updated successfully, but these errors were encountered: