[clang-tools-extra] [clangd][test] Move plugin example source files to Inputs directory (PR #230245)
Pranav Kant via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 8 11:54:46 PDT 2026
https://github.com/pranavk created https://github.com/llvm/llvm-project/pull/230245
Move FeatureModuleExample.cpp and StandaloneTweakExample.cpp into the
clangd/test/Inputs directory to follow the directory convention, and
update CMakeLists.txt accordingly.
>From 6036d319277dc6b819655cce66ebd83568b746ce Mon Sep 17 00:00:00 2001
From: Pranav Kant <prka at google.com>
Date: Thu, 8 Oct 2026 11:52:59 -0700
Subject: [PATCH] [clangd][test] Move plugin example source files to Inputs
directory
Move FeatureModuleExample.cpp and StandaloneTweakExample.cpp into the
clangd/test/Inputs directory to follow the directory convention, and
update CMakeLists.txt accordingly.
---
clang-tools-extra/clangd/test/CMakeLists.txt | 4 ++--
.../clangd/test/{ => Inputs}/FeatureModuleExample.cpp | 0
.../clangd/test/{ => Inputs}/StandaloneTweakExample.cpp | 0
3 files changed, 2 insertions(+), 2 deletions(-)
rename clang-tools-extra/clangd/test/{ => Inputs}/FeatureModuleExample.cpp (100%)
rename clang-tools-extra/clangd/test/{ => Inputs}/StandaloneTweakExample.cpp (100%)
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
More information about the cfe-commits
mailing list