This revision was automatically updated to reflect the committed changes.
kadircet marked 2 inline comments as done.
Closed by commit rGffa96f022c3f: [clang] Fix range for forward-declared enums
(authored by kadircet).
Changed prior to commit:
https://reviews.llvm.org/D111259?vs=377651&id=38193
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
Comment at: clang/lib/AST/Decl.cpp:4509
+ auto Res = TagDecl::getSourceRange();
+ // Has a definition, we can use the usual source range.
+ if (TagDecl::getBrace
kadircet created this revision.
kadircet added a reviewer: sammccall.
kadircet requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This used to span just the `[[enum foo]] : bar;` in the absence of a
body. This patch expands the range to cover