like). Our goal with this visitor is to visit exactly what people type.
Reviewed by chandlerc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107497
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!D)
return true;
+ // As a syntax visitor, we want to ignore declarations for
+ // implicitly-defined declarations (ones not typed explicitly by the
+ // user).
+ if (D->isImplicit())
+ return true;
+
switch (D->getKind()) {
#define ABSTRACT_DECL(DECL)
#define DECL(CLASS, BASE) \
})
DEF_TRAVERSE_DECL(CXXRecordDecl, {
- // FIXME: don't traverse compiler-generated constructor,
- // destructor, and operator=, as they aren't written in the source
- // code.
TRY_TO(TraverseCXXRecordHelper(D));
})