[cfe-commits] r172818 - /cfe/trunk/tools/clang-check/ClangCheck.cpp

NAKAMURA Takumi geek4civic at gmail.com
Fri Jan 18 05:46:48 PST 2013


Author: chapuni
Date: Fri Jan 18 07:46:48 2013
New Revision: 172818

URL: http://llvm.org/viewvc/llvm-project?rev=172818&view=rev
Log:
clang-check: Introduce llvm::sys::PrintStackTraceOnErrorSignal()

Modified:
    cfe/trunk/tools/clang-check/ClangCheck.cpp

Modified: cfe/trunk/tools/clang-check/ClangCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/clang-check/ClangCheck.cpp?rev=172818&r1=172817&r2=172818&view=diff
==============================================================================
--- cfe/trunk/tools/clang-check/ClangCheck.cpp (original)
+++ cfe/trunk/tools/clang-check/ClangCheck.cpp Fri Jan 18 07:46:48 2013
@@ -27,6 +27,7 @@
 #include "clang/Tooling/Tooling.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/Path.h"
+#include "llvm/Support/Signals.h"
 
 using namespace clang::driver;
 using namespace clang::tooling;
@@ -142,6 +143,7 @@
 }
 
 int main(int argc, const char **argv) {
+  llvm::sys::PrintStackTraceOnErrorSignal();
   CommonOptionsParser OptionsParser(argc, argv);
   ClangTool Tool(OptionsParser.getCompilations(),
                  OptionsParser.getSourcePathList());





More information about the cfe-commits mailing list