home  

cmt_multi_check_last

Properties

  Category: Comment modification options
      Type: boolean [false, true]
   Default: true

Description

For multi-line comments with a '*' lead, remove leading spaces if the first
and last lines of the comment are the same length.

Default: true

Examples

raw CPP code cmt_multi_check_last=false cmt_multi_check_last=true
/*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; } /*-- this is the default sample --*/ int main(int argc, char** argv){ int n = 0; if(arg>=1){ printf("Hello %s!\n", argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } return n; }
 

Not the best code for this option? See how to improve the .uds file used to generate these examples.