[cfe-commits] BCPL comments not recognized when computing preamble

Matthias Kleine matthias_kleine at gmx.de
Wed Aug 24 09:21:27 PDT 2011


Is there any reason Lexer::ComputePreamble does not take external LangOptions into account, but uses default-constructed ones? As a result, source files that start with BCPL-comments are recognized as having no preambles, even if the file's language supports such comments.

Would the attached patch solve the problem?

Cheers,
Matthias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pass_lang_options_to_compute_preamble.patch
Type: application/octet-stream
Size: 2892 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110824/51095464/attachment.obj>


More information about the cfe-commits mailing list