[NFC] Don't pass temporary LangOptions to Lexer
authorJorge Gorbe Moya <jgorbe@google.com>
Mon, 28 Feb 2022 20:52:43 +0000 (12:52 -0800)
committerJorge Gorbe Moya <jgorbe@google.com>
Mon, 28 Feb 2022 20:53:59 +0000 (12:53 -0800)
commitde9611befeebeb85324062cb1ae8978a82a09e26
tree1248d7962162fe17a803f59ae9234a4c4d74a85b
parentf1315c61a03ea6ef72ec11522f9abecd782f4856
[NFC] Don't pass temporary LangOptions to Lexer

Since https://reviews.llvm.org/D120334, passing a temporary LangOptions
object to Lexer results in stack-use-after-scope.
clang-tools-extra/clangd/Format.cpp