Based on include-cleaner's version, but:
- remove assert that can fail for input /\<newline>* */
- assert was also checking the wrong condition: that the prefix *differed* from either // or from /*. Avoid use of strncmp where we can.
- add a comment that the brittleness of the text matching is intentional
I'd like to have some unittests for this function (the cases you mentioned are really good, I don't want to lose them), but this function is not exposed. Maybe expose it or even address the FIXME?