llvm-project/clang/tools/libclang
Erik Verbruggen 346066b68c [libclang] Allow to suspend a translation unit.
A suspended translation unit uses significantly less memory but on the
other side does not support any other calls than
clang_reparseTranslationUnit to resume it or
clang_disposeTranslationUnit to dispose it completely.

This helps IDEs to reduce the memory footprint. The data that is freed
by a call to clang_suspendTranslationUnit will be re-generated on the
next (re)parse anyway. Used with a preamble, this allows pretty fast
resumption of the translation unit for further use (compared to disposal
of the translation unit and a parse from scratch).

Patch by Nikolai Kosjar!

llvm-svn: 304212
2017-05-30 14:25:54 +00:00
..
ARCMigrate.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
BuildSystem.cpp Replace TimeValue with TimePoint in BuildSystem.cpp. NFC. 2016-11-09 11:19:39 +00:00
CIndex.cpp [libclang] Allow to suspend a translation unit. 2017-05-30 14:25:54 +00:00
CIndexCXX.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexCodeCompletion.cpp [libclang] Bury dead TemporaryFiles 2017-03-24 09:49:54 +00:00
CIndexDiagnostic.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CIndexDiagnostic.h Roll-back r250822. 2015-10-20 13:23:58 +00:00
CIndexHigh.cpp [libclang] Revert part of r290025, "Remove the 'extern "C"' blocks from the implementation files." 2016-12-19 16:50:43 +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 [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CIndexer.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CLog.h Replace uses of LLVM_FUNCTION_NAME with __func__, this was macro was removed from llvm/Support in r284681 2016-10-20 02:46:22 +00:00
CMakeLists.txt Link include-fixer into libclang if clang-tools-extra is checked out. 2016-11-17 15:22:36 +00:00
CXComment.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXComment.h [cleanup] Re-sort the #include lines using llvm/utils/sort_includes.py 2015-01-14 11:23:58 +00:00
CXCompilationDatabase.cpp [Tooling][libclang] Remove unused CompilationDatabase::MappedSources 2017-05-23 13:50:43 +00:00
CXCursor.cpp libclang: remove unused variable. 2017-04-27 20:22:40 +00:00
CXCursor.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
CXIndexDataConsumer.cpp [index] If the 'external_source_symbol' attribute indicates 'Swift' as the language then report it accordingly 2017-04-24 14:52:00 +00:00
CXIndexDataConsumer.h [index] When indexing an ObjC method declaration use its base name for the location. 2017-01-26 02:11:50 +00:00
CXLoadedDiagnostic.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXLoadedDiagnostic.h [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXSourceLocation.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXSourceLocation.h Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
CXStoredDiagnostic.cpp [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
CXString.cpp [libclang] Remove the 'extern "C"' blocks from the implementation files. 2016-12-17 01:09:40 +00:00
CXString.h libclang: add new StringSet type 2015-11-12 03:57:16 +00:00
CXTranslationUnit.h [libclang] Expose some target information via the C API. 2017-04-28 15:56:39 +00:00
CXType.cpp [libclang] [OpenCL] Expose more OpenCL CIndex types 2017-05-23 10:36:43 +00:00
CXType.h
CursorVisitor.h [index] Expose FriendDecl 2016-11-04 06:29:27 +00:00
Index_Internal.h
Indexing.cpp Revert "Revert "PPCallbacks::MacroUndefined, change signature and add test."" 2017-04-26 21:05:44 +00:00
libclang.exports [libclang] Allow to suspend a translation unit. 2017-05-30 14:25:54 +00:00