aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-05-15 08:15:53 +0000
committerMartin Probst <martin@probst.io>2017-05-15 08:15:53 +0000
commit82b3d906bc2e141525b3e3e5dd24e60f5511de07 (patch)
treec685b37754390dac9364f17846a9fbb161a6602f /llvm/lib/CodeGen/CodeGen.cpp
parent89f9ad8636c672eb26e881f0f9f31f7de8c303a0 (diff)
downloadllvm-82b3d906bc2e141525b3e3e5dd24e60f5511de07.zip
llvm-82b3d906bc2e141525b3e3e5dd24e60f5511de07.tar.gz
llvm-82b3d906bc2e141525b3e3e5dd24e60f5511de07.tar.bz2
clang-format: [JS] fix non-null assertion operator recognition.
Summary: `getIdentifierInfo()` includes all keywords, whereas non-null assertion operators should only be recognized after non-keywords or pseudo keywords. Ideally this should list all tokens that clang-format recognizes as a keyword, but that are pseudo or no keywords in JS. For the time being, just recognize the specific bits users ran into (`namespace` in this case). Reviewers: djasper Subscribers: klimek Differential Revision: https://reviews.llvm.org/D33182 llvm-svn: 303038
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions