sp_after_oc_block_caret
Category: Spacing options Type: multiple (ignore add remove force) Default: ignore
(OC) Add or remove space after a block pointer caret, i.e. '^int (int arg){...}' vs. '^ int (int arg){...}'.
raw CPP code | sp_after_oc_block_caret=ignore | sp_after_oc_block_caret=add | sp_after_oc_block_caret=remove | sp_after_oc_block_caret=force | space sp_after_oc_block_caret=force |
---|---|---|---|---|---|
/*-- 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; } | /*-- 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 --*/ intmain(intargc,char**argv){ intn=0; if(arg>=1){ printf("Hello %s!\n",argv[1]); n=strlen(argv[1]); }else{ puts("Hello world!"); } returnn; } |
Not the best code for this option? See how to improve the .uds file used to generate these examples.