[clang-tools-extra] [clangd] Enable passing a `FeatureModuleSet` to `clangdMain`. (PR #97255)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 30 22:01:14 PDT 2024


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 8598bcb9934dca16ea16d87304e00defc85d986c 01ae6c9aee33d3b2b0a00484bf7c041f6b90e710 -- clang-tools-extra/clangd/tool/ClangdMain.cpp clang-tools-extra/clangd/tool/ClangdMain.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp
index 4caa1425c5..4e4c0d69a1 100644
--- a/clang-tools-extra/clangd/tool/ClangdMain.cpp
+++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp
@@ -716,7 +716,7 @@ int clangdMain(int argc, char *argv[]) {
   return clangdMain(arc, argv, nullptr);
 }
 
-int clangdMain(int argc, char *argv[], FeatureModuleSet* FeatureModules) {
+int clangdMain(int argc, char *argv[], FeatureModuleSet *FeatureModules) {
   // Clang could run on the main thread. e.g., when the flag '-check' or '-sync'
   // is enabled.
   clang::noteBottomOfStack();

``````````

</details>


https://github.com/llvm/llvm-project/pull/97255


More information about the cfe-commits mailing list