[clang] [Clang][AST] Move NamespaceDecl bits to DeclContext (PR #98567)

2024-07-12 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: Worth noting I've been investigating in the background whether we can do the opposite transformation, i.e. move members of `*Bits` back to their respective classes without increasing size of AST nodes. If anything, for the sake of debugging experience. The prototype is here: htt

[clang] [Clang][AST] Move NamespaceDecl bits to DeclContext (PR #98567)

2024-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Krystian Stasiowski (sdkrystian) Changes Currently, `NamespaceDecl` has a member `AnonOrFirstNamespaceAndFlags` which stores a few pieces of data: - a bit indicating whether the namespace was declared `inline`, and - a bit indicating wheth

[clang] [Clang][AST] Move NamespaceDecl bits to DeclContext (PR #98567)

2024-07-11 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian created https://github.com/llvm/llvm-project/pull/98567 Currently, `NamespaceDecl` has a member `AnonOrFirstNamespaceAndFlags` which stores a few pieces of data: - a bit indicating whether the namespace was declared `inline`, and - a bit indicating whether the name