hanchenye-llvm-project/clang/tools/c-index-test
Ivan Donchevskii 6e89528c55 [libclang] Allow skipping function bodies in preamble only
Second attempt. Fix line endings and warning.

As an addition to CXTranslationUnit_SkipFunctionBodies, provide the
new option CXTranslationUnit_LimitSkipFunctionBodiesToPreamble,
which constraints the skipping of functions bodies to the preamble
only. Function bodies in the main file are not affected if this
option is set.

Skipping function bodies only in the preamble is what clangd already
does and the introduced flag implements it for libclang clients.

Patch by Nikolai Kosjar.

Differential Revision: https://reviews.llvm.org/D45815

llvm-svn: 332587
2018-05-17 09:24:37 +00:00
..
CMakeLists.txt [clang] Add PRIVATE to target_link_libraries 2017-12-06 23:02:00 +00:00
c-index-test.c [libclang] Allow skipping function bodies in preamble only 2018-05-17 09:24:37 +00:00
core_main.cpp [index] Fix methods that take a shared_ptr to just take a reference. 2018-04-23 14:30:21 +00:00