<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">PING<br>
      <br>
      Vicente<br>
      Le 01/05/2017 à 14:42, Vicente J. Botet Escriba via cfe-dev a
      écrit :<br>
    </div>
    <blockquote
      cite="mid:a19bc8c1-6197-7c3e-e2bf-8703d2558d5f@wanadoo.fr"
      type="cite">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <p>Hi,</p>
      <p><br>
      </p>
      next follows some points related to the
      readability-identifier-naming checker I would like some feedback.<br>
      <p><br>
      </p>
      <p><b>Different styles for different part of the checks</b><br>
      </p>
      <p>In my personal library projects I use to use one style (C++
        standard like style) for the library part and another style
        (Java style) for the tests.<br>
      </p>
      <p>Is there a possibility to have different styles applied to
        different files?</p>
      Is there a possibility to select the style depending on the
      namespace?<br>
      <p><br>
      </p>
      <p><b>Different styles for different stylistic usage of the same
          AST kind of identifier</b><br>
      </p>
      <p>Another use case where I need different styles is the
        following.<br>
      </p>
      <p>In <=C++17 where we don't have concepts, it is usual to
        define some template alias in CamelCase for traits representing
        concepts constrains, e.g. EqualityComparable, Regular. I use
        also lower_case for traits. That is I use the same kind of
        Identifier with different intents.<br>
      </p>
      <p>Is there a possibility to associate two identifier styles for
        the same kind of identifier?</p>
      I work also on a project where the enumerators can be in
      UPPER_CASE or lower_case.<br>
      <br>
      <b><font size="+1">Implementation details identifiers<br>
        </font></b>
      <p><font size="+1">I would like </font><font size="+1"><font
            size="+1">lower_case to support a possible prefix _</font> 
          e.g.  _var</font></p>
      <p><font size="+1">I use these to mean that these names are in
          some way an implementation detail, even if they are public.<br>
        </font></p>
      <p><font size="+1">Note that var_ is valid lower_case symbol.<br>
        </font></p>
      <p><font size="+1">Do others use this kind of names?</font></p>
      <p><font size="+1">Would I need a specific _lower_case style?<br>
        </font></p>
      <p><br>
      </p>
      <p><b><font size="+1">CamelCase</font></b></p>
      <p><font size="+1">When I use template parameters I use to use
          Args, Ts, T.</font></p>
      <p><font size="+1">However I'm getting warnings when I set the
          case to CamelCase.</font></p>
      <p><font size="+1">I consider all those identifiers having
          CamelCase style.</font></p>
      <p><font size="+1">What is the style I should associate to those
          identifiers?</font></p>
      <p><font size="+1">What identifies a CamelCase identifier? on that
          doesn't contain _ and start by capital letter and has an
          additional capital letter?<br>
        </font></p>
      <p><font size="+1"><br>
        </font></p>
      <p><b><font size="+1">Acronyms and lower_case</font></b></p>
      <p><font size="+1">I use to use UPPERCASE for acronyms o mixed
          with lower_case. I name this style </font><font size="+1">lower_ACHRO_case.</font></p>
      <p><font size="+1">That is, </font><font size="+1">lower_</font><font
          size="+1"><font size="+1">ACHRO</font>_case, support segments
          separated by _ that are either LOWERCASE or UPPERCASE.<br>
        </font></p>
      <p><font size="+1">Now I'm forced to </font><font size="+1">aNy_CasE
          to support this kind of identifiers.</font></p>
      <p><font size="+1">Do others use this kind of names?<br>
        </font></p>
      <p><b><font size="+1">Snake_Case</font></b></p>
      <b> </b>
      <p><font size="+1">BS proposed this style for Concepts and
          template parameters.</font></p>
      <p><font size="+1">That is, </font><font size="+1">Snake_Case</font><font
          size="+1">, support segments separated by _ that are start by
          a Capital letter and the other are lower case<br>
        </font></p>
      <p><font size="+1">Now I'm forced to </font><font size="+1">aNy_CasE
          to support this kind of identifiers.</font></p>
      <p><font size="+1">Any plans to support this style?<br>
        </font></p>
      <p><br>
      </p>
      <p>Besrt regards,</p>
      <p>Vicente Botet<br>
      </p>
      <br>
      <p><font size="+1"><br>
        </font></p>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
cfe-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>