[cfe-commits] r40762 - /cfe/trunk/include/clang/AST/Type.h
Chris Lattner
sabre at nondot.org
Thu Aug 2 15:19:40 PDT 2007
Author: lattner
Date: Thu Aug 2 17:19:39 2007
New Revision: 40762
URL: http://llvm.org/viewvc/llvm-project?rev=40762&view=rev
Log:
mark some methods static, don't consider a vector to be an ocuvector
Modified:
cfe/trunk/include/clang/AST/Type.h
Modified: cfe/trunk/include/clang/AST/Type.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Type.h?rev=40762&r1=40761&r2=40762&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Type.h (original)
+++ cfe/trunk/include/clang/AST/Type.h Thu Aug 2 17:19:39 2007
@@ -517,13 +517,13 @@
VectorType(OCUVector, vecType, nElements, canonType) {}
friend class ASTContext; // ASTContext creates these.
public:
- bool isPointAccessor(const char c) const {
+ static bool isPointAccessor(const char c) {
return c == 'x' || c == 'y' || c == 'z' || c == 'w';
}
- bool isColorAccessor(const char c) const {
+ static bool isColorAccessor(const char c) {
return c == 'r' || c == 'g' || c == 'b' || c == 'a';
}
- bool isTextureAccessor(const char c) const {
+ static bool isTextureAccessor(const char c) {
return c == 's' || c == 't' || c == 'p' || c == 'q';
};
bool isAccessorWithinNumElements(const char c) const {
@@ -542,9 +542,6 @@
virtual void getAsStringInternal(std::string &InnerString) const;
static bool classof(const Type *T) {
- return T->getTypeClass() == Vector || T->getTypeClass() == OCUVector;
- }
- static bool classof(const VectorType *T) {
return T->getTypeClass() == OCUVector;
}
static bool classof(const OCUVectorType *) { return true; }
More information about the cfe-commits
mailing list