Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>,
Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>,
Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>,
Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>,
Timm =?utf-8?q?Bäder?= <tbae...@redhat.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/66514/cl...@github.com>


cor3ntin wrote:

I have concerns about Lexing twice every single file for which we display a 
warning.

Did you try something along the lines of what Richard suggested? Keeping track 
of where lines start does seem like a good idea.

We could even keep track of ranges of good lines which would reduce even 
further how much state we need to keep in the lexer.

We can then parse starting from the nearest good line start. We could still 
cache that further if we wanted.

https://github.com/llvm/llvm-project/pull/66514
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to