[clang-tools-extra] [clangd] Add config option to allow detection of unused system headers (PR #87208)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Fri May 10 01:26:25 PDT 2024


================
@@ -114,6 +114,7 @@ struct Config {
     /// these regexes.
     struct {
       std::vector<std::function<bool(llvm::StringRef)>> IgnoreHeader;
+      bool AnalyzeSystemHeaders = false;
----------------
kadircet wrote:

can you move the comment about regexes near  `IgnoreHeader`.

Also I think `AnalyzeAngledIncludes` would be a more fitting name, WDYT?

https://github.com/llvm/llvm-project/pull/87208


More information about the cfe-commits mailing list