Convert some Args index-based iteration to range-style iteration.
authorZachary Turner <zturner@google.com>
Wed, 5 Oct 2016 23:40:23 +0000 (23:40 +0000)
committerZachary Turner <zturner@google.com>
Wed, 5 Oct 2016 23:40:23 +0000 (23:40 +0000)
commit97d2c4011b9ccdfb9da2c5d4cb6917c9a2a18225
tree73b9e3ce319cf6ece6d441bc75611363d81e1d30
parent3b564e97655e0eb732219d5a4dec6c31a34f7aa9
Convert some Args index-based iteration to range-style iteration.

This is better for a number of reasons.  Mostly style, but also:

1) Signed-unsigned comparison warnings disappear since there is
   no loop index.
2) Iterating with the range-for style gives you back an entry
   that has more than just a const char*, so it's more efficient
   and more useful.
3) Makes code safter since the type system enforces that it's
   impossible to index out of bounds.

llvm-svn: 283413
18 files changed:
lldb/include/lldb/Core/Mangled.h
lldb/source/Commands/CommandObjectCommands.cpp
lldb/source/Commands/CommandObjectHelp.cpp
lldb/source/Commands/CommandObjectPlatform.cpp
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Commands/CommandObjectSettings.cpp
lldb/source/Commands/CommandObjectSyntax.cpp
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Commands/CommandObjectThread.cpp
lldb/source/Commands/CommandObjectType.cpp
lldb/source/Commands/CommandObjectWatchpoint.cpp
lldb/source/Core/Mangled.cpp
lldb/source/Host/linux/ProcessLauncherLinux.cpp
lldb/source/Host/windows/ProcessLauncherWindows.cpp
lldb/source/Interpreter/CommandAlias.cpp
lldb/source/Interpreter/CommandInterpreter.cpp
lldb/source/Interpreter/CommandObject.cpp
lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp