if (!S)
return;
- SourceRange Range = S->getSourceRange();
+ const SourceRange *Beg, *End;
+ R.getRanges(Beg, End);
+
+ if (Beg == End) {
+ SourceRange Range = S->getSourceRange();
+
+ Diag.Report(FullSourceLoc(S->getLocStart(), Ctx.getSourceManager()),
+ ErrorDiag, NULL, 0, &Range, 1);
+
+ }
+ else
+ Diag.Report(FullSourceLoc(S->getLocStart(), Ctx.getSourceManager()),
+ ErrorDiag, NULL, 0, Beg, End - Beg);
- Diag.Report(FullSourceLoc(S->getLocStart(), Ctx.getSourceManager()),
- ErrorDiag, NULL, 0, &Range, 1);
}
command = 'cp'.split()
args = command + files + target.split()
else:
- command = 'clang --grsimple'.split()
+ command = 'clang -check-cfref'.split()
args = command + args;
if htmldir is not None: