<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Running this on a large code base, it breaks a lot.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 26 May 2021, at 09:32, Zachary Turner <<a href="mailto:zturner@roblox.com" class="">zturner@roblox.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class="">Why didn’t this get merged?  It has an LGTM.</div><div class=""><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 25, 2021 at 11:14 PM Tiago Macarios via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="">For 1. see <a href="https://reviews.llvm.org/D95168" target="_blank" class="">https://reviews.llvm.org/D95168</a></div></div><div dir="ltr" class=""><div class=""><br class=""></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 25, 2021 at 10:35 PM Andi-Bogdan Postelnicu via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br class="">
<br class="">
> On 26 May 2021, at 04:49, saloni goyal via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class="">
> <br class="">
> <br class="">
> Hello!<br class="">
> <br class="">
> I am working on a clang format. I want to customize it:<br class="">
> <br class="">
> 1. For if-else condition I want that for one line statement written in multiple lines should get wrapped in braces and also if there are only nested if-else then that code should be wrapped in braces. I have seen clang-tidy and in that google-readability-braces-around-statements.ShortStatementLines with value 2 gives expected results to me but I want that it should be done with clang-format.<br class="">
> <br class="">
There is a reason why this has been done through the AST, it much easier to manipulate the source range when you have the ast data then when you only have the lexer.<br class="">
<br class="">
> 2. For some comments the intend level should be more or the clang-format should accept some comment intend level as it. <br class="">
> <br class="">
> I want to make these changes in my clang-format. Please can you suggest some way to get these results?<br class="">
Can you paste a sample of before and after, on what are you trying to achieve?<br class="">
> <br class="">
> Regards<br class="">
> Saloni<br class="">
> <br class="">
> _______________________________________________<br class="">
> cfe-dev mailing list<br class="">
> <a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a><br class="">
> <a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
_______________________________________________<br class="">
cfe-dev mailing list<br class="">
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
</blockquote></div></div>
_______________________________________________<br class="">
cfe-dev mailing list<br class="">
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a><br class="">
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></body></html>