[cfe-dev] [cfe-commits] Improve performance of SkipBCPLComment()
Peter Davies
ultratwo at gmail.com
Wed Aug 18 11:42:27 PDT 2010
> Do you have some concrete performance numbers?
No, I'll get some.
> Also, how does this behave for a file that has a length divisible by 8 and ends with a backslash followed by a newline in a BCPL comment? (I'm thinking that nextLineIsComment might overshoot the buffer.)
No, it doesn't. If it finds an EOF, the while loop exits and it
returns false since '\0' != '/'.
Peter
More information about the cfe-dev
mailing list