[clang-format] Dont interpret variable named interface as keyword for C++
authorJorge Pinto Sousa <jorge.pinto.sousa@proton.me>
Sun, 16 Apr 2023 10:17:40 +0000 (03:17 -0700)
committerOwen Pan <owenpiano@gmail.com>
Sun, 16 Apr 2023 10:23:53 +0000 (03:23 -0700)
commit9db2a0454815979bc8e0f65e830ab9051b4ff5d2
tree1bf641605e29e6217eb92b8074e3d68b3a7fb602
parent822f0de5924bd5615a7742e0bf3d4719eef5d6ae
[clang-format] Dont interpret variable named interface as keyword for C++

Fixes #53173.

Differential Revision: https://reviews.llvm.org/D148437
clang/lib/Format/UnwrappedLineParser.cpp
clang/unittests/Format/FormatTest.cpp