summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclPrinter.cpp
diff options
context:
space:
mode:
authorMichael Han <fragmentshaders@gmail.com>2013-02-25 18:40:11 +0000
committerMichael Han <fragmentshaders@gmail.com>2013-02-25 18:40:11 +0000
commitdbe8890be22cbfd2d9e28277abb974ded8fb06ab (patch)
tree71b67bdd3a6f31205aac7b84056054b0827a5029 /clang/lib/AST/DeclPrinter.cpp
parentf9e9a9f41bef7b0200deefa27786bb3b8e25b25d (diff)
downloadbcm5719-llvm-dbe8890be22cbfd2d9e28277abb974ded8fb06ab.tar.gz
bcm5719-llvm-dbe8890be22cbfd2d9e28277abb974ded8fb06ab.zip
Fix empty declaration printing.
Don't print the semicolon when visiting an empty declaration because the semicolon will be printed as a terminator later. llvm-svn: 176035
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
-rw-r--r--clang/lib/AST/DeclPrinter.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp
index 2be0b6c8046..e2a66fb8a74 100644
--- a/clang/lib/AST/DeclPrinter.cpp
+++ b/clang/lib/AST/DeclPrinter.cpp
@@ -726,7 +726,6 @@ void DeclPrinter::VisitNamespaceAliasDecl(NamespaceAliasDecl *D) {
void DeclPrinter::VisitEmptyDecl(EmptyDecl *D) {
prettyPrintAttributes(D);
- Out << ";\n";
}
void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) {
OpenPOWER on IntegriCloud