forked from OSchip/llvm-project
[C++11] Expand and eliminate the LLVM_ENUM_INT_TYPE() macro
llvm-svn: 202606
This commit is contained in:
parent
7d659c8563
commit
ceb95c47c4
|
@ -699,7 +699,7 @@ private:
|
|||
unsigned ParamIndex;
|
||||
|
||||
public:
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
InvalidParamIndex = ~0U,
|
||||
VarArgParamIndex = ~0U/*InvalidParamIndex*/ - 1U
|
||||
};
|
||||
|
|
|
@ -4636,7 +4636,7 @@ class PseudoObjectExpr : public Expr {
|
|||
public:
|
||||
/// NoResult - A value for the result index indicating that there is
|
||||
/// no semantic result.
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) { NoResult = ~0U };
|
||||
enum : unsigned { NoResult = ~0U };
|
||||
|
||||
static PseudoObjectExpr *Create(const ASTContext &Context, Expr *syntactic,
|
||||
ArrayRef<Expr*> semantic,
|
||||
|
|
|
@ -89,7 +89,7 @@ class SourceLocation {
|
|||
friend class SourceManager;
|
||||
friend class ASTReader;
|
||||
friend class ASTWriter;
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) {
|
||||
enum : unsigned {
|
||||
MacroIDBit = 1U << 31
|
||||
};
|
||||
public:
|
||||
|
|
|
@ -365,7 +365,7 @@ void Sema::AddCFAuditedAttribute(Decl *D) {
|
|||
}
|
||||
|
||||
typedef std::vector<std::pair<unsigned, SourceLocation> > VisStack;
|
||||
enum LLVM_ENUM_INT_TYPE(unsigned) { NoVisibility = ~0U };
|
||||
enum : unsigned { NoVisibility = ~0U };
|
||||
|
||||
void Sema::AddPushedVisibilityAttribute(Decl *D) {
|
||||
if (!VisContext)
|
||||
|
|
Loading…
Reference in New Issue