https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146623
We don't need const on a return type. >From 2a072761c8f3b14d22e36aae1c84c956a067b59a Mon Sep 17 00:00:00 2001 From: Kazu Hirata <k...@google.com> Date: Tue, 1 Jul 2025 19:57:31 -0700 Subject: [PATCH] [clangd] Drop const from a return type (NFC) We don't need const on a return type. --- clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp b/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp index d6556bba14725..c9704492bf1cd 100644 --- a/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp +++ b/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp @@ -341,7 +341,7 @@ const FunctionDecl *findTarget(const FunctionDecl *FD) { // Returns the beginning location for a FunctionDecl. Returns location of // template keyword for templated functions. -const SourceLocation getBeginLoc(const FunctionDecl *FD) { +SourceLocation getBeginLoc(const FunctionDecl *FD) { // Include template parameter list. if (auto *FTD = FD->getDescribedFunctionTemplate()) return FTD->getBeginLoc(); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits