Skip to content

Commit b0a8064

Browse files
author
git apple-llvm automerger
committed
Merge commit '831a8b55cafe' from llvm.org/main into next
2 parents db258b0 + 831a8b5 commit b0a8064

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)