Skip to content
  • Reid Spencer's avatar
    Allow any cl::opt to use the method getPosition() to retrieve the option's · 2027a6ff
    Reid Spencer authored
    absolute position on the command line. Similarly allow any cl::list to
    use the method getPosition(n) to retrieve the absolute position of the nth
    option in the list. This provides support for two things: (a) options like
    -l that are actually positional and their order of occurrence matters when
    they are intermixed with positional arguments like "a.o"; and (b) options
    like -x LANG which affect only the positional arguments that come after
    the option. In both cases, knowing the absolute position of a given option
    helps.
    
    llvm-svn: 15725
    2027a6ff
Loading