================
@@ -3931,9 +3922,15 @@ bool UnwrappedLineParser::parseEnum() {
// Eat up enum class ...
if (FormatTok->isOneOf(tok::kw_class, tok::kw_struct))
nextToken();
- while (FormatTok->is(tok::l_square))
- if (!handleCppAttributes())
- return false;
+ while (FormatTok->isOneOf(tok::l_square, TT_AttributeMacro)) {
+ if (FormatTok->is(tok::l_square)) {
+ if (!handleCppAttributes())
+ return false;
+ } else {
+ // TT_AttributeMacro
+ nextToken();
+ }
+ }
----------------
owenca wrote:
Instead, remove this loop and handle `TT_AttributeMacro` and C++11 attributes
in the loop below.
https://github.com/llvm/llvm-project/pull/227461
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits