diff options
author | Daniel Jasper <djasper@google.com> | 2014-11-27 14:55:17 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2014-11-27 14:55:17 +0000 |
commit | ea63da2783aeede9328a805dd2f932c6a92572e2 (patch) | |
tree | 26ce3589359539a2717ee0f3b5845ccf024967b4 /unittests | |
parent | 68d993f7b848d8fa8fca5280cab1608259fdae1a (diff) |
clang-format: [JS] new and delete are valid function names.
Before:
someObject.new ();
someObject.delete ();
After:
someObject.new();
someObject.delete();
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@222890 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJS.cpp b/unittests/Format/FormatTestJS.cpp index 3e781c94d0..6c8fd2962a 100644 --- a/unittests/Format/FormatTestJS.cpp +++ b/unittests/Format/FormatTestJS.cpp @@ -361,6 +361,8 @@ TEST_F(FormatTestJS, TryCatch) { // But, of course, "catch" is a perfectly fine function name in JavaScript. verifyFormat("someObject.catch();"); + verifyFormat("someObject.new();"); + verifyFormat("someObject.delete();"); } TEST_F(FormatTestJS, StringLiteralConcatenation) { |