SourceManager::isMacroArgExpansion has only one param in older Clang
Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1
This commit is contained in:
@@ -284,12 +284,12 @@ bool SalBool::VisitCStyleCastExpr(CStyleCastExpr * expr) {
|
|||||||
compiler.getSourceManager().getImmediateMacroCallerLoc(
|
compiler.getSourceManager().getImmediateMacroCallerLoc(
|
||||||
loc));
|
loc));
|
||||||
if (!isFromCIncludeFile(callLoc)) {
|
if (!isFromCIncludeFile(callLoc)) {
|
||||||
SourceLocation argLoc;
|
|
||||||
if (compiler.getSourceManager().isMacroArgExpansion(
|
if (compiler.getSourceManager().isMacroArgExpansion(
|
||||||
expr->getLocStart(), &argLoc)
|
expr->getLocStart())
|
||||||
//TODO: check its the complete (first) arg to the macro
|
//TODO: check its the complete (first) arg to the macro
|
||||||
&& (Lexer::getImmediateMacroName(
|
&& (Lexer::getImmediateMacroName(
|
||||||
argLoc, compiler.getSourceManager(),
|
expr->getLocStart(),
|
||||||
|
compiler.getSourceManager(),
|
||||||
compiler.getLangOpts())
|
compiler.getLangOpts())
|
||||||
== "CPPUNIT_ASSERT_EQUAL"))
|
== "CPPUNIT_ASSERT_EQUAL"))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user