More compat stuff
(currently only used by a not-yet committed plugin, though) Change-Id: Id62ea41031ad8ba4495ef46877ad7a10bc58fb05
This commit is contained in:
@@ -51,6 +51,14 @@ inline clang::QualType getReturnType(clang::FunctionDecl const & decl) {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline clang::QualType getReturnType(clang::FunctionProtoType const & type) {
|
||||||
|
#if (__clang_major__ == 3 && __clang_minor__ >= 5) || __clang_major__ > 3
|
||||||
|
return type.getReturnType();
|
||||||
|
#else
|
||||||
|
return type.getResultType();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
inline unsigned getNumParams(clang::FunctionProtoType const & type) {
|
inline unsigned getNumParams(clang::FunctionProtoType const & type) {
|
||||||
#if (__clang_major__ == 3 && __clang_minor__ >= 5) || __clang_major__ > 3
|
#if (__clang_major__ == 3 && __clang_minor__ >= 5) || __clang_major__ > 3
|
||||||
return type.getNumParams();
|
return type.getNumParams();
|
||||||
|
Reference in New Issue
Block a user