[cfe-commits] r146841 - in /cfe/trunk: include/clang/Serialization/ lib/Sema/ lib/Serialization/ test/Modules/ test/Modules/Inputs/ test/PCH/

Douglas Gregor dgregor at apple.com
Mon Dec 19 13:00:22 PST 2011


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



More information about the cfe-commits mailing list