[clang] [clang-format] Handle templated elaborated type specifier in function… (PR #77013)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 14:55:06 PST 2024
================
@@ -3914,7 +3914,15 @@ void UnwrappedLineParser::parseRecord(bool ParseAsExpr) {
// (this would still leave us with an ambiguity between template function
// and class declarations).
if (FormatTok->isOneOf(tok::colon, tok::less)) {
----------------
HazardyKnusperkeks wrote:
Why can't we use `parseAngle`? (Don't know if that would lead to better results.)
This can easily be broken with `class A<X > 3> f() {}`, right?
https://github.com/llvm/llvm-project/pull/77013
More information about the cfe-commits
mailing list