[PATCH] D111259: [clang] Fix range for forward-declared enums

2021-10-25 Thread Kadir Cetinkaya via Phabricator via cfe-commits
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

[PATCH] D111259: [clang] Fix range for forward-declared enums

2021-10-08 Thread Sam McCall via Phabricator via cfe-commits
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

[PATCH] D111259: [clang] Fix range for forward-declared enums

2021-10-06 Thread Kadir Cetinkaya via Phabricator via cfe-commits
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