[llvm-bugs] [Bug 33154] inconsistent formatting of javascript function braces

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 30 03:00:15 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33154

Martin Probst <martin at probst.io> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WONTFIX
             Status|NEW                         |RESOLVED

--- Comment #4 from Martin Probst <martin at probst.io> ---
I took a look. The problem is that detecting an automatic semicolon on "}
(ident|statement)" throws off the indentation counting.

I'll mark this as WONTFIX for now, it'd require substantial refactoring of how
clang-format handles indentation.

I'd recommend using a JS linter (jslint, tslint, ...) to detect missing semis,
and fixing them manually.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170530/c5162f1e/attachment.html>


More information about the llvm-bugs mailing list