Skip to content

Clang-Tidy not excluding system headers #65175

@FaiqueAli

Description

@FaiqueAli

Hi everyone,
I am trying to analyze a project on Ubuntu using clang-tidy version

Ubuntu LLVM version 14.0.0

  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: tigerlake

but I am getting a lot of errors from system header files.
I have created a compile_command.json file and also added the path of system header files in compile_command.json file to ignore system headers.
Similarly, I used the //NOLINT option and still got errors from the system header files.

I executed clang-tidy -checks='cppcoreguidelines' -header-filter=.* -p path/compile_commands.json src/*.cpp
here is the output of the command clang-tidy-output.txt

looking for help to resolve the issue.
Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang-tidyinvalidResolved as invalid, i.e. not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions