Changeset View
Changeset View
Standalone View
Standalone View
lib/AST/ASTDumper.cpp
Show First 20 Lines • Show All 2,111 Lines • ▼ Show 20 Lines | void ASTDumper::VisitCastExpr(const CastExpr *Node) { | ||||
VisitExpr(Node); | VisitExpr(Node); | ||||
OS << " <"; | OS << " <"; | ||||
{ | { | ||||
ColorScope Color(*this, CastColor); | ColorScope Color(*this, CastColor); | ||||
OS << Node->getCastKindName(); | OS << Node->getCastKindName(); | ||||
} | } | ||||
dumpBasePath(OS, Node); | dumpBasePath(OS, Node); | ||||
OS << ">"; | OS << ">"; | ||||
if (Node->getIsPartOfExplicitCast()) | |||||
OS << " PartOfExplicitCast"; | |||||
rsmith: Our predominant convention is to use lower_snake_case for such things in `-ast-dump` (though… | |||||
} | } | ||||
void ASTDumper::VisitDeclRefExpr(const DeclRefExpr *Node) { | void ASTDumper::VisitDeclRefExpr(const DeclRefExpr *Node) { | ||||
VisitExpr(Node); | VisitExpr(Node); | ||||
OS << " "; | OS << " "; | ||||
dumpBareDeclRef(Node->getDecl()); | dumpBareDeclRef(Node->getDecl()); | ||||
if (Node->getDecl() != Node->getFoundDecl()) { | if (Node->getDecl() != Node->getFoundDecl()) { | ||||
▲ Show 20 Lines • Show All 693 Lines • Show Last 20 Lines |
Our predominant convention is to use lower_snake_case for such things in -ast-dump (though we're not exactly consistent on this...)