diff options
| author | John McCall <rjmccall@apple.com> | 2011-10-07 06:10:15 +0000 |
|---|---|---|
| committer | John McCall <rjmccall@apple.com> | 2011-10-07 06:10:15 +0000 |
| commit | f937c023bf5da08b0d218d183b0d762c60917794 (patch) | |
| tree | bcf1c52d2f5dd732fcc95d110c650e0aaba4189d /clang/lib/AST/DeclPrinter.cpp | |
| parent | bf136764ae7ad1e61f703822fc0df9608bd207d7 (diff) | |
| download | bcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.tar.gz bcm5719-llvm-f937c023bf5da08b0d218d183b0d762c60917794.zip | |
Rename TagDecl::isDefinition -> isCompleteDefinition
for better self-documenting code, since the semantics
are subtly different from getDefinition().
llvm-svn: 141355
Diffstat (limited to 'clang/lib/AST/DeclPrinter.cpp')
| -rw-r--r-- | clang/lib/AST/DeclPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/DeclPrinter.cpp b/clang/lib/AST/DeclPrinter.cpp index 7c61bae9ad1..73f5cdb1222 100644 --- a/clang/lib/AST/DeclPrinter.cpp +++ b/clang/lib/AST/DeclPrinter.cpp @@ -141,7 +141,7 @@ void Decl::printGroup(Decl** Begin, unsigned NumDecls, ++Begin; PrintingPolicy SubPolicy(Policy); - if (TD && TD->isDefinition()) { + if (TD && TD->isCompleteDefinition()) { TD->print(Out, Policy, Indentation); Out << " "; SubPolicy.SuppressTag = true; @@ -345,7 +345,7 @@ void DeclPrinter::VisitEnumDecl(EnumDecl *D) { Out << " : " << Underlying; } - if (D->isDefinition()) { + if (D->isCompleteDefinition()) { Out << " {\n"; VisitDeclContext(D); Indent() << "}"; @@ -359,7 +359,7 @@ void DeclPrinter::VisitRecordDecl(RecordDecl *D) { if (D->getIdentifier()) Out << ' ' << D; - if (D->isDefinition()) { + if (D->isCompleteDefinition()) { Out << " {\n"; VisitDeclContext(D); Indent() << "}"; @@ -670,7 +670,7 @@ void DeclPrinter::VisitCXXRecordDecl(CXXRecordDecl *D) { if (D->getIdentifier()) Out << ' ' << D; - if (D->isDefinition()) { + if (D->isCompleteDefinition()) { // Print the base classes if (D->getNumBases()) { Out << " : "; |

