[clang] 347e31c - Remove constexpr that MSVC doesn't like
Benjamin Kramer via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 28 11:24:00 PDT 2020
Author: Benjamin Kramer
Date: 2020-03-28T19:23:29+01:00
New Revision: 347e31c052d5a36890c484b6753d480ac8f0062f
URL: https://github.com/llvm/llvm-project/commit/347e31c052d5a36890c484b6753d480ac8f0062f
DIFF: https://github.com/llvm/llvm-project/commit/347e31c052d5a36890c484b6753d480ac8f0062f.diff
LOG: Remove constexpr that MSVC doesn't like
Added:
Modified:
clang/include/clang/Sema/ParsedAttr.h
clang/utils/TableGen/ClangAttrEmitter.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h
index 911778457331..21e030fe5134 100644
--- a/clang/include/clang/Sema/ParsedAttr.h
+++ b/clang/include/clang/Sema/ParsedAttr.h
@@ -67,8 +67,8 @@ struct ParsedAttrInfo {
};
ArrayRef<Spelling> Spellings;
- constexpr ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind =
- AttributeCommonInfo::NoSemaHandlerAttribute)
+ ParsedAttrInfo(AttributeCommonInfo::Kind AttrKind =
+ AttributeCommonInfo::NoSemaHandlerAttribute)
: AttrKind(AttrKind), NumArgs(0), OptArgs(0), HasCustomParsing(0),
IsTargetSpecific(0), IsType(0), IsStmt(0), IsKnownToGCC(0),
IsSupportedByPragmaAttribute(0) {}
diff --git a/clang/utils/TableGen/ClangAttrEmitter.cpp b/clang/utils/TableGen/ClangAttrEmitter.cpp
index f455ef3b364b..e9f91c685ee4 100644
--- a/clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/clang/utils/TableGen/ClangAttrEmitter.cpp
@@ -3739,7 +3739,7 @@ void EmitClangAttrParsedAttrImpl(RecordKeeper &Records, raw_ostream &OS) {
}
OS << "struct ParsedAttrInfo" << I->first
<< " final : public ParsedAttrInfo {\n";
- OS << " constexpr ParsedAttrInfo" << I->first << "() {\n";
+ OS << " ParsedAttrInfo" << I->first << "() {\n";
OS << " AttrKind = ParsedAttr::AT_" << AttrName << ";\n";
emitArgInfo(Attr, OS);
OS << " HasCustomParsing = ";
More information about the cfe-commits
mailing list