It doesn't look too hard to do this locally in ParseCXXInlineMethodDef by 
saving the end of the current token location before calling `TryConsumeToken`:

  SourceLocation KWEndLoc = Tok.getEndLoc();
  if (TryConsumeToken(...)) {
    ...
    FnD->setRangeEnd(KWEndLoc);
  } else if (TryConsumeToken(...)) {
    ...
    FnD->setRangeEnd(KWEndLoc);
  }

Seem reasonable?


http://reviews.llvm.org/D8465

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to