Ignore:
Timestamp:
May 25, 2017, 11:08:15 AM (2 years ago)
Author:
cameron
Message:

Command line interface - systematic support for legacy flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.h

    r5474 r5476  
    11/*
    2  *  Copyright (c) 2016 International Characters.
     2 *  Copyright (c) 2017 International Characters.
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 *  icgrep is a trademark of International Characters.
    55 */
    6 #ifndef DO_GREP_H
    7 #define DO_GREP_H
     6#ifndef GREP_ENGINE_H
     7#define GREP_ENGINE_H
     8#include <grep_interface.h>
    89#include <grep_type.h>  // for GrepType, GrepType::Normal
    910#include <string>       // for string
    1011#include <vector>
    11 #include <re/re_parser.h>  // for
     12#include <re/re_parser.h> 
    1213
    1314namespace re { class CC; }
     
    1819
    1920namespace grep {
    20 
    21 // Regular expression syntax, interpretation and processing.
    22 extern re::RE_Syntax RegexpSyntax;
    23 extern bool IgnoreCaseFlag;
    24 extern bool InvertMatchFlag;
    25 extern bool LineRegexpFlag;
    26 extern bool WordRegexpFlag;
    27 
    28 // Grep input sources and interpretation
    29 extern bool RecursiveFlag;
    30 extern bool DereferenceRecursiveFlag;
    31 
    32 // Grep output modes and flags.
    33 enum GrepModeType {QuietMode, FilesWithMatch, FilesWithoutMatch, CountOnly, NormalMode};
    34 extern GrepModeType Mode;
    35 
    36 
    37 const llvm::cl::OptionCategory * grep_regexp_flags();
    38 const llvm::cl::OptionCategory * grep_input_flags();
    39 const llvm::cl::OptionCategory * grep_output_flags();
    4021
    4122class GrepEngine {
Note: See TracChangeset for help on using the changeset viewer.