Skip to content

Commit 277bd09

Browse files
committed
Revert "Add dump info for VarDecl"
This reverts commit 831a8b5. Other test need to be updated too
1 parent b8a814e commit 277bd09

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

clang/lib/AST/TextNodeDumper.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2461,27 +2461,13 @@ void TextNodeDumper::VisitVarDecl(const VarDecl *D) {
24612461
break;
24622462
case VarDecl::ParenListInit:
24632463
OS << " parenlistinit";
2464-
break;
24652464
}
24662465
}
24672466
if (D->needsDestruction(D->getASTContext()))
24682467
OS << " destroyed";
24692468
if (D->isParameterPack())
24702469
OS << " pack";
24712470

2472-
VarDecl::DefinitionKind K = D->isThisDeclarationADefinition();
2473-
switch (K) {
2474-
case VarDecl::DefinitionKind::DeclarationOnly:
2475-
OS << " declaration";
2476-
break;
2477-
case VarDecl::DefinitionKind::Definition:
2478-
OS << " definition";
2479-
break;
2480-
case VarDecl::DefinitionKind::TentativeDefinition:
2481-
OS << " tentative definition";
2482-
break;
2483-
}
2484-
24852471
if (const auto *Instance = D->getTemplateInstantiationPattern()) {
24862472
OS << " instantiated_from";
24872473
dumpPointer(Instance);

0 commit comments

Comments
 (0)