From: Francois Pichet Date: Fri, 7 Jan 2011 02:58:13 +0000 (+0000) Subject: Do not use cdecl, fastcall, stdcall etc.. as identifier name. They are reserved keywo... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cd47e7883dbfce73189b583850cea81e1d1d261;p=clang 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 c52b9b6252..d4fdde970e 100644 --- a/include/clang/AST/Type.h +++ b/include/clang/AST/Type.h @@ -2710,12 +2710,12 @@ public: 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 7e719be4e9..90406b7306 100644 --- a/lib/AST/TypePrinter.cpp +++ b/lib/AST/TypePrinter.cpp @@ -742,12 +742,12 @@ void TypePrinter::printAttributed(const AttributedType *T, 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 += "))"; }