llvm-project/clang/tools/libclang
Ivan Donchevskii f4b09a3a30 [libclang] Allow skipping function bodies in preamble only
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: 332578
2018-05-17 07:31:29 +00:00
..
ARCMigrate.cpp [CMake] Use #cmakedefine01 for CLANG_ENABLE_(ARCMT|OBJC_REWRITER|STATIC_ANALYZER) 2017-10-18 05:21:17 +00:00
BuildSystem.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CIndex.cpp [libclang] Allow skipping function bodies in preamble only 2018-05-17 07:31:29 +00:00
CIndexCXX.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexCodeCompletion.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CIndexDiagnostic.cpp Revert "Revert "[NFC] Refactor DiagnosticRenderer to use FullSourceLoc"" 2017-06-27 09:50:38 +00:00
CIndexDiagnostic.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CIndexHigh.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CIndexInclusionStack.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexUSRs.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexer.cpp IWYU for llvm-config.h in clang. See r331124 for details. 2018-04-30 13:52:15 +00:00
CIndexer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CLog.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CMakeLists.txt Fix typo in comment. 2018-04-23 19:22:52 +00:00
CXComment.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXComment.h
CXCompilationDatabase.cpp [Tooling][libclang] Remove unused CompilationDatabase::MappedSources 2017-05-23 13:50:43 +00:00
CXCursor.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXCursor.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXIndexDataConsumer.cpp [Index] Return SourceLocation to consumers, not FileID/Offset pair. 2018-04-09 14:12:51 +00:00
CXIndexDataConsumer.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXLoadedDiagnostic.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXLoadedDiagnostic.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXSourceLocation.cpp Reverting r316278 due to failing build bots. 2017-10-21 21:52:48 +00:00
CXSourceLocation.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXStoredDiagnostic.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXString.cpp Clean up use of C allocation functions 2018-02-21 02:02:39 +00:00
CXString.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
CXTranslationUnit.h [libclang] Record code-completion invocations to a temporary file when 2017-12-07 20:37:50 +00:00
CXType.cpp [libclang] Stop assuming that the internal C++ ABI ExceptionSpecificationType enumeration is the same as CXCursor_ExceptionSpecificationKind. 2018-05-11 19:46:31 +00:00
CXType.h
CursorVisitor.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Index_Internal.h Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
Indexing.cpp Reland '[clang] Adding CharacteristicKind to PPCallbacks::InclusionDirective' 2018-05-10 19:05:36 +00:00
libclang.exports [libclang] Add clang_File_tryGetRealPathName 2018-04-07 20:50:35 +00:00