[Lldb-commits] [lldb] r133781 - /lldb/trunk/source/Interpreter/Args.cpp

Peter Collingbourne peter at pcc.me.uk
Thu Jun 23 18:12:22 PDT 2011


Author: pcc
Date: Thu Jun 23 20:12:22 2011
New Revision: 133781

URL: http://llvm.org/viewvc/llvm-project?rev=133781&view=rev
Log:
++ cannot be used to increment an enum, so do it another way

Modified:
    lldb/trunk/source/Interpreter/Args.cpp

Modified: lldb/trunk/source/Interpreter/Args.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/Args.cpp?rev=133781&r1=133780&r2=133781&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/Args.cpp (original)
+++ lldb/trunk/source/Interpreter/Args.cpp Thu Jun 23 20:12:22 2011
@@ -905,7 +905,7 @@
         {
             StreamString error_strm;
             error_strm.Printf ("Invalid format character or name '%s'. Valid values are:\n", s);
-            for (Format f = eFormatDefault; f < kNumFormats; ++f)
+            for (Format f = eFormatDefault; f < kNumFormats; f = Format(f+1))
             {
                 char format_char = FormatManager::GetFormatAsFormatChar(f);
                 if (format_char)





More information about the lldb-commits mailing list