diff options
Diffstat (limited to 'include/clang/Driver/ArgList.h')
-rw-r--r-- | include/clang/Driver/ArgList.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Driver/ArgList.h b/include/clang/Driver/ArgList.h index 3fbeec7f90..cf67295241 100644 --- a/include/clang/Driver/ArgList.h +++ b/include/clang/Driver/ArgList.h @@ -51,6 +51,9 @@ namespace driver { /// The full list of arguments. arglist_type Args; + /// The number of original input argument strings. + unsigned NumInputArgStrings; + public: ArgList(const char **ArgBegin, const char **ArgEnd); ArgList(const ArgList &); @@ -70,6 +73,10 @@ namespace driver { /// getArgString - Return the input argument string at \arg Index. const char *getArgString(unsigned Index) const { return ArgStrings[Index]; } + /// getNumInputArgStrings - Return the number of original input + /// argument strings. + unsigned getNumInputArgStrings() const { return NumInputArgStrings; } + /// hasArg - Does the arg list contain any option matching \arg Id. /// /// \arg Claim Whether the argument should be claimed, if it exists. |