================
@@ -55,7 +55,11 @@ void DefinitionBlockSeparator::separateBlocks(
tok::kw_union) ||
(Style.isJavaScript() &&
CurrentToken->is(ExtraKeywords.kw_function))) {
- return true;
+ // The class/struct keyword in a scoped enum is not a record
+ // definition.
+ const auto *Previous = CurrentToken->getPreviousNonComment();
----------------
woruyu wrote:
Done!
https://github.com/llvm/llvm-project/pull/239167
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits