]> granicus.if.org Git - clang/commitdiff
Do not use cdecl, fastcall, stdcall etc.. as identifier name. They are reserved keywo...
authorFrancois Pichet <pichet2000@gmail.com>
Fri, 7 Jan 2011 02:58:13 +0000 (02:58 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Fri, 7 Jan 2011 02:58:13 +0000 (02:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122991 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Type.h
lib/AST/TypePrinter.cpp

index c52b9b6252e78257cf2c74c2de48eb81daac7eda..d4fdde970edb9db6bca13ec030454d35da69e3db 100644 (file)
@@ -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:
index 7e719be4e907bd554dc86ac4bc9548ec6c8cf511..90406b7306d539d023d71101bcfb3fe792dc2d05 100644 (file)
@@ -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 += "))";
 }