From 13758a3d154e8e450fdfe8bcdeb6b3a03996c53a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 21 Apr 2016 08:51:16 +0200 Subject: [PATCH] SourceManager::isMacroArgExpansion has only one param in older Clang Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1 --- compilerplugins/clang/salbool.cxx | 6 +++--- 1 file 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")) {