On Dec 19, 2011, at 11:54 AM, Argyrios Kyrtzidis wrote:

> On Dec 17, 2011, at 3:38 PM, Douglas Gregor wrote:
> 
>> 
>> +  /// \brief The list of redeclaration chains that still need to be 
>> +  /// reconstructed.
>> +  ///
>> +  /// Each element is the global declaration ID of the first declaration in
>> +  /// the chain. Elements in this vector should be unique; use 
>> +  /// PendingDeclChainsKnown to ensure uniqueness.
>> +  llvm::SmallVector<serialization::DeclID, 16> PendingDeclChains;
>> +
>> +  /// \brief Keeps track of the elements added to PendingDeclChains.
>> +  llvm::SmallSet<serialization::DeclID, 16> PendingDeclChainsKnown;
> 
> You could use llvm::SetVector here.


The set and the vector have slightly different lifetimes, so I can't just drop 
in SetVector.

        - Doug
_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to