[all-commits] [llvm/llvm-project] df89bc: [TableGen] Treat carriage return as line end in pr...
Kevin Bravo via All-commits
all-commits at lists.llvm.org
Tue Jul 28 08:08:39 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: df89bcad92cd1a8539d85b200e89182f26743b6f
https://github.com/llvm/llvm-project/commit/df89bcad92cd1a8539d85b200e89182f26743b6f
Author: Kevin Bravo <kbravjr at gmail.com>
Date: 2026-07-28 (Tue, 28 Jul 2026)
Changed paths:
M llvm/lib/TableGen/TGLexer.cpp
A llvm/test/TableGen/ifdef-cr-instead-of-newline.td
Log Message:
-----------
[TableGen] Treat carriage return as line end in prepSkipRegion (#212411)
`prepSkipRegion` currently only treats newline and EOF as end of line.
However, in the TableGen Programmer's Reference:
LineEnd ::= newline | return | EOF
So carriage return is a valid end-of-line, but `prepSkipRegion` ignores
it and skips code after the carriage return that it shouldn't. This
change fixes the end-of-line check in `prepSkipRegion` so that it also
treats carriage return as end of line.
Related issue: #151476.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list