[clang] [clang-format] Don't annotate enum colon as InheritanceColon (PR #138440)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Sun May 4 12:26:59 PDT 2025
================
@@ -1423,7 +1423,7 @@ class AnnotatingParser {
Tok->setType(TT_BitFieldColon);
} else if (Contexts.size() == 1 &&
!Line.First->isOneOf(tok::kw_enum, tok::kw_case,
- tok::kw_default)) {
+ tok::kw_default, tok::kw_typedef)) {
----------------
HazardyKnusperkeks wrote:
Sadly `typedef class` is a thing too, this would break, wouldn't it?
https://github.com/llvm/llvm-project/pull/138440
More information about the cfe-commits
mailing list