diff options
author | Axel Naumann <Axel.Naumann@cern.ch> | 2010-10-11 09:18:43 +0000 |
---|---|---|
committer | Axel Naumann <Axel.Naumann@cern.ch> | 2010-10-11 09:18:43 +0000 |
commit | 9d520c5ae802fc175c61032b289ddd6968e6ddd2 (patch) | |
tree | f062bd3ea257e5721192251a590e8256217b95ab /lib/Driver/ArgList.cpp | |
parent | 7d0c4ccd65b4549283c55e4923602e234f3811c5 (diff) |
Declare argv parameters as const char* const* instead of to char** to clarify that they are not modified, and to allow for string literals as arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116200 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/ArgList.cpp')
-rw-r--r-- | lib/Driver/ArgList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Driver/ArgList.cpp b/lib/Driver/ArgList.cpp index 9101523767..e26318863d 100644 --- a/lib/Driver/ArgList.cpp +++ b/lib/Driver/ArgList.cpp @@ -214,7 +214,8 @@ const char *ArgList::GetOrMakeJoinedArgString(unsigned Index, // -InputArgList::InputArgList(const char **ArgBegin, const char **ArgEnd) +InputArgList::InputArgList(const char* const *ArgBegin, + const char* const *ArgEnd) : NumInputArgStrings(ArgEnd - ArgBegin) { ArgStrings.append(ArgBegin, ArgEnd); } |