SourceManager::isMacroArgExpansion has only one param in older Clang
Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1
This commit is contained in:
parent
c285d043be
commit
13758a3d15
@ -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"))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user