aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-09-03 03:30:59 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-09-03 03:30:59 +0000
commitd77ba899b3ed39aa4bdba22aabc4bcd5ca6effdf (patch)
treef2674b775a3e99540e7f12e3b87bbcd2d283d2b2 /lib/Sema/SemaDeclAttr.cpp
parentbf3380a317ab09ae7f23c1bc17cb562f8175a986 (diff)
Make helpers static, remove unused variables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--lib/Sema/SemaDeclAttr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index ae4cef952d..0483552c51 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -274,16 +274,16 @@ static const RecordType *getRecordType(QualType QT) {
/// \brief Thread Safety Analysis: Checks that the passed in RecordType
/// resolves to a lockable object. May flag an error.
-bool checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr,
- const RecordType *RT) {
+static bool checkForLockableRecord(Sema &S, Decl *D, const AttributeList &Attr,
+ const RecordType *RT) {
// Flag error if could not get record type for this argument.
- if(!RT) {
+ if (!RT) {
S.Diag(Attr.getLoc(), diag::err_attribute_argument_not_class)
<< Attr.getName();
return false;
}
// Flag error if the type is not lockable.
- if(!RT->getDecl()->getAttr<LockableAttr>()) {
+ if (!RT->getDecl()->getAttr<LockableAttr>()) {
S.Diag(Attr.getLoc(), diag::err_attribute_argument_not_lockable)
<< Attr.getName();
return false;