]> git.puffer.fish Git - mirror/frr.git/commit
lib/clippy: bail out on newline inside string 13108/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Sat, 25 Mar 2023 03:34:35 +0000 (12:34 +0900)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sat, 25 Mar 2023 03:34:35 +0000 (12:34 +0900)
commitbe95afe1968b43ccc9e3f267b12043a62f3f0595
tree1e97509b6f300480ff0e5ccc54c9437e0fe79f8e
parent9e92984f327221cda8578718040295485e33d5ba
lib/clippy: bail out on newline inside string

While C compilers will generally process strings across lines, we really
don't want that.  I rather treat this as the indication of the typo it
probably is warn about it than support this odd C edge case.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/defun_lex.l