Hi,Attached is a patch that refactors duplicate string literal lexing code within Preprocessor, into a common LexStringLiteral function. In doing so, some consistency problems have been ironed out (e.g. where the first token in the string literal was lexed with macro expansion, but subsequent ones were not) and also an erroneous diagnostic has been corrected (I assume this one was caused by some copy-and-paste in the past!).
I have implemented LexStringLiteral with a complementary FinishLexStringLiteral function which can be used in the situation where the first token of the string literal has already been lexed.
Am I ok to commit this? Thanks Andy
refactor.diff
Description: Binary data
_______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
