How to know the relative orders of the options passed to Clang driver

Is there any straightforward mechanism to know the relative orders of
the options passed to Clang driver? "ArgList" implements an ordered
collection of driver arguments. Is there any functionality within this
class to get the relative orders of the options passed by the user?

Is there any straightforward mechanism to know the relative orders of
the options passed to Clang driver? "ArgList" implements an ordered
collection of driver arguments. Is there any functionality within this
class to get the relative orders of the options passed by the user?

Please take a look at hasFlag(). For example:

Opts.ConstStrings = Args.hasFlag(OPT_fconst_strings, OPT_fno_const_strings,
                                  Opts.ConstStrings);

Dmitri