This used to span just the [[enum foo]] : bar; in the absence of a
body. This patch expands the range to cover the base specifier, so that the
various consumers can detect the full range of the decl.
Details
Details
- Reviewers
sammccall - Commits
- rGffa96f022c3f: [clang] Fix range for forward-declared enums
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Decl.cpp | ||
---|---|---|
4509 | Both these comments echo the code a bit. Maybe the only thing I'd mention is "TagDecl doesn't know about the enum base" | |
4510 | Nit: you don't need the TagDecl:: qualifier Maybe move this condition inside the getITSI if, to make it clearer this is an exception/condition/interaction with that case. |
Both these comments echo the code a bit.
Maybe the only thing I'd mention is "TagDecl doesn't know about the enum base"