[clang] [clang-format] Handle templated elaborated type specifier in function… (PR #77013)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 20 14:37:47 PST 2024


================
@@ -3873,6 +3873,9 @@ void UnwrappedLineParser::parseRecord(bool ParseAsExpr) {
   const FormatToken &InitialToken = *FormatTok;
   nextToken();
 
+  auto IsNonMacroIdentifier = [](FormatToken *Tok) {
----------------
owenca wrote:

Nit:
```suggestion
  auto IsNonMacroIdentifier = [](const FormatToken *Tok) {
```

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


More information about the cfe-commits mailing list