[PATCH] D70702: Use InitLLVM to setup a pretty stack printer

Rui Ueyama via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 25 17:31:47 PST 2019


ruiu created this revision.
ruiu added a reviewer: MaskRay.
Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman, jkorous.
Herald added projects: clang, LLVM.

InitLLVM does not only save a few lines from main() but also makes the
commands do the right thing for multibyte character pathnames on
Windows (i.e. canonicalize argv's to UTF-8) because of the code we
have in this file:

https://github.com/llvm/llvm-project/blob/master/llvm/lib/Support/InitLLVM.cpp#L32

For many LLVM commands, we already have calls of InitLLVM, but there
are still remainings.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70702

Files:
  clang-tools-extra/clang-change-namespace/tool/ClangChangeNamespace.cpp
  clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
  clang-tools-extra/clang-move/tool/ClangMove.cpp
  clang-tools-extra/clang-query/tool/ClangQuery.cpp
  clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
  clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
  clang-tools-extra/clangd/indexer/IndexerMain.cpp
  clang-tools-extra/clangd/tool/ClangdMain.cpp
  clang-tools-extra/tool-template/ToolTemplate.cpp
  clang/tools/arcmt-test/arcmt-test.cpp
  clang/tools/c-index-test/core_main.cpp
  clang/tools/clang-check/ClangCheck.cpp
  clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
  clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
  clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp
  clang/tools/clang-refactor/ClangRefactor.cpp
  clang/utils/TableGen/TableGen.cpp
  llvm/utils/KillTheDoctor/KillTheDoctor.cpp
  llvm/utils/TableGen/TableGen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70702.230988.patch
Type: text/x-patch
Size: 15660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191126/8639740c/attachment.bin>


More information about the cfe-commits mailing list