Kaydet (Commit) 13758a3d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

SourceManager::isMacroArgExpansion has only one param in older Clang

Change-Id: I5aa4f7cca70b8196263613b92c018323152411a1
üst c285d043
......@@ -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"))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment