diff options
author | Martin Probst <martin@probst.io> | 2020-04-02 16:53:17 +0200 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2020-04-03 14:23:56 +0200 |
commit | 146d685cd657399a4698015f16cc5910cc828728 (patch) | |
tree | 45a3a5aee54c541759ae95e28bedc1e0ec3a89cc /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 0718e3ae31b02ebab38bfcff7af13ff876c16502 (diff) | |
download | llvm-146d685cd657399a4698015f16cc5910cc828728.zip llvm-146d685cd657399a4698015f16cc5910cc828728.tar.gz llvm-146d685cd657399a4698015f16cc5910cc828728.tar.bz2 |
clang-format: [JS] detect C++ keywords.
Summary:
C++ defines a number of keywords that are regular identifiers in
JavaScript, e.g. `concept`:
const concept = 1; // legit JS
This change expands the existing `IsJavaScriptIdentifier(Tok)` function
to return false for C++ keywords that aren't keywords in JS.
Reviewers: krasimir
Subscribers: jfb, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D77311
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions