Home | History | Annotate | Line # | Download | only in indent
opt_T.c revision 1.2
      1  1.2  rillig /* $NetBSD: opt_T.c,v 1.2 2021/11/19 22:24:29 rillig Exp $ */
      2  1.1  rillig /* $FreeBSD$ */
      3  1.1  rillig 
      4  1.2  rillig /*
      5  1.2  rillig  * Tests for the option '-T', which specifies a single identifier that indent
      6  1.2  rillig  * will recognize as a type name.  This affects the formatting of
      7  1.2  rillig  * syntactically ambiguous expressions that could be casts or multiplications,
      8  1.2  rillig  * among others.
      9  1.2  rillig  */
     10  1.2  rillig 
     11  1.1  rillig #indent input
     12  1.2  rillig int cast = (custom_type_name)   *   arg;
     13  1.2  rillig 
     14  1.2  rillig int mult = (unknown_type_name)   *   arg;
     15  1.2  rillig 
     16  1.2  rillig /* See the option -ta for handling these types. */
     17  1.2  rillig int suff = (unknown_type_name_t)   *   arg;
     18  1.1  rillig #indent end
     19  1.1  rillig 
     20  1.2  rillig #indent run -Tcustom_type_name -di0
     21  1.2  rillig int cast = (custom_type_name)*arg;
     22  1.2  rillig 
     23  1.2  rillig int mult = (unknown_type_name) * arg;
     24  1.2  rillig 
     25  1.2  rillig /* See the option -ta for handling these types. */
     26  1.2  rillig int suff = (unknown_type_name_t) * arg;
     27  1.2  rillig #indent end
     28  1.2  rillig 
     29  1.2  rillig #indent run -Tcustom_type_name -di0 -cs
     30  1.2  rillig int cast = (custom_type_name) *arg;
     31  1.2  rillig 
     32  1.2  rillig int mult = (unknown_type_name) * arg;
     33  1.2  rillig 
     34  1.2  rillig /* See the option -ta for handling these types. */
     35  1.2  rillig int suff = (unknown_type_name_t) * arg;
     36  1.1  rillig #indent end
     37