In http://reviews.llvm.org/D8465#144236, @rnk wrote:

> 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?


Ah, indeed. This makes things simpler. PTAL

Thanks


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