[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)
Zequan Wu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 10 08:30:27 PST 2024
ZequanWu wrote:
> @ZequanWu would either of these work for you?
>
> ```c++
> DCHECK_OK(foo); // expected-error at components/reporting/util/status_macros.h:* {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}}}
> ```
>
> or
>
> ```c++
> DCHECK_OK(foo); // expected-error-re at components/reporting/util/status_macros.h:* {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}}
> ```
Thanks, it's a simple fix, just adding a space between 2nd and 3rd braces:
```
DCHECK_OK(foo); // expected-error at components/reporting/util/status_macros.h:* {{ {CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}}
```
https://github.com/llvm/llvm-project/pull/77326
More information about the cfe-commits
mailing list