aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-07-01 22:49:56 -0700
committerGitHub <noreply@github.com>2025-07-01 22:49:56 -0700
commit838b91d7f6838a447e7869e63a9493bf77bc0a6d (patch)
tree04eb92206b26d00b00571bf62a2942d5c6e137a3
parent7b4dbb4f37d8d40f48df6092fe54503a491eb3c2 (diff)
downloadllvm-838b91d7f6838a447e7869e63a9493bf77bc0a6d.zip
llvm-838b91d7f6838a447e7869e63a9493bf77bc0a6d.tar.gz
llvm-838b91d7f6838a447e7869e63a9493bf77bc0a6d.tar.bz2
[clangd] Drop const from a return type (NFC) (#146623)
We don't need const on a return type.
-rw-r--r--clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp b/clang-tools-extra/clangd/refactor/tweaks/DefineInline.cpp
index d6556bb..c970449 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();