Nested forward declarations of self

Hello,

When I try to use shouldVisitImplicitCode() with a
RecursiveASTVisitor, I get some results I don't understand.

I can reproduce this with the following code, modelled after
ToolingTests/RecursiveASTVisitorTest.cpp;

If you look in the C++ standard, there's this concept of "injected
class name", which I think is what this is supposed to model.

-- Sean Siva

Hello Kim,

C++11 [class] p2:
A class-name is inserted into the scope in which it is declared
immediately after the class-name is seen. The class-name is also
inserted into the scope of the class itself; this is known as the
injected-class-name. [...]

Dmitri

RecordDecl::isInjectedClassName().

Thank you both, that helped!

- Kim