[clang-tools-extra] [clang][include-cleaner] Support ObjC @selector expressions in WalkAST (PR #212564)

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 13 11:55:15 PDT 2026


================
@@ -38,6 +41,14 @@ class NamedDecl;
 class SourceLocation;
 namespace include_cleaner {
 
+using ObjCSelectorMap =
+    llvm::DenseMap<Selector, llvm::SmallVector<NamedDecl *, 2>>;
+
+/// Builds a map from Objective-C Selectors to their declarations in the given
+/// ASTContext.
+/// This is used to optimize selector lookups during AST walking.
----------------
dmaclach wrote:

Was removed with revamp.

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


More information about the cfe-commits mailing list