aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-10-07 16:29:22 +0100
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>2020-10-07 17:17:41 +0100
commitff6e4441b93953efb2c52995e79e211a49ffac06 (patch)
tree7d8f4c74fb7347a9fa741798f291ab0d797132b2 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent0a3c82e85b73e51e830b57844b2f5b98cb59afd1 (diff)
downloadllvm-ff6e4441b93953efb2c52995e79e211a49ffac06.zip
llvm-ff6e4441b93953efb2c52995e79e211a49ffac06.tar.gz
llvm-ff6e4441b93953efb2c52995e79e211a49ffac06.tar.bz2
[clang-format][tests] Fix MacroExpander lexer not parsing C++ keywords
While debugging a different clang-format failure, I tried to reuse the MacroExpander lexer, but was surprised to see that it marks all C++ keywords (e.g. const, decltype) as being of type identifier. After stepping through the ::format() code, I noticed that the difference between these two is that the identifier table was not being initialized based on the FormatStyle, so only basic tokens such as tok::semi, tok::plus, etc. were being handled. Reviewed By: klimek Differential Revision: https://reviews.llvm.org/D88952
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions