[PATCH] D155581: [clangd][c++20] Add concept semantic highlighting test case
Jens Massberg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 2 01:38:07 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8af016aefd83: [clangd][c++20] Add concept semantic highlighting test case (authored by massberg).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155581/new/
https://reviews.llvm.org/D155581
Files:
clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
Index: clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
===================================================================
--- clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
+++ clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
@@ -657,6 +657,7 @@
void $Function_def[[Bar]]($Concept[[Fooable]] $TemplateParameter[[auto]] $Parameter_def[[x]]) {}
template$Bracket[[<]]$Concept[[Fooable]] auto $TemplateParameter_def_readonly[[x]]$Bracket[[>]] void $Function_def[[Boo]]() {}
+ bool $Variable_def[[b]] = $Concept[[Fooable]]$Bracket[[<]]int$Bracket[[>]];
)cpp",
// Dependent template name
R"cpp(
@@ -886,10 +887,10 @@
// Issue 1222: readonly modifier for generic parameter
R"cpp(
template $Bracket[[<]]typename $TemplateParameter_def[[T]]$Bracket[[>]]
- auto $Function_def[[foo]](const $TemplateParameter[[T]] $Parameter_def_readonly[[template_type]],
- const $TemplateParameter[[auto]] $Parameter_def_readonly[[auto_type]],
+ auto $Function_def[[foo]](const $TemplateParameter[[T]] $Parameter_def_readonly[[template_type]],
+ const $TemplateParameter[[auto]] $Parameter_def_readonly[[auto_type]],
const int $Parameter_def_readonly[[explicit_type]]) {
- return $Parameter_readonly[[template_type]]
+ return $Parameter_readonly[[template_type]]
$Operator_userDefined[[+]] $Parameter_readonly[[auto_type]]
$Operator_userDefined[[+]] $Parameter_readonly[[explicit_type]];
}
@@ -1002,7 +1003,7 @@
template $Bracket[[<]]class $TemplateParameter_def[[T]]$Bracket[[>]]
class $Class_def[[B]] {
template $Bracket[[<]]class $TemplateParameter_def[[U]]$Bracket[[>]] void $Method_def[[foo]]($TemplateParameter[[U]]) { }
- template$Bracket[[<]]$Bracket[[>]] void $Method_def[[foo]]$Bracket[[<]]int$Bracket[[>]](int) { }
+ template$Bracket[[<]]$Bracket[[>]] void $Method_def[[foo]]$Bracket[[<]]int$Bracket[[>]](int) { }
friend void $Function_decl[[foo]]$Bracket[[<]]$Bracket[[>]]($TemplateParameter[[T]]);
};
)cpp",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155581.546353.patch
Type: text/x-patch
Size: 2270 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230802/a3034c2f/attachment.bin>
More information about the cfe-commits
mailing list