[PATCH] D28246: clang-format: [JS] avoid indent after ambient function declarations.

Martin Probst via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 05:48:44 PST 2017


mprobst marked an inline comment as done.
mprobst added inline comments.


================
Comment at: unittests/Format/FormatTestJS.cpp:382
+               "let x = 1;\n");
+  verifyFormat("declare function foo(): string;\n"
+               "let x = 1;\n");
----------------
sammccall wrote:
> Maybe include an inline object return type for completeness?
Done. There are still a lot of corner cases (e.g. union type with curlies in a latter type). We'd need to parse more or less the entire type grammar for that though :-/


Repository:
  rL LLVM

https://reviews.llvm.org/D28246





More information about the cfe-commits mailing list