Issue 169602
Summary clang-tidy ignoring compilation database compiler options when single check specified.
Labels clang-tidy
Assignees
Reporter IanCollins
    I have a strange issue with clang-tidy.  For one specific file, running with our default .clang-tidy picks up two warnings, one of which is `performance-for-range-copy`.  If I re-run with the following command, a bunch of `clang-diagnostic-format-security` errors are flagged:

`clang-tidy-21 --header-filter='-*' --checks='-*,performance-for-range-copy' -p=<path to compile commands directory> <target file>`

The compile_commands.json entry for the files *does* include `-no-format-security`!

Is there a way to see the commands passed to clang under the hood?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to