From 9eef0fae2b840cef0b44cf94517f70a41cd84d42 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 30 Mar 2021 17:47:47 -0700 Subject: [PATCH] Fix test expectations for %diff documentation. --- clang/test/TableGen/emit-diag-docs.td | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/clang/test/TableGen/emit-diag-docs.td b/clang/test/TableGen/emit-diag-docs.td index b2ecba727f4f..2dd1a6b57af0 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">;