[clang-tools-extra] [include-cleaner] Handle symbols from system headers. (PR #66089)

kadir çetinkaya via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 18 03:20:58 PDT 2023


================
@@ -188,6 +290,20 @@ llvm::SmallVector<Hinted<Header>> findHeaders(const SymbolLocation &Loc,
     OptionalFileEntryRef FE = SM.getFileEntryRefForID(FID);
     if (!FE)
       return {};
+
+    if (SrcMgr::isSystem(
----------------
kadircet wrote:

i am afraid this check might be overly strict, maybe drop this initially and see if we have too many false-positives?

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


More information about the cfe-commits mailing list