aboutsummaryrefslogtreecommitdiff
path: root/clang-format
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-18 14:31:00 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-18 14:31:00 +0000
commitf6b81786a7e1ee6297fb7a4348ef8fbfa6d42784 (patch)
tree4818c8be155deb53e663e5f94ef0f6e58a92cbe3 /clang-format
parentf1360fc78e8b536000bb4abd5146d0394a7d2e3c (diff)
Introduce llvm::sys::PrintStackTraceOnErrorSignal()
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@172821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'clang-format')
-rw-r--r--clang-format/ClangFormat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-format/ClangFormat.cpp b/clang-format/ClangFormat.cpp
index 16bfbe09..23043a3b 100644
--- a/clang-format/ClangFormat.cpp
+++ b/clang-format/ClangFormat.cpp
@@ -21,6 +21,7 @@
#include "clang/Lex/Lexer.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "llvm/Support/FileSystem.h"
+#include "llvm/Support/Signals.h"
using namespace llvm;
@@ -114,6 +115,7 @@ static void format() {
} // namespace clang
int main(int argc, const char **argv) {
+ llvm::sys::PrintStackTraceOnErrorSignal();
cl::ParseCommandLineOptions(
argc, argv,
"A tool to format C/C++/Obj-C code.\n\n"