Changeset af39199d for src/driver/cfa.cc
- Timestamp:
- May 3, 2018, 12:23:14 PM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, with_gc
- Children:
- 01b8ccf1
- Parents:
- 7ca8441c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cfa.cc
r7ca8441c raf39199d 10 10 // Created On : Tue Aug 20 13:44:49 2002 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 2 1 4:32:08201813 // Update Count : 22 212 // Last Modified On : Wed May 2 17:57:43 2018 13 // Update Count : 224 14 14 // 15 15 … … 176 176 unsigned int adv = prefix( arg, "-Wno-" ) ? 5 : 2; 177 177 args[nargs] = argv[i]; // conditionally pass the argument along 178 char * warning = argv[i] + adv; // extract warning 179 for ( const auto w : WarningFormats ) { 180 if ( strcmp( warning, w.name ) == 0 ) { // replace the argument for cfa-cpp 181 args[nargs] = ( *new string( string("-D__CFA_FLAG__=") + arg ) ).c_str(); 182 break; 183 } // if 184 } // for 178 const char * warning = argv[i] + adv; // extract warning 179 if ( SemanticWarning_Exist( warning ) ) { // replace the argument for cfa-cpp 180 args[nargs] = ( *new string( string("-D__CFA_FLAG__=") + arg ) ).c_str(); 181 } // if 185 182 nargs += 1; 186 183 } // if
Note: See TracChangeset
for help on using the changeset viewer.