forked from MaskRay/ccls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --use-clang-cxx to waf and move type printer to src/type_printer.cc
src/type_printer.cc demonstrates how to leverage clang C++ API. It includes clang/**/*.h headers and CXTranslationUnit.h which resides in clang/tools/libclang/ but is not exposed in clang/include/clang-c/ These libclang/ header files are stable and provide some struct definitions used by clang-c/ header files. A copy of them from clang source tree is checked into libclang/ . If you want to an early adopter, CXXFLAGS='-std=c++11 -fno-rtti -D_GLIBCXX_USE_CXX11_ABI=0 -g' ./waf configure --variant=cxx-debug --bundled-clang=5.0.1 --use-clang-cxx Some clang/**/*.h are unstable and should be used with caution, in addition, Windows pre-built binaries on https://releases.llvm.org/download.html do not include C++ header files. Thus `--use-clang-cxx` defaults to False.
- Loading branch information
Showing
5 changed files
with
240 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.