Do not use cdecl, fastcall, stdcall etc.. as identifier name. They are reserved keywords at least on MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122991 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/include/clang/AST/Type.h b/include/clang/AST/Type.h
index c52b9b6..d4fdde9 100644
--- a/include/clang/AST/Type.h
+++ b/include/clang/AST/Type.h
@@ -2710,12 +2710,12 @@
LastEnumOperandKind = objc_gc,
// No operand.
- noreturn,
- cdecl,
- fastcall,
- stdcall,
- thiscall,
- pascal
+ attr_noreturn,
+ attr_cdecl,
+ attr_fastcall,
+ attr_stdcall,
+ attr_thiscall,
+ attr_pascal
};
private:
diff --git a/lib/AST/TypePrinter.cpp b/lib/AST/TypePrinter.cpp
index 7e719be..90406b7 100644
--- a/lib/AST/TypePrinter.cpp
+++ b/lib/AST/TypePrinter.cpp
@@ -742,12 +742,12 @@
break;
}
- case AttributedType::noreturn: S += "noreturn"; break;
- case AttributedType::cdecl: S += "cdecl"; break;
- case AttributedType::fastcall: S += "fastcall"; break;
- case AttributedType::stdcall: S += "stdcall"; break;
- case AttributedType::thiscall: S += "thiscall"; break;
- case AttributedType::pascal: S += "pascal"; break;
+ case AttributedType::attr_noreturn: S += "noreturn"; break;
+ case AttributedType::attr_cdecl: S += "cdecl"; break;
+ case AttributedType::attr_fastcall: S += "fastcall"; break;
+ case AttributedType::attr_stdcall: S += "stdcall"; break;
+ case AttributedType::attr_thiscall: S += "thiscall"; break;
+ case AttributedType::attr_pascal: S += "pascal"; break;
}
S += "))";
}