[cfe-commits] r122992 - in /cfe/trunk: include/clang/AST/Type.h lib/AST/TypePrinter.cpp
Francois Pichet
pichet2000 at gmail.com
Thu Jan 6 19:17:31 PST 2011
Author: fpichet
Date: Thu Jan 6 21:17:31 2011
New Revision: 122992
URL: http://llvm.org/viewvc/llvm-project?rev=122992&view=rev
Log:
Prefix all attribute enumerators with attr_ for consistency.
Modified:
cfe/trunk/include/clang/AST/Type.h
cfe/trunk/lib/AST/TypePrinter.cpp
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=122992&r1=122991&r2=122992&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Thu Jan 6 21:17:31 2011
@@ -2694,20 +2694,20 @@
// clang::attr::Kind doesn't currently cover the pure type attrs.
enum Kind {
// Expression operand.
- address_space,
- regparm,
- vector_size,
- neon_vector_type,
- neon_polyvector_type,
+ attr_address_space,
+ attr_regparm,
+ attr_vector_size,
+ attr_neon_vector_type,
+ attr_neon_polyvector_type,
- FirstExprOperandKind = address_space,
- LastExprOperandKind = neon_polyvector_type,
+ FirstExprOperandKind = attr_address_space,
+ LastExprOperandKind = attr_neon_polyvector_type,
// Enumerated operand (string or keyword).
- objc_gc,
+ attr_objc_gc,
- FirstEnumOperandKind = objc_gc,
- LastEnumOperandKind = objc_gc,
+ FirstEnumOperandKind = attr_objc_gc,
+ LastEnumOperandKind = attr_objc_gc,
// No operand.
attr_noreturn,
Modified: cfe/trunk/lib/AST/TypePrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/TypePrinter.cpp?rev=122992&r1=122991&r2=122992&view=diff
==============================================================================
--- cfe/trunk/lib/AST/TypePrinter.cpp (original)
+++ cfe/trunk/lib/AST/TypePrinter.cpp Thu Jan 6 21:17:31 2011
@@ -681,13 +681,13 @@
// TODO: not all attributes are GCC-style attributes.
S += "__attribute__((";
switch (T->getAttrKind()) {
- case AttributedType::address_space:
+ case AttributedType::attr_address_space:
S += "address_space(";
S += T->getEquivalentType().getAddressSpace();
S += ")";
break;
- case AttributedType::vector_size: {
+ case AttributedType::attr_vector_size: {
S += "__vector_size__(";
if (const VectorType *vector =T->getEquivalentType()->getAs<VectorType>()) {
S += vector->getNumElements();
@@ -702,9 +702,9 @@
break;
}
- case AttributedType::neon_vector_type:
- case AttributedType::neon_polyvector_type: {
- if (T->getAttrKind() == AttributedType::neon_vector_type)
+ case AttributedType::attr_neon_vector_type:
+ case AttributedType::attr_neon_polyvector_type: {
+ if (T->getAttrKind() == AttributedType::attr_neon_vector_type)
S += "neon_vector_type(";
else
S += "neon_polyvector_type(";
@@ -714,7 +714,7 @@
break;
}
- case AttributedType::regparm: {
+ case AttributedType::attr_regparm: {
S += "regparm(";
QualType t = T->getEquivalentType();
while (!t->isFunctionType())
@@ -724,7 +724,7 @@
break;
}
- case AttributedType::objc_gc: {
+ case AttributedType::attr_objc_gc: {
S += "objc_gc(";
QualType tmp = T->getEquivalentType();
More information about the cfe-commits
mailing list