[all-commits] [llvm/llvm-project] 0edeae: [Clang] Store AST context in declaration contexts
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Tue Sep 22 04:09:51 PDT 2026
Branch: refs/heads/users/mamini/clang-speed-declcontext-relationship-cache
Home: https://github.com/llvm/llvm-project
Commit: 0edeaebf6ac4e095599c6e10adacdc933b4de068
https://github.com/llvm/llvm-project/commit/0edeaebf6ac4e095599c6e10adacdc933b4de068
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M clang/include/clang/AST/Decl.h
M clang/include/clang/AST/DeclBase.h
M clang/include/clang/AST/DeclCXX.h
M clang/include/clang/AST/DeclObjC.h
M clang/include/clang/AST/DeclOpenMP.h
M clang/include/clang/AST/DeclTemplate.h
M clang/lib/AST/Decl.cpp
M clang/lib/AST/DeclBase.cpp
M clang/lib/AST/DeclCXX.cpp
M clang/lib/AST/DeclObjC.cpp
M clang/lib/AST/DeclOpenMP.cpp
M clang/lib/AST/DeclTemplate.cpp
M clang/unittests/AST/DeclTest.cpp
Log Message:
-----------
[Clang] Store AST context in declaration contexts
Store the owning ASTContext directly in each DeclContext and route declarations
through that direct path. This removes the nullable cache and translation-unit
walk from Decl::getASTContext().
Assisted-by: Codex
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list