summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-01-20 16:15:55 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-01-20 16:15:55 +0000
commit3f5f3e7949f60f96b8b35a32dd5f517cd03cc036 (patch)
tree3df0ad02e9b490c46f86bb375d1bd5d69518e241 /clang
parent4f5f0b78a11f40be7f82602772202a54ed693826 (diff)
downloadbcm5719-llvm-3f5f3e7949f60f96b8b35a32dd5f517cd03cc036.tar.gz
bcm5719-llvm-3f5f3e7949f60f96b8b35a32dd5f517cd03cc036.zip
Formatting cleanups; no functional changes.
llvm-svn: 199671
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 0c78ffec391..054cb6afbde 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -3786,8 +3786,7 @@ DLLImportAttr *Sema::mergeDLLImportAttr(Decl *D, SourceRange Range,
}
}
- return ::new (Context)DLLImportAttr(Range, Context,
- AttrSpellingListIndex);
+ return ::new (Context) DLLImportAttr(Range, Context, AttrSpellingListIndex);
}
static void handleDLLImportAttr(Sema &S, Decl *D, const AttributeList &Attr) {
@@ -3799,7 +3798,7 @@ static void handleDLLImportAttr(Sema &S, Decl *D, const AttributeList &Attr) {
// specified.
if (!S.getLangOpts().MicrosoftExt)
S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type)
- << Attr.getName() << 2 /*variable and function*/;
+ << Attr.getName() << ExpectedVariableOrFunction;
return;
}
@@ -3826,13 +3825,12 @@ DLLExportAttr *Sema::mergeDLLExportAttr(Decl *D, SourceRange Range,
if (D->hasAttr<DLLExportAttr>())
return NULL;
- return ::new (Context)DLLExportAttr(Range, Context,
- AttrSpellingListIndex);
+ return ::new (Context) DLLExportAttr(Range, Context, AttrSpellingListIndex);
}
static void handleDLLExportAttr(Sema &S, Decl *D, const AttributeList &Attr) {
// Currently, the dllexport attribute is ignored for inlined functions, unless
- // the -fkeep-inline-functions flag has been used. Warning is emitted;
+ // the -fkeep-inline-functions flag has been used. Warning is emitted.
if (isa<FunctionDecl>(D) && cast<FunctionDecl>(D)->isInlineSpecified()) {
// FIXME: ... unless the -fkeep-inline-functions flag has been used.
S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName();
OpenPOWER on IntegriCloud