[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:54:18 PDT 2026


================
@@ -39,8 +43,42 @@ bool isOperatorNewDelete(OverloadedOperatorKind OpKind) {
 using DeclCallback =
     llvm::function_ref<void(SourceLocation, NamedDecl &, RefType)>;
 
+class ObjCSelectorDeclMapBuilder
+    : public RecursiveASTVisitor<ObjCSelectorDeclMapBuilder> {
+public:
+  ObjCSelectorMap takeMap() { return std::move(Map); }
+
+  bool TraverseDecl(clang::Decl *D) {
----------------
dmaclach wrote:

Think I cleaned this up

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


More information about the cfe-commits mailing list