[cfe-commits] Improve performance of SkipBCPLComment()

Sean Hunt rideau3 at gmail.com
Wed Aug 18 10:37:31 PDT 2010


On 08/18/2010 11:25 AM, Peter Davies wrote:
> I've optimized SkipBCPLComment() to find the first newline character
> and then backtrack.
>
> Peter

You shouldn't skip whitespace when backtracking; only a backslash 
immediately followed by a newline indicates a continuation.

Sean



More information about the cfe-commits mailing list