diff options
author | Daniel Jasper <djasper@google.com> | 2015-12-22 15:47:56 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-12-22 15:47:56 +0000 |
commit | 72a1b6a5f245509e45fa9e01e1fbc4a917c51fd4 (patch) | |
tree | 789fe55d47bcac2f7765c97329b60fb0ba137111 /clang/unittests/Format/FormatTestJS.cpp | |
parent | cfcdbde3ce1ef6ccd97e2fdc45ad074b7f63de0d (diff) | |
download | bcm5719-llvm-72a1b6a5f245509e45fa9e01e1fbc4a917c51fd4.tar.gz bcm5719-llvm-72a1b6a5f245509e45fa9e01e1fbc4a917c51fd4.zip |
clang-format: [JS] "operator" is not a keyword in Java/JavaScript.
llvm-svn: 256245
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index fdcc0b75ad3..0957759397f 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -115,6 +115,11 @@ TEST_F(FormatTestJS, ReservedWords) { verifyFormat("var union = 2;"); } +TEST_F(FormatTestJS, CppKeywords) { + // Make sure we don't mess stuff up because of C++ keywords. + verifyFormat("return operator && (aa);"); +} + TEST_F(FormatTestJS, ES6DestructuringAssignment) { verifyFormat("var [a, b, c] = [1, 2, 3];"); verifyFormat("let [a, b, c] = [1, 2, 3];"); |