diff options
author | Shivam Mittal <shivammittal99@gmail.com> | 2020-04-02 16:36:07 +0200 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-04-02 18:56:29 +0200 |
commit | 51b38746295fc18664f766fe6cb7974b862c28eb (patch) | |
tree | 5b2c2f6c5668764d7a8b311749345d919a7a1f56 /lldb/source/Commands/CommandObjectSettings.cpp | |
parent | 802bb8b5c28ee8aa5c5f7e00fce4ab80aefd0548 (diff) | |
download | llvm-51b38746295fc18664f766fe6cb7974b862c28eb.zip llvm-51b38746295fc18664f766fe6cb7974b862c28eb.tar.gz llvm-51b38746295fc18664f766fe6cb7974b862c28eb.tar.bz2 |
Convert for loops to entry-based iteration
Summary: Convert index-based loops marked TODO in CommandObjectSettings and CommandObjectTarget to entry-based.
Reviewers: labath
Reviewed By: labath
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D76729
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSettings.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp index cc1080c..87e0352 100644 --- a/lldb/source/Commands/CommandObjectSettings.cpp +++ b/lldb/source/Commands/CommandObjectSettings.cpp @@ -531,10 +531,8 @@ protected: if (argc > 0) { const bool dump_qualified_name = true; - // TODO: Convert to StringRef based enumeration. Requires converting - // GetPropertyAtPath first. - for (size_t i = 0; i < argc; ++i) { - const char *property_path = args.GetArgumentAtIndex(i); + for (const Args::ArgEntry &arg : args) { + const char *property_path = arg.c_str(); const Property *property = GetDebugger().GetValueProperties()->GetPropertyAtPath( |