diff options
author | Daniel Jasper <djasper@google.com> | 2015-05-02 08:05:38 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-05-02 08:05:38 +0000 |
commit | f69b922e571669f72a9b3c0a6655c08da0be973b (patch) | |
tree | 6132874131cbd593711d5cb7e6038b4a2dcac952 /clang/unittests/Basic/SourceManagerTest.cpp | |
parent | d22190632cf9eac4d1462596865f4de743df1d6a (diff) | |
download | llvm-f69b922e571669f72a9b3c0a6655c08da0be973b.zip llvm-f69b922e571669f72a9b3c0a6655c08da0be973b.tar.gz llvm-f69b922e571669f72a9b3c0a6655c08da0be973b.tar.bz2 |
clang-format: [JS] Fix calculation of template string width.
OriginalColumn might not be set, so fall back to Location and SourceMgr
in case it is missing. Also initialize end column in case the token is
multi line, but it's the ` token itself that starts the multi line.
Patch by Martin Probst, thank you!
llvm-svn: 236383
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions