Open tolikzinovyev opened 3 months ago
The --file
flag must match the absolute path of files. Could you try this command?
~/.local/bin/CodeChecker analyze compile_commands.json -o ./report --analyzers clang-tidy --clean --file '*/a.cc'
It still analyzes both files.
[INFO 2024-03-11 20:46] - [1/2] clang-tidy analyzed a.cc successfully.
[INFO 2024-03-11 20:46] - [1/2] clang-tidy analyzed b.cc successfully.
Describe the bug
--file
flag has no effect when runninganalyze
.CodeChecker version 6.23.1
To Reproduce Steps to reproduce the behaviour:
git clone https://github.com/tolikzinovyev/codechecker
cd codechecker
bazel build //...
bazel run @hedron_compile_commands//:refresh_all
to generatecompile_commands.json
~/.local/bin/CodeChecker analyze compile_commands.json -o ./report --analyzers clang-tidy --clean --file a.cc
Expected behaviour Only
a.cc
is analyzed.Desktop (please complete the following information)
Additional context