Changeset bc3127d for src/GenPoly
- Timestamp:
- Sep 1, 2017, 4:26:14 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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, resolv-new, with_gc
- Children:
- 5809461, ba2a68b
- Parents:
- 78a0b88
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r78a0b88 rbc3127d 1298 1298 } 1299 1299 1300 /// determines if `pref` is a prefix of `str`1301 bool isPrefix( const std::string & str, const std::string & pref ) {1302 if ( pref.size() > str.size() ) return false;1303 auto its = std::mismatch( pref.begin(), pref.end(), str.begin() );1304 return its.first == pref.end();1305 }1306 1307 1300 DeclarationWithType * Pass2::mutate( FunctionDecl *functionDecl ) { 1308 1301 functionDecl = safe_dynamic_cast< FunctionDecl * > ( handleDecl( functionDecl ) );
Note: See TracChangeset
for help on using the changeset viewer.