This prepatch for using-enum breaks out the enum completion that that will need from the existing scope completion logic
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/Sema/SemaCXXScopeSpec.cpp | ||
---|---|---|
279 | Since you cannot yet add a testcase for err_incomplete_enum because RequireCompleteEnumDecl only gets another use in patch 4, it might be better to just add the refactoring in this patch and add the new error and the "else" in patch 4. Another options is to squash this entirely in patch 4. |
Comment Actions
I've taken out the new error and require the broken-out routine to have a non-null scope passed to it.
Since you cannot yet add a testcase for err_incomplete_enum because RequireCompleteEnumDecl only gets another use in patch 4, it might be better to just add the refactoring in this patch and add the new error and the "else" in patch 4. Another options is to squash this entirely in patch 4.