summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-04-22 03:44:51 +0000
committerNico Weber <nicolasweber@gmx.de>2015-04-22 03:44:51 +0000
commit38267349ee0b9cee9e00398ede647f60841b49ff (patch)
tree0f4a529588bfab19ba93408141a38a4d6c31ce59 /clang/lib/Sema/SemaDecl.cpp
parentb534eabf9ee88b7c1102d548ea537b2ee6ee10f9 (diff)
downloadbcm5719-llvm-38267349ee0b9cee9e00398ede647f60841b49ff.tar.gz
bcm5719-llvm-38267349ee0b9cee9e00398ede647f60841b49ff.zip
Wrap to 80 columns, fix typo in comment. No behavior change.
llvm-svn: 235470
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index f6cb2829cf5..5bb39cbf147 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -5229,11 +5229,12 @@ static void checkAttributesAfterMerging(Sema &S, NamedDecl &ND) {
}
}
- // 'selectany' only applies to externally visible varable declarations.
+ // 'selectany' only applies to externally visible variable declarations.
// It does not apply to functions.
if (SelectAnyAttr *Attr = ND.getAttr<SelectAnyAttr>()) {
if (isa<FunctionDecl>(ND) || !ND.isExternallyVisible()) {
- S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data);
+ S.Diag(Attr->getLocation(),
+ diag::err_attribute_selectany_non_extern_data);
ND.dropAttr<SelectAnyAttr>();
}
}
OpenPOWER on IntegriCloud