diff options
author | Daniel Jasper <djasper@google.com> | 2015-11-20 15:58:50 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-11-20 15:58:50 +0000 |
commit | 09840efd92cca6713fd0e71543b21d201da636d6 (patch) | |
tree | 49923c8c6d14a62e526707b6c9ffd39bd5497a9e /clang/unittests/Format/FormatTestJS.cpp | |
parent | df544a098aa63aca5c1830ac1cfd19fbdb5b9f7f (diff) | |
download | bcm5719-llvm-09840efd92cca6713fd0e71543b21d201da636d6.tar.gz bcm5719-llvm-09840efd92cca6713fd0e71543b21d201da636d6.zip |
clang-format: [JS] struct and union aren't keywords / reserved words.
llvm-svn: 253671
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index b491cd58659..9be375243c8 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -111,6 +111,8 @@ TEST_F(FormatTestJS, ReservedWords) { " interface: 1,\n" " switch: 1,\n" "};"); + verifyFormat("var struct = 2;"); + verifyFormat("var union = 2;"); } TEST_F(FormatTestJS, ES6DestructuringAssignment) { |