File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -2481,13 +2481,27 @@ void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
24812481 break ;
24822482 case VarDecl::ParenListInit:
24832483 OS << " parenlistinit" ;
2484+ break ;
24842485 }
24852486 }
24862487 if (D->needsDestruction (D->getASTContext ()))
24872488 OS << " destroyed" ;
24882489 if (D->isParameterPack ())
24892490 OS << " pack" ;
24902491
2492+ VarDecl::DefinitionKind K = D->isThisDeclarationADefinition ();
2493+ switch (K) {
2494+ case VarDecl::DefinitionKind::DeclarationOnly:
2495+ OS << " declaration" ;
2496+ break ;
2497+ case VarDecl::DefinitionKind::Definition:
2498+ OS << " definition" ;
2499+ break ;
2500+ case VarDecl::DefinitionKind::TentativeDefinition:
2501+ OS << " tentative definition" ;
2502+ break ;
2503+ }
2504+
24912505 if (const auto *Instance = D->getTemplateInstantiationPattern ()) {
24922506 OS << " instantiated_from" ;
24932507 dumpPointer (Instance);
You can’t perform that action at this time.
0 commit comments