SourceManager::isMacroArgExpansion has only one param in older Clang

Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1
This commit is contained in:
Stephan Bergmann 2016-04-21 08:51:16 +02:00
parent c285d043be
commit 13758a3d15

View File

@ -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"))
{