[PATCH] D69972: clang-format: [JS] test declared fields.
Martin Probst via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 11 07:36:39 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6bcd8d4a18fc: clang-format: [JS] test declared fields. (authored by mprobst).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D69972/new/
https://reviews.llvm.org/D69972
Files:
clang/unittests/Format/FormatTestJS.cpp
Index: clang/unittests/Format/FormatTestJS.cpp
===================================================================
--- clang/unittests/Format/FormatTestJS.cpp
+++ clang/unittests/Format/FormatTestJS.cpp
@@ -2369,5 +2369,12 @@
" static #staticPrivateMethod() {}\n");
}
+TEST_F(FormatTestJS, DeclaredFields) {
+ verifyFormat("class Example {\n"
+ " declare pub: string;\n"
+ " declare private priv: string;\n"
+ "}\n");
+}
+
} // namespace format
} // end namespace clang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69972.228694.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20191111/5e9d98a3/attachment-0001.bin>
More information about the cfe-commits
mailing list