[clang] Fix printing of templated records. (PR #86339)

Kazu Hirata via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 26 11:01:24 PDT 2024


kazutakahirata wrote:

I'm getting errors like:

```
llvm-project/clang/unittests/AST/DeclPrinterTest.cpp:1394:3: error: expression result unused [-Werror,-Wunused-value]
  [](PrintingPolicy &Policy) { Policy.SuppressTagKeyword = false; };
```

This file being a clang test, I am wondering if this is actually part of the test.  Shall we put `[[maybe_unused]]` here?

https://github.com/llvm/llvm-project/pull/86339


More information about the cfe-commits mailing list