[clang-tools-extra] Improve loading speed of indexes used by clangd (PR #156185)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 30 07:36:23 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- clang-tools-extra/clangd/index/FileIndex.cpp clang-tools-extra/clangd/index/Ref.cpp clang-tools-extra/clangd/index/Ref.h clang-tools-extra/clangd/index/Serialization.cpp clang-tools-extra/clangd/index/YAMLSerialization.cpp
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/index/Ref.h b/clang-tools-extra/clangd/index/Ref.h
index 9a7e7aadb..06486cb59 100644
--- a/clang-tools-extra/clangd/index/Ref.h
+++ b/clang-tools-extra/clangd/index/Ref.h
@@ -166,6 +166,7 @@ public:
void insert(const SymbolID &ID, const Ref &S);
/// Consumes the builder to finalize the slab.
RefSlab build() &&;
+
private:
// A ref we're storing with its symbol to consume with build().
// All strings are interned, so DenseMapInfo can use pointer comparisons.
``````````
</details>
https://github.com/llvm/llvm-project/pull/156185
More information about the cfe-commits
mailing list