Changeset 4963


Ignore:
Timestamp:
Mar 8, 2016, 3:15:24 PM (3 years ago)
Author:
hongpum
Message:

Append globalFlags to the hashsum used by caching

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r4961 r4963  
    5454static unsigned firstInputFile = 1;  // Normal case when first positional arg is a regex.
    5555static std::string allREs;
     56static re::ModeFlagSet globalFlags = 0;
    5657
    5758re::RE * get_icgrep_RE() {
     
    8081    }
    8182   
    82     re::ModeFlagSet globalFlags = 0;
    8383    if (CaseInsensitive) globalFlags |= re::CASE_INSENSITIVE_MODE_FLAG;
    8484
     
    141141   
    142142    re::RE * re_ast = get_icgrep_RE();
    143     std::string module_name = "grepcode:" + sha1sum(allREs);
     143    std::string module_name = "grepcode:" + sha1sum(allREs) + ":" + std::to_string(globalFlags);
    144144   
    145145    GrepEngine grepEngine;
Note: See TracChangeset for help on using the changeset viewer.