summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:12 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-01-02 19:53:12 +0000
commited12ffb50fe55d107460f347a7e76d0ecde1d612 (patch)
treedc8eadbb2da112408dd15bff1d55c9686b892cea /clang
parent2fdea4c8f1e89f36548a92bb68f003a40c07372c (diff)
downloadbcm5719-llvm-ed12ffb50fe55d107460f347a7e76d0ecde1d612.tar.gz
bcm5719-llvm-ed12ffb50fe55d107460f347a7e76d0ecde1d612.zip
Unkown -> Unknown
llvm-svn: 122708
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Sema/Sema.h4
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp4
-rw-r--r--clang/lib/Sema/SemaExpr.cpp6
3 files changed, 7 insertions, 7 deletions
diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h
index 5ec169c6429..57f480f95df 100644
--- a/clang/include/clang/Sema/Sema.h
+++ b/clang/include/clang/Sema/Sema.h
@@ -1704,7 +1704,7 @@ public:
ParsingDeclStackState PushParsingDeclaration();
void PopParsingDeclaration(ParsingDeclStackState S, Decl *D);
void EmitDeprecationWarning(NamedDecl *D, llvm::StringRef Message,
- SourceLocation Loc, bool UnkownObjCClass=false);
+ SourceLocation Loc, bool UnknownObjCClass=false);
void HandleDelayedDeprecationCheck(sema::DelayedDiagnostic &DD, Decl *Ctx);
@@ -1712,7 +1712,7 @@ public:
// Expression Parsing Callbacks: SemaExpr.cpp.
bool DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc,
- bool UnkownObjCClass=false);
+ bool UnknownObjCClass=false);
bool DiagnosePropertyAccessorMismatch(ObjCPropertyDecl *PD,
ObjCMethodDecl *Getter,
SourceLocation Loc);
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 6977a33ac4a..22b373dbe9e 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -2904,7 +2904,7 @@ void Sema::HandleDelayedDeprecationCheck(DelayedDiagnostic &DD,
void Sema::EmitDeprecationWarning(NamedDecl *D, llvm::StringRef Message,
SourceLocation Loc,
- bool UnkownObjCClass) {
+ bool UnknownObjCClass) {
// Delay if we're currently parsing a declaration.
if (ParsingDeclDepth) {
DelayedDiagnostics.push_back(DelayedDiagnostic::makeDeprecation(Loc, D,
@@ -2919,7 +2919,7 @@ void Sema::EmitDeprecationWarning(NamedDecl *D, llvm::StringRef Message,
Diag(Loc, diag::warn_deprecated_message) << D->getDeclName()
<< Message;
else {
- if (!UnkownObjCClass)
+ if (!UnknownObjCClass)
Diag(Loc, diag::warn_deprecated) << D->getDeclName();
else
Diag(Loc, diag::warn_deprecated_fwdclass_message) << D->getDeclName();
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 30d22dafc67..e481e5ce211 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -56,7 +56,7 @@ using namespace sema;
/// referenced), false otherwise.
///
bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc,
- bool UnkownObjCClass) {
+ bool UnknownObjCClass) {
if (getLangOptions().CPlusPlus && isa<FunctionDecl>(D)) {
// If there were any diagnostics suppressed by template argument deduction,
// emit them now.
@@ -77,12 +77,12 @@ bool Sema::DiagnoseUseOfDecl(NamedDecl *D, SourceLocation Loc,
// See if the decl is deprecated.
if (const DeprecatedAttr *DA = D->getAttr<DeprecatedAttr>())
- EmitDeprecationWarning(D, DA->getMessage(), Loc, UnkownObjCClass);
+ EmitDeprecationWarning(D, DA->getMessage(), Loc, UnknownObjCClass);
// See if the decl is unavailable
if (const UnavailableAttr *UA = D->getAttr<UnavailableAttr>()) {
if (UA->getMessage().empty()) {
- if (!UnkownObjCClass)
+ if (!UnknownObjCClass)
Diag(Loc, diag::err_unavailable) << D->getDeclName();
else
Diag(Loc, diag::warn_unavailable_fwdclass_message)
OpenPOWER on IntegriCloud