================ @@ -127,6 +127,33 @@ class AccessSpecDecl : public Decl { static bool classofKind(Kind K) { return K == AccessSpec; } }; +enum class RelocatableOrReplaceableClassSpecifierKind { + Relocatable, + Replaceable +}; + +template <RelocatableOrReplaceableClassSpecifierKind MK> +class BasicRelocatableOrReplaceableClassSpecifier { +public: + BasicRelocatableOrReplaceableClassSpecifier() = default; + BasicRelocatableOrReplaceableClassSpecifier(SourceLocation Begin) + : Loc(Begin) {} + void Set(SourceLocation Begin) { Loc = Begin; } + + bool isSet() const { return !Loc.isInvalid(); } + + SourceLocation getLocation() const { return Loc; } + +private: + SourceLocation Loc; ---------------- erichkeane wrote:
Is there intent for this to 'have' more to it? At the moment, this seems like it has weak justification over a `SourceLocation`. https://github.com/llvm/llvm-project/pull/127636 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits