Disable case check for external headers and sources? #1984
-
As the title says, is there a way to disable clang-format feature for external headers and sources, while keeping enabled for my own headers and sources? It really bothers when you browse an external header or source for reference, tons of warnings flood you over. |
Beta Was this translation helpful? Give feedback.
Answered by
HighCommander4
Mar 27, 2024
Replies: 1 comment 2 replies
-
Could you elaborate please about what "case check" you are referring to and how to enable it? A code example always helps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can scope clangd config file entries to a directory using
PathMatch
orPathExclude
(https://clangd.llvm.org/config.html#if).So, you could e.g. exclude directories containing third-party library code, or only include directories containing your own code.