56ec372a51
Declarations extracted by DeclExtractor, regardless of their type, should be moved to the parent declaration context (be it the `TranslationUnitDecl` or a `NamespaceDecl` if DefinitionShadower is enabled). This prevents the following situation: ``` root [] struct X {} foo (struct X &) @0x7f545a5ff018 root [] .stats asttree |-NamespaceDecl 0x5647ecc93780 <<invalid sloc>> <invalid sloc> __cling_N50 inline | |-VarDecl 0x5647ecc89f10 <ROOT_prompt_0:1:1, col:13> col:13 used foo 'struct X':'X' callinit | | `-CXXConstructExpr 0x5647ecc8a420 <col:13> 'struct X':'X' 'void () noexcept' | `-FunctionDecl 0x5647ecc89bc8 <input_line_8:1:1, ROOT_prompt_0:3:1> input_line_8:1:6 __cling_Un1Qu30 'void (void *)' ... |-CXXRecordDecl 0x5647ecc89c98 <line:1:1, col:11> col:8 struct X definition ``` |
||
---|---|---|
.. | ||
Interpreter | ||
MetaProcessor | ||
UserInterface | ||
Utils | ||
CMakeLists.txt |