r176788 - Driver: do not strip file extensions when printing diagnostics.
Benjamin Kramer
benny.kra at googlemail.com
Sun Mar 10 06:16:18 PDT 2013
Author: d0k
Date: Sun Mar 10 08:16:18 2013
New Revision: 176788
URL: http://llvm.org/viewvc/llvm-project?rev=176788&view=rev
Log:
Driver: do not strip file extensions when printing diagnostics.
Before: clang-3: error: no input files
After: clang-3.3: error: no input files
This means that we'll also print clang.exe on windows, but I don't see a problem
with that.
Modified:
cfe/trunk/tools/driver/driver.cpp
Modified: cfe/trunk/tools/driver/driver.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/driver/driver.cpp?rev=176788&r1=176787&r2=176788&view=diff
==============================================================================
--- cfe/trunk/tools/driver/driver.cpp (original)
+++ cfe/trunk/tools/driver/driver.cpp Sun Mar 10 08:16:18 2013
@@ -417,7 +417,7 @@ int main(int argc_, const char **argv_)
// DiagnosticOptions instance.
TextDiagnosticPrinter *DiagClient
= new TextDiagnosticPrinter(llvm::errs(), &*DiagOpts);
- DiagClient->setPrefix(llvm::sys::path::stem(Path.str()));
+ DiagClient->setPrefix(llvm::sys::path::filename(Path.str()));
IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
DiagnosticsEngine Diags(DiagID, &*DiagOpts, DiagClient);
More information about the cfe-commits
mailing list