[clang-tools-extra] [clangd][test] Move plugin example source files to Inputs directory (PR #230245)

via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 8 11:55:30 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clangd

Author: Pranav Kant (pranavk)

<details>
<summary>Changes</summary>

Move FeatureModuleExample.cpp and StandaloneTweakExample.cpp into the
clangd/test/Inputs directory to follow the directory convention, and
update CMakeLists.txt accordingly.


---
Full diff: https://github.com/llvm/llvm-project/pull/230245.diff


3 Files Affected:

- (modified) clang-tools-extra/clangd/test/CMakeLists.txt (+2-2) 
- (renamed) clang-tools-extra/clangd/test/Inputs/FeatureModuleExample.cpp () 
- (renamed) clang-tools-extra/clangd/test/Inputs/StandaloneTweakExample.cpp () 


``````````diff
diff --git a/clang-tools-extra/clangd/test/CMakeLists.txt b/clang-tools-extra/clangd/test/CMakeLists.txt
index 401d3a8b156db7..e06b92f93dea5a 100644
--- a/clang-tools-extra/clangd/test/CMakeLists.txt
+++ b/clang-tools-extra/clangd/test/CMakeLists.txt
@@ -33,12 +33,12 @@ endforeach()
 if (NOT WIN32 OR NOT LLVM_LINK_LLVM_DYLIB)
   llvm_add_library(
       ClangdFeatureModuleExample
-      MODULE FeatureModuleExample.cpp
+      MODULE Inputs/FeatureModuleExample.cpp
       PLUGIN_TOOL clangd
       PARTIAL_SOURCES_INTENDED)
   llvm_add_library(
       ClangdStandaloneTweakExample
-      MODULE StandaloneTweakExample.cpp
+      MODULE Inputs/StandaloneTweakExample.cpp
       PLUGIN_TOOL clangd
       PARTIAL_SOURCES_INTENDED)
 endif()
diff --git a/clang-tools-extra/clangd/test/FeatureModuleExample.cpp b/clang-tools-extra/clangd/test/Inputs/FeatureModuleExample.cpp
similarity index 100%
rename from clang-tools-extra/clangd/test/FeatureModuleExample.cpp
rename to clang-tools-extra/clangd/test/Inputs/FeatureModuleExample.cpp
diff --git a/clang-tools-extra/clangd/test/StandaloneTweakExample.cpp b/clang-tools-extra/clangd/test/Inputs/StandaloneTweakExample.cpp
similarity index 100%
rename from clang-tools-extra/clangd/test/StandaloneTweakExample.cpp
rename to clang-tools-extra/clangd/test/Inputs/StandaloneTweakExample.cpp

``````````

</details>


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


More information about the cfe-commits mailing list