From 01f3b95884ab652a61a621a0c9dc3e2e0b7c3e4b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 26 Feb 2016 12:50:16 +0100 Subject: 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 --- compilerplugins/clang/unusedmethods.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compilerplugins/clang/unusedmethods.cxx') diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx index c2785dd771ea..e0b971882a51 100644 --- a/compilerplugins/clang/unusedmethods.cxx +++ b/compilerplugins/clang/unusedmethods.cxx @@ -119,7 +119,7 @@ MyFuncInfo UnusedMethods::niceName(const FunctionDecl* functionDecl) else if (functionDecl->getClassScopeSpecializationPattern()) functionDecl = functionDecl->getClassScopeSpecializationPattern(); // workaround clang-3.5 issue -#if __clang_major__ > 3 || ( __clang_major__ == 3 && __clang_minor__ >= 6 ) +#if CLANG_VERSION >= 30600 else if (functionDecl->getTemplateInstantiationPattern()) functionDecl = functionDecl->getTemplateInstantiationPattern(); #endif -- cgit