summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorChris Wailes <chris.wailes@gmail.com>2013-10-29 20:28:41 +0000
committerChris Wailes <chris.wailes@gmail.com>2013-10-29 20:28:41 +0000
commit9385f9f7c35404b423ba60e02bab56200d947de1 (patch)
treea50b98a0efcd0ba40248bfce27fbd024358a1376 /clang/lib/Sema/SemaDeclAttr.cpp
parente8cd2fad0e690cc661a54defbcfee49a1ea6fcd1 (diff)
downloadbcm5719-llvm-9385f9f7c35404b423ba60e02bab56200d947de1.tar.gz
bcm5719-llvm-9385f9f7c35404b423ba60e02bab56200d947de1.zip
Changed tests_typestate to test_typestate for consistency.
llvm-svn: 193648
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index a71d3c0d7b5..a279abbbd8e 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1202,8 +1202,8 @@ static void handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr)
Attr.getAttributeSpellingListIndex()));
}
-static void handleTestsTypestateAttr(Sema &S, Decl *D,
- const AttributeList &Attr) {
+static void handleTestTypestateAttr(Sema &S, Decl *D,
+ const AttributeList &Attr) {
if (!checkAttributeNumArgs(S, Attr, 1))
return;
@@ -1216,11 +1216,11 @@ static void handleTestsTypestateAttr(Sema &S, Decl *D,
if (!checkForConsumableClass(S, cast<CXXMethodDecl>(D), Attr))
return;
- TestsTypestateAttr::ConsumedState TestState;
+ TestTypestateAttr::ConsumedState TestState;
if (Attr.isArgIdent(0)) {
IdentifierLoc *Ident = Attr.getArgAsIdent(0);
StringRef Param = Ident->Ident->getName();
- if (!TestsTypestateAttr::ConvertStrToConsumedState(Param, TestState)) {
+ if (!TestTypestateAttr::ConvertStrToConsumedState(Param, TestState)) {
S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported)
<< Attr.getName() << Param;
return;
@@ -1232,7 +1232,7 @@ static void handleTestsTypestateAttr(Sema &S, Decl *D,
}
D->addAttr(::new (S.Context)
- TestsTypestateAttr(Attr.getRange(), S.Context, TestState,
+ TestTypestateAttr(Attr.getRange(), S.Context, TestState,
Attr.getAttributeSpellingListIndex()));
}
@@ -4878,8 +4878,8 @@ static void ProcessDeclAttribute(Sema &S, Scope *scope, Decl *D,
case AttributeList::AT_SetTypestate:
handleSetTypestateAttr(S, D, Attr);
break;
- case AttributeList::AT_TestsTypestate:
- handleTestsTypestateAttr(S, D, Attr);
+ case AttributeList::AT_TestTypestate:
+ handleTestTypestateAttr(S, D, Attr);
break;
// Type safety attributes.
OpenPOWER on IntegriCloud