These version checks are about the Clang the plugins are built /against/
...not the (Clang) compiler they are being built /with/. (Also simplifies the checking #if code.) Change-Id: I416321be4ef4478785be40571f81500fd3b6feb8
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
#include "compat.hxx"
|
||||
#include "plugin.hxx"
|
||||
|
||||
#if __clang_major__ == 3 && __clang_minor__ < 7
|
||||
#if CLANG_VERSION < 30700
|
||||
|
||||
template<> struct std::iterator_traits<ExprIterator> {
|
||||
typedef std::ptrdiff_t difference_type;
|
||||
@@ -230,7 +230,7 @@ bool hasCLanguageLinkageType(FunctionDecl const * decl) {
|
||||
if (decl->isExternC()) {
|
||||
return true;
|
||||
}
|
||||
#if (__clang_major__ == 3 && __clang_minor__ >= 3) || __clang_major__ > 3
|
||||
#if CLANG_VERSION >= 30300
|
||||
if (decl->isInExternCContext()) {
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user