void DeclPrinter::Print(AccessSpecifier AS) {
switch(AS) {
- case AS_none: break;
+ case AS_none: assert(0 && "No access specifier!"); break;
case AS_public: Out << "public"; break;
case AS_protected: Out << "protected"; break;
case AS_private: Out << " private"; break;
if (Base->isVirtual())
Out << "virtual ";
- Print(Base->getAccessSpecifierAsWritten());
+ AccessSpecifier AS = Base->getAccessSpecifierAsWritten();
+ if (AS != AS_none)
+ Print(AS);
Out << " " << Base->getType().getAsString(Policy);
}
}
D->getTargetNestedNameSpecifier()->print(Out, Policy);
Out << D->getTargetName().getAsString();
}
-
-