diff options
author | Daniel Jasper <djasper@google.com> | 2016-03-02 22:44:03 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-03-02 22:44:03 +0000 |
commit | abd1f574535fd57d2099daff486afb0ded29138a (patch) | |
tree | 3f8f70a7022cbcbf9f2b0d0899258e38daa28d23 /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py | |
parent | a0d7a2cd3f878f8fa9624006998558057bed9081 (diff) | |
download | bcm5719-llvm-abd1f574535fd57d2099daff486afb0ded29138a.tar.gz bcm5719-llvm-abd1f574535fd57d2099daff486afb0ded29138a.zip |
clang-format: [JS] Optionally re-quote string literals.
Turns "foo" into 'foo' (or vice versa, depending on configuration).
This makes it more convenient to follow the Google JavaScript style
guide:
https://google.github.io/styleguide/javascriptguide.xml?showone=Strings#Strings
This functionality is behind the option "JavaScriptQuotes", which can be:
* "leave" (no re-quoting)
* "single" (change to single quotes)
* "double" (change to double quotes)
This also changes single quoted JavaScript string literals to be treated
as tok::string_literal, not tok::char_literal, which fixes two unrelated
tests.
Patch by Martin Probst. Thank you.
llvm-svn: 262534
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions