Changeset e89f4b1


Ignore:
Timestamp:
Jul 25, 2018, 2:02:44 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
91788fa
Parents:
e68b3a8
Message:

Filder out @ symbols from filename before using it in code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/FixGlobalInit.cc

    re68b3a8 re89f4b1  
    7474        std::string ret = name.substr( 0, name.find( '.' ) );
    7575        // replace invalid characters with _
    76                 static std::string invalid = "/-";
     76                static std::string invalid = "/-@";
    7777        replace_if( ret.begin(), ret.end(), []( char c ) { return invalid.find(c) != std::string::npos; }, '_' );
    7878        return ret;
Note: See TracChangeset for help on using the changeset viewer.