<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">(Possibly wrong mailing list?)<div class=""><br class=""></div><div class=""><br class="">I'm trying to get the formatting for binary operators and constructor arguments the way our group would like it. Currently the style is based on llvm. For operator alignment it currently returns:<br class=""><font face="Courier Prime" class="">bool Derived::equals(const Base *n)<br class="">{<br class=""> if (false == Base::equals(n))<br class="">   return false;<br class=""> Derived *an = ( Derived * )n;<br class=""> return (m_num_nodes == an->m_num_nodes && m_num_slices == an->m_num_slices &&<br class="">         m_num_nodeslices == an->m_num_nodeslices && m_is_selstar == an->m_is_selstar);<br class="">}<br class=""></font>We would prefer it return the following:<br class=""><font face="Courier Prime" class="">bool Derived::equals(const Base *n)<br class="">{<br class=""> if (false == Base::equals(n))<br class="">   return false;<br class=""> Derived *an = (Derived *)n;<br class=""> return (m_num_nodes == an->m_num_nodes &&<br class="">         m_num_slices == an->m_num_slices &&<br class="">         m_num_nodeslices == an->m_num_nodeslices &&<br class="">         m_is_selstar == an->m_is_selstar);<br class="">}</font></div><div class=""><font face="Courier Prime" class=""><br class=""></font>What is interesting is that the preferred output is almost correct if I use -style=none. But some details about curly-brace locating don't match. The full style is at the end of this message.<br class=""><br class="">The alignment we would prefer for function arguments is to have 1 per line, with a leading ','. Based on LLVM<br class="">We have<br class=""><font face="Courier Prime" class="">inline<br class="">void Mgr::retag<br class=""> /// Helper method to request retagging of an address range rather than a<br class=""> /// base and count.<br class=""> ( void* base          ///< Huge page aligned range begin<br class=""> , void* end           ///< Randomly aligned range end<br class=""> , qx::TxTag newTag    ///< New tag (to be assigned)<br class=""> )<br class=""></font>But the formatter does this. Again -style=none doesn't have the problem.<br class=""><font face="Courier Prime" class="">inline void Mgr::deallocate<br class="">   /// Helper method to request freeing of an address range rather than a<br class="">   /// base and count.<br class="">   (void *base ///< Huge page aligned range begin<br class="">    ,<br class="">    void *end ///< Randomly aligned range end<br class="">    ,<br class="">    bool noError ///< Crux of the _one-shot_ mechanism<br class="">   )<br class=""><br class=""></font>If I could get guidance on how to set switches for these 2 options it would go a long way in getting our code.<br class=""><br class="">CSI.CSI <<a href="http://clang-developers.42468.n3.nabble.com/file/t497788/CSI.CSI" class="">http://clang-developers.42468.n3.nabble.com/file/t497788/CSI.CSI</a>>  </div></div>
</body></html>