forked from OSchip/llvm-project
parent
124bb197a7
commit
5c275a94fb
|
@ -63,6 +63,7 @@ namespace clang {
|
||||||
class TypedefType;
|
class TypedefType;
|
||||||
class TemplateTypeParmType;
|
class TemplateTypeParmType;
|
||||||
class FunctionType;
|
class FunctionType;
|
||||||
|
class FunctionTypeNoProto;
|
||||||
class FunctionTypeProto;
|
class FunctionTypeProto;
|
||||||
class ExtVectorType;
|
class ExtVectorType;
|
||||||
class BuiltinType;
|
class BuiltinType;
|
||||||
|
@ -396,6 +397,7 @@ public:
|
||||||
// the best type we can.
|
// the best type we can.
|
||||||
const BuiltinType *getAsBuiltinType() const;
|
const BuiltinType *getAsBuiltinType() const;
|
||||||
const FunctionType *getAsFunctionType() const;
|
const FunctionType *getAsFunctionType() const;
|
||||||
|
const FunctionTypeNoProto *getAsFunctionTypeNoProto() const;
|
||||||
const FunctionTypeProto *getAsFunctionTypeProto() const;
|
const FunctionTypeProto *getAsFunctionTypeProto() const;
|
||||||
const PointerLikeType *getAsPointerLikeType() const; // Pointer or Reference.
|
const PointerLikeType *getAsPointerLikeType() const; // Pointer or Reference.
|
||||||
const PointerType *getAsPointerType() const;
|
const PointerType *getAsPointerType() const;
|
||||||
|
|
|
@ -216,6 +216,10 @@ const FunctionType *Type::getAsFunctionType() const {
|
||||||
return getDesugaredType()->getAsFunctionType();
|
return getDesugaredType()->getAsFunctionType();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const FunctionTypeNoProto *Type::getAsFunctionTypeNoProto() const {
|
||||||
|
return dyn_cast_or_null<FunctionTypeNoProto>(getAsFunctionType());
|
||||||
|
}
|
||||||
|
|
||||||
const FunctionTypeProto *Type::getAsFunctionTypeProto() const {
|
const FunctionTypeProto *Type::getAsFunctionTypeProto() const {
|
||||||
return dyn_cast_or_null<FunctionTypeProto>(getAsFunctionType());
|
return dyn_cast_or_null<FunctionTypeProto>(getAsFunctionType());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue