summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-10-07 06:10:15 +0000
committerJohn McCall <rjmccall@apple.com>2011-10-07 06:10:15 +0000
commitf937c023bf5da08b0d218d183b0d762c60917794 (patch)
treebcf1c52d2f5dd732fcc95d110c650e0aaba4189d /clang/lib/Sema/SemaDeclAttr.cpp
parentbf136764ae7ad1e61f703822fc0df9608bd207d7 (diff)
downloadbcm5719-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/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 93efac0651b..38c0c4aef59 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -2449,7 +2449,7 @@ static void handleTransparentUnionAttr(Sema &S, Decl *D,
return;
}
- if (!RD->isDefinition()) {
+ if (!RD->isCompleteDefinition()) {
S.Diag(Attr.getLoc(),
diag::warn_transparent_union_attribute_not_definition);
return;
OpenPOWER on IntegriCloud