diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-02-23 20:23:45 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-02-23 20:23:45 +0000 |
commit | 253dbad1c92ce85741a0235f03a17eb026ed6591 (patch) | |
tree | d227cd0367325866fc785de9cc2a58273e1a9e18 | |
parent | 3cc6673fd08e874bff0401b539ee57afbd7232ca (diff) | |
download | bcm5719-llvm-253dbad1c92ce85741a0235f03a17eb026ed6591.tar.gz bcm5719-llvm-253dbad1c92ce85741a0235f03a17eb026ed6591.zip |
Fix bogus diagnostic format string.
llvm-svn: 96978
-rw-r--r-- | clang/include/clang/Basic/DiagnosticFrontendKinds.td | 2 | ||||
-rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 2 | ||||
-rw-r--r-- | clang/tools/CIndex/CIndexCodeCompletion.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/include/clang/Basic/DiagnosticFrontendKinds.td b/clang/include/clang/Basic/DiagnosticFrontendKinds.td index 79147eac5f3..b77614bbefc 100644 --- a/clang/include/clang/Basic/DiagnosticFrontendKinds.td +++ b/clang/include/clang/Basic/DiagnosticFrontendKinds.td @@ -82,7 +82,7 @@ def note_fixit_main_file_unchanged : Note< def warn_fixit_no_changes : Note< "FIX-IT detected errors it could not fix; no output will be generated">; -def err_fe_clang : Error<"error invoking%s: %s">, DefaultFatal; +def err_fe_invoking : Error<"error invoking%0: %1">, DefaultFatal; // PCH reader def err_relocatable_without_without_isysroot : Error< diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index d95aaee770c..df89d73ba8c 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/tools/CIndex/CIndex.cpp @@ -1103,7 +1103,7 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx, AllArgs += *I; } - Diags->Report(diag::err_fe_clang) << AllArgs << ErrMsg; + Diags->Report(diag::err_fe_invoking) << AllArgs << ErrMsg; } ASTUnit *ATU = ASTUnit::LoadFromPCHFile(astTmpFile, *Diags, diff --git a/clang/tools/CIndex/CIndexCodeCompletion.cpp b/clang/tools/CIndex/CIndexCodeCompletion.cpp index b646474c814..3b7674ec0d1 100644 --- a/clang/tools/CIndex/CIndexCodeCompletion.cpp +++ b/clang/tools/CIndex/CIndexCodeCompletion.cpp @@ -330,7 +330,7 @@ CXCodeCompleteResults *clang_codeComplete(CXIndex CIdx, AllArgs += *I; } - Diags->Report(diag::err_fe_clang) << AllArgs << ErrMsg; + Diags->Report(diag::err_fe_invoking) << AllArgs << ErrMsg; } // Parse the resulting source file to find code-completion results. |