[all-commits] [llvm/llvm-project] 55f7e0: [libclang] Add index option to store preambles in ...
Igor Kushnir via All-commits
all-commits at lists.llvm.org
Wed Mar 15 06:22:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 55f7e00afc56c68421220d60d29c079b58fe9c79
https://github.com/llvm/llvm-project/commit/55f7e00afc56c68421220d60d29c079b58fe9c79
Author: Igor Kushnir <igorkuo at gmail.com>
Date: 2023-03-15 (Wed, 15 Mar 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/include/clang-c/Index.h
M clang/include/clang/Frontend/ASTUnit.h
M clang/lib/Frontend/ASTUnit.cpp
M clang/tools/libclang/CIndex.cpp
M clang/tools/libclang/CIndexer.h
M clang/unittests/Frontend/ASTUnitTest.cpp
M clang/unittests/libclang/LibclangTest.cpp
Log Message:
-----------
[libclang] Add index option to store preambles in memory
This commit allows libclang API users to opt into storing PCH in memory
instead of temporary files. The option can be set only during CXIndex
construction to avoid multithreading issues and confusion or bugs if
some preambles are stored in temporary files and others - in memory.
The added API works as expected in KDevelop:
https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/283
Differential Revision: https://reviews.llvm.org/D145974
More information about the All-commits
mailing list