Changeset 372b6d3
- Timestamp:
- Apr 10, 2023, 9:25:21 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 6adeb5f
- Parents:
- 8472c6c
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r8472c6c r372b6d3 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Tue Feb 14 22:46:38202313 // Update Count : 47 012 // Last Modified On : Mon Apr 10 21:16:00 2023 13 // Update Count : 476 14 14 // 15 15 … … 198 198 } // if 199 199 } else if ( arg == "-CFA" ) { 200 CFA_flag = true; // strip the-CFA flag200 CFA_flag = true; // strip -CFA flag 201 201 link = false; 202 202 args[nargs++] = "-fsyntax-only"; // stop after stage 2 203 203 } else if ( arg == "-debug" ) { 204 debug = true; // strip thedebug flag204 debug = true; // strip debug flag 205 205 } else if ( arg == "-nodebug" ) { 206 debug = false; // strip thenodebug flag206 debug = false; // strip nodebug flag 207 207 } else if ( arg == "-quiet" ) { 208 quiet = true; // strip thequiet flag208 quiet = true; // strip quiet flag 209 209 } else if ( arg == "-noquiet" ) { 210 quiet = false; // strip the noquiet flag 210 quiet = false; // strip noquiet flag 211 } else if ( arg == "-invariant" ) { 212 Putenv( argv, "-" + arg ); 213 } else if ( arg == "--invariant" ) { 214 Putenv( argv, arg ); 211 215 } else if ( arg == "-no-include-stdhdr" ) { 212 noincstd_flag = true; // strip theno-include-stdhdr flag216 noincstd_flag = true; // strip no-include-stdhdr flag 213 217 } else if ( arg == "-nolib" ) { 214 nolib = true; // strip thenolib flag218 nolib = true; // strip nolib flag 215 219 } else if ( arg == "-help" ) { 216 help = true; // strip thehelp flag220 help = true; // strip help flag 217 221 } else if ( arg == "-nohelp" ) { 218 help = false; // strip thenohelp flag222 help = false; // strip nohelp flag 219 223 } else if ( arg == "-cfalib") { 220 224 compiling_libs = true; … … 274 278 } // if 275 279 } else if ( prefix( arg, "-B" ) ) { 276 bprefix = arg.substr(2); // strip the-B flag280 bprefix = arg.substr(2); // strip -B flag 277 281 } else if ( arg == "-c" || arg == "-S" || arg == "-E" || arg == "-M" || arg == "-MM" ) { 278 282 args[nargs++] = argv[i]; // pass flag along -
src/CompilationState.cc
r8472c6c r372b6d3 9 9 // Author : Rob Schluntz 10 10 // Created On : Mon Ju1 30 10:47:01 2018 11 // Last Modified By : Henry Xue12 // Last Modified On : Tue Jul 20 04:27:35 202113 // Update Count : 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 19:12:50 2023 13 // Update Count : 6 14 14 // 15 15 … … 27 27 expraltp = false, 28 28 genericsp = false, 29 invariant = false, 29 30 libcfap = false, 30 31 nopreludep = false, -
src/CompilationState.h
r8472c6c r372b6d3 9 9 // Author : Rob Schluntz 10 10 // Created On : Mon Ju1 30 10:47:01 2018 11 // Last Modified By : Henry Xue12 // Last Modified On : Tue Jul 20 04:27:35 202113 // Update Count : 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 19:12:53 2023 13 // Update Count : 6 14 14 // 15 15 … … 26 26 expraltp, 27 27 genericsp, 28 invariant, 28 29 libcfap, 29 30 nopreludep, -
src/main.cc
r8472c6c r372b6d3 9 9 // Author : Peter Buhr and Rob Schluntz 10 10 // Created On : Fri May 15 23:12:02 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr Feb 16 10:08:00202313 // Update Count : 68 011 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Apr 10 21:12:17 2023 13 // Update Count : 682 14 14 // 15 15 … … 504 504 505 505 506 static const char optstring[] = ":c:gh lLmNnpdP:S:twW:D:";506 static const char optstring[] = ":c:ghilLmNnpdP:S:twW:D:"; 507 507 508 508 enum { PreludeDir = 128 }; … … 511 511 { "gdb", no_argument, nullptr, 'g' }, 512 512 { "help", no_argument, nullptr, 'h' }, 513 { "invariant", no_argument, nullptr, 'i' }, 513 514 { "libcfa", no_argument, nullptr, 'l' }, 514 515 { "linemarks", no_argument, nullptr, 'L' }, 515 { "no-main", no_argument, 0, 'm' },516 { "no-main", no_argument, nullptr, 'm' }, 516 517 { "no-linemarks", no_argument, nullptr, 'N' }, 517 518 { "no-prelude", no_argument, nullptr, 'n' }, … … 532 533 "wait for gdb to attach", // -g 533 534 "print translator help message", // -h 535 "invariant checking during AST passes", // -i 534 536 "generate libcfa.c", // -l 535 537 "generate line marks", // -L … … 625 627 usage( argv ); // no return 626 628 break; 629 case 'i': // invariant checking 630 invariant = true; 631 break; 627 632 case 'l': // generate libcfa.c 628 633 libcfap = true;
Note: See TracChangeset
for help on using the changeset viewer.