[PATCH] D82526: [AST][RecoveryExpr] Add error-bit to NestNameSpecifierDependence and TemplateNameDependence.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 01:35:10 PDT 2020
sammccall accepted this revision.
sammccall added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/include/clang/AST/DependenceFlags.h:67
-struct TemplateArgumentDependenceScope {
- enum TemplateArgumentDependence : uint8_t {
- UnexpandedPack = 1,
- Instantiation = 2,
- Dependent = 4,
-
- Error = 8,
-
- DependentInstantiation = Dependent | Instantiation,
- None = 0,
- All = 15,
- LLVM_MARK_AS_BITMASK_ENUM(/*LargestValue=*/Error)
- };
-};
-using TemplateArgumentDependence =
- TemplateArgumentDependenceScope ::TemplateArgumentDependence;
-
#define LLVM_COMMON_DEPENDENCE(NAME) \
struct NAME##Scope { \
----------------
FWIW I don't think this macro is worth the complexity, maybe we should expand it out at some point.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82526/new/
https://reviews.llvm.org/D82526
More information about the cfe-commits
mailing list