Hi folks- Do we explicitly state a preferred alignment of arguments in multi-line function declarations (primarily in the context of C++) [1]? This question has come up in regards to using clang-format for cleaning up code [2] and it would be helpful to be able to reference a concrete example in the style guide.
Given this example: int Foo(const nsACstring& aStr, mozilla::UniquePtr<const char*>&& aBuffer, nsISupports* aOptionalThing = nullptr); Should the reformatted style: a) *stay the same* b) align the argument names like so: int Foo(const nsACstring& aStr, mozilla::UniquePtr<const char*>&& aBuffer, nsISupports* aOptionalThing = nullptr); c) some other option -e [1] https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1378250 _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform