[clang-tools-extra] 838b91d - [clangd] Drop const from a return type (NFC) (#146623)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 22:50:00 PDT 2025
Author: Kazu Hirata
Date: 2025-07-01T22:49:56-07:00
New Revision: 838b91d7f6838a447e7869e63a9493bf77bc0a6d
URL: https://github.com/llvm/llvm-project/commit/838b91d7f6838a447e7869e63a9493bf77bc0a6d
DIFF: https://github.com/llvm/llvm-project/commit/838b91d7f6838a447e7869e63a9493bf77bc0a6d.diff
LOG: [clangd] Drop const from a return type (NFC) (#146623)
We don't need const on a return type.
Added:
Modified:
clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
Removed:
################################################################################
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();
More information about the cfe-commits
mailing list