Still some more tabs to be taken care of. arm-gen.c and tcccoff.c have so many style issues that I'm just going to throw clang-format at them.
Showing the changes to libtcc.c (1 of 10 files). Show all
Unified · Split
| @@ -672,7 +672,7 @@ ST_FUNC void put_extern_sym2(Sym *sym, Section *section, · 671 unmodified lines | ||
| 672 | 672 | } |
| 673 | 673 | #else |
| 674 | 674 | if (! (sym->type.t & VT_STATIC)) |
| 675 | − other = (sym->type.t & VT_VIS_MASK) >> VT_VIS_SHIFT; | |
| 675 | + other = (sym->type.t & VT_VIS_MASK) >> VT_VIS_SHIFT; | |
| 676 | 676 | #endif |
| 677 | 677 | if (tcc_state->leading_underscore && can_add_underscore) { |
| 678 | 678 | buf1[0] = '_'; |
| @@ -2101,11 +2101,11 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 1422 unmodified lines | ||
| 2101 | 2101 | s->static_link = 1; |
| 2102 | 2102 | break; |
| 2103 | 2103 | case TCC_OPTION_std: |
| 2104 | − /* silently ignore, a current purpose: | |
| 2105 | − allow to use a tcc as a reference compiler for "make test" */ | |
| 2104 | + /* silently ignore, a current purpose: | |
| 2105 | + allow to use a tcc as a reference compiler for "make test" */ | |
| 2106 | 2106 | break; |
| 2107 | 2107 | case TCC_OPTION_shared: |
| 2108 | − if (s->output_type) | |
| 2108 | + if (s->output_type) | |
| 2109 | 2109 | tcc_warning("-shared: some compiler action already specified (%d)", s->output_type); |
| 2110 | 2110 | s->output_type = TCC_OUTPUT_DLL; |
| 2111 | 2111 | break; |
| @@ -2124,7 +2124,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 12 unmodified lines | ||
| 2124 | 2124 | break; |
| 2125 | 2125 | case TCC_OPTION_r: |
| 2126 | 2126 | /* generate a .o merging several output files */ |
| 2127 | − if (s->output_type) | |
| 2127 | + if (s->output_type) | |
| 2128 | 2128 | tcc_warning("-r: some compiler action already specified (%d)", s->output_type); |
| 2129 | 2129 | s->option_r = 1; |
| 2130 | 2130 | s->output_type = TCC_OUTPUT_OBJ; |
| @@ -2163,7 +2163,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 32 unmodified lines | ||
| 2163 | 2163 | s->print_search_dirs = 1; |
| 2164 | 2164 | break; |
| 2165 | 2165 | case TCC_OPTION_run: |
| 2166 | − if (s->output_type) | |
| 2166 | + if (s->output_type) | |
| 2167 | 2167 | tcc_warning("-run: some compiler action already specified (%d)", s->output_type); |
| 2168 | 2168 | s->output_type = TCC_OUTPUT_MEMORY; |
| 2169 | 2169 | tcc_set_options(s, optarg); |
| @@ -2194,7 +2194,7 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 24 unmodified lines | ||
| 2194 | 2194 | cstr_ccat(&linker_arg, '\0'); |
| 2195 | 2195 | break; |
| 2196 | 2196 | case TCC_OPTION_E: |
| 2197 | − if (s->output_type) | |
| 2197 | + if (s->output_type) | |
| 2198 | 2198 | tcc_warning("-E: some compiler action already specified (%d)", s->output_type); |
| 2199 | 2199 | s->output_type = TCC_OUTPUT_PREPROCESS; |
| 2200 | 2200 | break; |
| @@ -2251,13 +2251,13 @@ PUB_FUNC int tcc_parse_args(TCCState *s, int argc, char **argv) · 50 unmodified lines | ||
| 2251 | 2251 | } |
| 2252 | 2252 | |
| 2253 | 2253 | if (s->output_type == 0) |
| 2254 | − s->output_type = TCC_OUTPUT_EXE; | |
| 2254 | + s->output_type = TCC_OUTPUT_EXE; | |
| 2255 | 2255 | |
| 2256 | 2256 | if (pthread && s->output_type != TCC_OUTPUT_OBJ) |
| 2257 | 2257 | tcc_set_options(s, "-lpthread"); |
| 2258 | 2258 | |
| 2259 | 2259 | if (s->output_type == TCC_OUTPUT_EXE) |
| 2260 | − tcc_set_linker(s, (const char *)linker_arg.data); | |
| 2260 | + tcc_set_linker(s, (const char *)linker_arg.data); | |
| 2261 | 2261 | cstr_free(&linker_arg); |
| 2262 | 2262 | |
| 2263 | 2263 | return optind; |