[clang-tools-extra] c93430b - [clangd] Update testcase for issue 1222 to use the 'definition' modifier

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 17 16:56:33 PDT 2022


Author: Nathan Ridge
Date: 2022-10-17T19:56:19-04:00
New Revision: c93430bae4fc95b58185900aa5f0ccbc037de031

URL: https://github.com/llvm/llvm-project/commit/c93430bae4fc95b58185900aa5f0ccbc037de031
DIFF: https://github.com/llvm/llvm-project/commit/c93430bae4fc95b58185900aa5f0ccbc037de031.diff

LOG: [clangd] Update testcase for issue 1222 to use the 'definition' modifier

Added: 
    

Modified: 
    clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
index d3219617d4000..5bc458b903119 100644
--- a/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
+++ b/clang-tools-extra/clangd/unittests/SemanticHighlightingTests.cpp
@@ -864,12 +864,12 @@ sizeof...($TemplateParameter[[Elements]]);
             const char *$LocalVariable_def_readonly[[s]] = $LocalVariable_readonly_static[[__func__]];
         }
       )cpp",
-      // Issue 1022: readonly modifier for generic parameter
+      // Issue 1222: readonly modifier for generic parameter
       R"cpp(
-        template <typename $TemplateParameter_decl[[T]]>
-        auto $Function_decl[[foo]](const $TemplateParameter[[T]] $Parameter_decl_readonly[[template_type]], 
-                                   const $TemplateParameter[[auto]] $Parameter_decl_readonly[[auto_type]], 
-                                   const int $Parameter_decl_readonly[[explicit_type]]) {
+        template <typename $TemplateParameter_def[[T]]>
+        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]] 
                  + $Parameter_readonly[[auto_type]] 
                  + $Parameter_readonly[[explicit_type]];


        


More information about the cfe-commits mailing list