summaryrefslogtreecommitdiff
path: root/compilerplugins/clang/unusedmethods.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-06-28 16:25:55 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-06-28 16:26:33 +0200
commit9308f353186fb39a02eddfc281fc72ac1026e0b6 (patch)
tree7c655cf5e142c811ff4dc652ec6d69c7ce133a57 /compilerplugins/clang/unusedmethods.cxx
parent36936d5a8c2e6fc32dcc65d860bdfdafd2fbb766 (diff)
Adapt to Clang 3.4 (in preparation of a buildbot on CentOS 7)
Change-Id: Ie2859f03b31c57deb7fd0deba3285f782e33b239
Diffstat (limited to 'compilerplugins/clang/unusedmethods.cxx')
-rw-r--r--compilerplugins/clang/unusedmethods.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.cxx b/compilerplugins/clang/unusedmethods.cxx
index 7de434d9b887..0ff053af6943 100644
--- a/compilerplugins/clang/unusedmethods.cxx
+++ b/compilerplugins/clang/unusedmethods.cxx
@@ -12,6 +12,9 @@
#include <iostream>
#include <fstream>
#include <set>
+
+#include "clang/AST/Attr.h"
+
#include "plugin.hxx"
#include "compat.hxx"
@@ -265,7 +268,7 @@ gotfunc:
}
// Now do the checks necessary for the "unused return value" analysis
- if (calleeFunctionDecl->getReturnType()->isVoidType()) {
+ if (compat::getReturnType(*calleeFunctionDecl)->isVoidType()) {
return true;
}
if (!parent) {