[clang-tools-extra] [clangd] Support go-to-definition on type hints. The core part (PR #86629)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 25 22:46:03 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff c6a65e4b0c80245d766ae2f2f7305b5371d096f5 b8a69cbd9e0ee0aa35b38b7e3a78048cbe61447e -- clang-tools-extra/clangd/AST.cpp clang-tools-extra/clangd/AST.h clang-tools-extra/clangd/InlayHints.cpp clang-tools-extra/clangd/index/IndexAction.cpp clang-tools-extra/clangd/unittests/InlayHintTests.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang-tools-extra/clangd/InlayHints.cpp b/clang-tools-extra/clangd/InlayHints.cpp
index f9e0a51ddc..c530e4ae47 100644
--- a/clang-tools-extra/clangd/InlayHints.cpp
+++ b/clang-tools-extra/clangd/InlayHints.cpp
@@ -473,7 +473,6 @@ class TypeInlayHintLabelPartBuilder
}
public:
-
#ifndef NDEBUG
~TypeInlayHintLabelPartBuilder() {
llvm::errs() << "TypeInlayHintLabelPartBuilder:\n";
@@ -1203,8 +1202,8 @@ private:
if (!Suffix.empty())
JoinedLabels.push_back(InlayHintLabelPart(Suffix.str()));
Results.push_back(InlayHint{LSPPos,
- /*label=*/std::move(JoinedLabels),
- Kind, PadLeft, PadRight, LSPRange});
+ /*label=*/std::move(JoinedLabels), Kind,
+ PadLeft, PadRight, LSPRange});
}
// Get the range of the main file that *exactly* corresponds to R.
``````````
</details>
https://github.com/llvm/llvm-project/pull/86629
More information about the cfe-commits
mailing list