[clang-tools-extra] 0f1accd - [clangd] Drop const from a return type (NFC) (#146707)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 2 09:32:26 PDT 2025
Author: Kazu Hirata
Date: 2025-07-02T09:32:23-07:00
New Revision: 0f1accd806426f18d33ac761b6721c3cadcb3faf
URL: https://github.com/llvm/llvm-project/commit/0f1accd806426f18d33ac761b6721c3cadcb3faf
DIFF: https://github.com/llvm/llvm-project/commit/0f1accd806426f18d33ac761b6721c3cadcb3faf.diff
LOG: [clangd] Drop const from a return type (NFC) (#146707)
We don't need const on the return type.
Added:
Modified:
clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp b/clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
index 90dac3b76c648..c74250ccbe9ea 100644
--- a/clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
+++ b/clang-tools-extra/clangd/refactor/tweaks/ExtractVariable.cpp
@@ -359,9 +359,9 @@ struct ParsedBinaryOperator {
// + c <- End
// / \
// a b <- Start
-const SourceRange getBinaryOperatorRange(const SelectionTree::Node &N,
- const SourceManager &SM,
- const LangOptions &LangOpts) {
+SourceRange getBinaryOperatorRange(const SelectionTree::Node &N,
+ const SourceManager &SM,
+ const LangOptions &LangOpts) {
// If N is not a suitable binary operator, bail out.
ParsedBinaryOperator Op;
if (!Op.parse(N.ignoreImplicit()) || !Op.associative() ||
More information about the cfe-commits
mailing list