Kaydet (Commit) f6ff4c95 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

More compat stuff

(currently only used by a not-yet committed plugin, though)

Change-Id: Id62ea41031ad8ba4495ef46877ad7a10bc58fb05
üst 0085bd28
...@@ -51,6 +51,14 @@ inline clang::QualType getReturnType(clang::FunctionDecl const & decl) { ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment