[NFC] Use higher level constructs to check for whitespace/newlines in the lexer
authorserge-sans-paille <sguelton@redhat.com>
Mon, 15 Mar 2021 17:18:55 +0000 (18:18 +0100)
committerserge-sans-paille <sguelton@redhat.com>
Mon, 15 Mar 2021 17:27:19 +0000 (18:27 +0100)
commit9628cb1feef63d764c57fd0652016f9188000e2f
tree5c5d24b98206d1ff6a762d3a7fd9833a0a63fe1a
parentfcfd3fda71905d7c48f75a531c2265ad3b9876ea
[NFC] Use higher level constructs to check for whitespace/newlines in the lexer

It turns out that according to valgrind and perf, it's also slightly faster.

Differential Revision: https://reviews.llvm.org/D98637
clang/lib/Lex/Lexer.cpp