summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMConstantPoolValue.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2015-10-18 07:02:28 +0000
committerDaniel Jasper <djasper@google.com>2015-10-18 07:02:28 +0000
commit265309e38a99a74d872a818b1c49085165e4e1ac (patch)
tree35745ed2cc0973e7d2e6251c6405c7fefe9e3287 /llvm/lib/Target/ARM/ARMConstantPoolValue.h
parent273dbc602f783d5f99b969d51d57a67cc7c8d6c0 (diff)
downloadbcm5719-llvm-265309e38a99a74d872a818b1c49085165e4e1ac.tar.gz
bcm5719-llvm-265309e38a99a74d872a818b1c49085165e4e1ac.zip
clang-format: [JS] Handle string literals spanning character classes.
If a RegExp contains a character group with a quote (/["]/), the trailing end of it is first tokenized as a string literal, which leads to the merging code seeing an unbalanced bracket. This change parses regex literals from the left hand side. That simplifies the parsing code and also allows correctly handling escapes and character classes, hopefully correctly parsing all regex literals. Patch by Martin Probst, thank you. Review: http://reviews.llvm.org/D13765 llvm-svn: 250648
Diffstat (limited to 'llvm/lib/Target/ARM/ARMConstantPoolValue.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud