[PATCH] clang-format: [JS] Fix function formatting

Daniel Jasper djasper at google.com
Wed Jun 18 15:08:44 PDT 2014


Based on the tests, I think this is (or at least might be) the wrong fix. For example, there can be function literals with names in other expression contexts, not just in braced lists, e.g.:

  var variablename = function FunctionName(Argument List) { 
    // Function Body 
  };

I'll ponder this some more and get back to you.

http://reviews.llvm.org/D4190






More information about the cfe-commits mailing list