diff --git a/docs/CommandLine.html b/docs/CommandLine.html index 0eda9c2c4d2..531c0f899c9 100644 --- a/docs/CommandLine.html +++ b/docs/CommandLine.html @@ -875,7 +875,8 @@ can use it like this:

else break; // we're done with the list } - }

+ } +

Note that, for compatibility reasons, the cl::opt also supports an unsigned getPosition() option that will provide the absolute position of that option. You can apply the same approach as above with a diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index 5d108824d7e..7c6bd15f357 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -1771,42 +1771,43 @@ types.

  • isLosslesslyConvertableTo (const Type *Ty) const: Return true if this type can be converted to 'Ty' without any reinterpretation of bits. For example, uint to int or one pointer type to another.
  • + + -
    -

    Derived Types

    - + +
    + Important Derived Types +
    +
    + -
    @@ -1946,32 +1947,33 @@ three idioms worth pointing out:

    UnitsIteratorIdiom Planes Of name/Value mapsPI -
    +    
    
     for (SymbolTable::plane_const_iterator PI = ST.plane_begin(),
          PE = ST.plane_end(); PI != PE; ++PI ) {
       PI->first // This is the Type* of the plane
       PI->second // This is the SymbolTable::ValueMap of name/Value pairs
    -    
    +
    All name/Type PairsTI -
    +    
    
     for (SymbolTable::type_const_iterator TI = ST.type_begin(),
          TE = ST.type_end(); TI != TE; ++TI )
       TI->first  // This is the name of the type
       TI->second // This is the Type* value associated with the name
    -    
    +
    name/Value pairs in a planeVI -
    +    
    
     for (SymbolTable::value_const_iterator VI = ST.value_begin(SomeType),
          VE = ST.value_end(SomeType); VI != VE; ++VI )
       VI->first  // This is the name of the Value
       VI->second // This is the Value* value associated with the name
    -    
    +
    +

    Using the recommended iterator names and idioms will help you avoid making mistakes. Of particular note, make sure that whenever you use value_begin(SomeType) that you always compare the resulting iterator