aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:19 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:19 +0000
commita96022c365a183f89ea81fa3f294ee7f436556b9 (patch)
tree07f5a8e81615bd2356a02686022db49132319137 /lib/Sema/SemaDeclAttr.cpp
parent743b82bf3c500de45715498dbf25f0fb39e71462 (diff)
Funciton -> Function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122709 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--lib/Sema/SemaDeclAttr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 22b373dbe9..0e8ba23ca4 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -579,7 +579,7 @@ static void HandleOwnershipAttr(Decl *d, const AttributeList &AL, Sema &S) {
start, size));
}
-static bool isStaticVarOrStaticFunciton(Decl *D) {
+static bool isStaticVarOrStaticFunction(Decl *D) {
if (VarDecl *VD = dyn_cast<VarDecl>(D))
return VD->getStorageClass() == SC_Static;
if (FunctionDecl *FD = dyn_cast<FunctionDecl>(D))
@@ -629,7 +629,7 @@ static void HandleWeakRefAttr(Decl *d, const AttributeList &Attr, Sema &S) {
// This looks like a bug in gcc. We reject that for now. We should revisit
// it if this behaviour is actually used.
- if (!isStaticVarOrStaticFunciton(d)) {
+ if (!isStaticVarOrStaticFunction(d)) {
S.Diag(Attr.getLoc(), diag::err_attribute_weakref_not_static) <<
dyn_cast<NamedDecl>(d)->getNameAsString();
return;
@@ -1257,7 +1257,7 @@ static void HandleWeakAttr(Decl *D, const AttributeList &Attr, Sema &S) {
}
/* weak only applies to non-static declarations */
- if (isStaticVarOrStaticFunciton(D)) {
+ if (isStaticVarOrStaticFunction(D)) {
S.Diag(Attr.getLoc(), diag::err_attribute_weak_static) <<
dyn_cast<NamedDecl>(D)->getNameAsString();
return;