]> granicus.if.org Git - clang/commit
[clang-format] JS: don't treat is: as a type matcher
authorKrasimir Georgiev <krasimir@google.com>
Tue, 20 Nov 2018 14:22:43 +0000 (14:22 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Tue, 20 Nov 2018 14:22:43 +0000 (14:22 +0000)
commite0df036e92af1685dac5521d4991870281c02162
tree979d9de9a8919db8fd4b62d8f2fd3d4921c0117d
parent12733dd67935054c5b0b72f58453bf727b457031
[clang-format] JS: don't treat is: as a type matcher

Summary:
Clang-format is treating all occurences of `is` in js as type matchers. In some
cases this is wrong, as it might be a dict key.

Reviewers: mprobst

Reviewed By: mprobst

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D54753

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347307 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp