[PATCH] D30111: [clang-format] Add a test to check at once all the Mozilla coding style

Sylvestre Ledru via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 28 09:59:09 PST 2017


sylvestre.ledru added a comment.

I will rename it before the upload if that is fine with you.



================
Comment at: unittests/Format/check-coding-style-mozilla.cpp:77
+    return mVar;
+  } // Tiny functions can be written in a single line.
+
----------------
krasimir wrote:
> Note that here the trailing comment will make a version of `TinyFunction` on a single line exceed the line limit.
> If the comment is put before the definition of `TinyFunction`, it could really be made tiny, as in:
> ```
>   // Tiny functions can be written in a single line.
>   int TinyFunction() { return mVar; }
> ```
I will remove it for now. I will add it once we have the capability in clang-format


https://reviews.llvm.org/D30111





More information about the cfe-commits mailing list