[clang] 9eef0fa - Fix test expectations for %diff documentation.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 30 17:48:30 PDT 2021


Author: Richard Smith
Date: 2021-03-30T17:48:08-07:00
New Revision: 9eef0fae2b840cef0b44cf94517f70a41cd84d42

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

LOG: Fix test expectations for %diff documentation.

Added: 
    

Modified: 
    clang/test/TableGen/emit-diag-docs.td

Removed: 
    


################################################################################
diff  --git a/clang/test/TableGen/emit-diag-docs.td b/clang/test/TableGen/emit-diag-docs.td
index b2ecba727f4f4..2dd1a6b57af0c 100644
--- a/clang/test/TableGen/emit-diag-docs.td
+++ b/clang/test/TableGen/emit-diag-docs.td
@@ -13,8 +13,14 @@ def MySubNested : TextSubstitution<"%sub{MyGoodBad}1 %sub{MyKinds}2 are %sub{MyG
 
 let Group = MyGroup in {
 
-// CHECK:      |:warning:`warning:` |nbsp| :diagtext:`this is my 
diff  text`|
-// CHECK-NEXT: +-----------------------------------------------------------+
+// CHECK:      |:warning:`warning:` |nbsp| |+--------------------------------------------------------------------+|
+// CHECK-NEXT: |                           ||+------------------------------------------------------------------+||
+// CHECK-NEXT: |                           |||:placeholder:`A` |nbsp| :diagtext:`is not` |nbsp| :placeholder:`B`|||
+// CHECK-NEXT: |                           ||+------------------------------------------------------------------+||
+// CHECK-NEXT: |                           |+--------------------------------------------------------------------+|
+// CHECK-NEXT: |                           ||:diagtext:`this is my 
diff  text`                                    ||
+// CHECK-NEXT: |                           |+--------------------------------------------------------------------+|
+// CHECK-NEXT: +---------------------------+----------------------------------------------------------------------+
 def CheckDiff : Warning<"%
diff {$ is not $|this is my 
diff  text}0,1">;
 
 


        


More information about the cfe-commits mailing list