summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-21 08:51:16 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-21 08:51:40 +0200
commit13758a3d154e8e450fdfe8bcdeb6b3a03996c53a (patch)
tree4de78bbef2c523e4f8b6a3830bbf89fd68475b5d
parentc285d043be71251731c8bf30f44b7587d5fa7169 (diff)
SourceManager::isMacroArgExpansion has only one param in older Clang
Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1
-rw-r--r--compilerplugins/clang/salbool.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/compilerplugins/clang/salbool.cxx b/compilerplugins/clang/salbool.cxx
index 1c55e346cb98..ed61b2d8e55a 100644
--- a/compilerplugins/clang/salbool.cxx
+++ b/compilerplugins/clang/salbool.cxx
@@ -284,12 +284,12 @@ bool SalBool::VisitCStyleCastExpr(CStyleCastExpr * expr) {
compiler.getSourceManager().getImmediateMacroCallerLoc(
loc));
if (!isFromCIncludeFile(callLoc)) {
- SourceLocation argLoc;
if (compiler.getSourceManager().isMacroArgExpansion(
- expr->getLocStart(), &argLoc)
+ expr->getLocStart())
//TODO: check its the complete (first) arg to the macro
&& (Lexer::getImmediateMacroName(
- argLoc, compiler.getSourceManager(),
+ expr->getLocStart(),
+ compiler.getSourceManager(),
compiler.getLangOpts())
== "CPPUNIT_ASSERT_EQUAL"))
{