Issue 77109
Summary [clang-tidy 14]: How to exclude clang-tidy static analysis of 3rd packages in conan folder
Labels clang-tidy
Assignees
Reporter honey-speaks-tech
    Hello everyone,

I'm trying to configure clang-tidy in my C++ project folder. It's with great challenge, but so far I've achieved most of my project requirements for clang-tidy except one. clang-tidy is analysing and throwing errors from 3rd party packages in my .conan (/root/.conan/data/) folder. I tried all combinations of HeaderFilterRegex and --header-filter possible. Some example experiments are:

`#HeaderFilterRegex: '^src/app/*|^(?!/root/.conan/data/).*$'`
`HeaderFilterRegex: '^((?!/root/.conan/data/|/builds/).)*$'`

Could anyone help me sort out this issue? I was able to filter other external libraries in other ways, but not yet filter and exclude .conan packages. Please see below screenshot of clang-tidy issues throwing from 3rd party conan packages.

![image](https://github.com/llvm/llvm-project/assets/2928745/1b689582-31c9-4818-974c-284f085109ae)

#clang-tidy #exclude #static-analysis #header-filter #HeaderFilterRegex #PleaseHelp

Thanks,
Honey

Honey Sukesan

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to