From 1fede19ce9e10f8fb6fd5b4f12c930f5c3c60ffa Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Tue, 15 Nov 2011 19:03:03 +0000 Subject: [PATCH] Typo. llvm-svn: 144672 --- clang/lib/Frontend/Warnings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clang/lib/Frontend/Warnings.cpp b/clang/lib/Frontend/Warnings.cpp index 3588af0d4a44..cc7c48ce48c8 100644 --- a/clang/lib/Frontend/Warnings.cpp +++ b/clang/lib/Frontend/Warnings.cpp @@ -31,8 +31,8 @@ #include using namespace clang; -// EmitUnkownDiagWarning - Emit a warning and typo hint for unknown warning opts -static void EmitUnkownDiagWarning(DiagnosticsEngine &Diags, +// EmitUnknownDiagWarning - Emit a warning and typo hint for unknown warning opts +static void EmitUnknownDiagWarning(DiagnosticsEngine &Diags, StringRef Prefix, StringRef Opt, bool isPositive) { StringRef Suggestion = DiagnosticIDs::getNearestWarningOption(Opt); @@ -133,7 +133,7 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, // Set the warning as error flag for this specifier. Diags.setDiagnosticGroupWarningAsError(Specifier, isPositive); } else if (DiagIDs->getDiagnosticsInGroup(Specifier, _Diags)) { - EmitUnkownDiagWarning(Diags, "-Werror", Specifier, isPositive); + EmitUnknownDiagWarning(Diags, "-Werror", Specifier, isPositive); } continue; } @@ -161,14 +161,14 @@ void clang::ProcessWarningOptions(DiagnosticsEngine &Diags, // Set the error as fatal flag for this specifier. Diags.setDiagnosticGroupErrorAsFatal(Specifier, isPositive); } else if (DiagIDs->getDiagnosticsInGroup(Specifier, _Diags)) { - EmitUnkownDiagWarning(Diags, "-Wfatal-errors", Specifier, isPositive); + EmitUnknownDiagWarning(Diags, "-Wfatal-errors", Specifier, isPositive); } continue; } if (Report) { if (DiagIDs->getDiagnosticsInGroup(Opt, _Diags)) - EmitUnkownDiagWarning(Diags, "-W", Opt, isPositive); + EmitUnknownDiagWarning(Diags, "-W", Opt, isPositive); } else { Diags.setDiagnosticGroupMapping(Opt, Mapping); }