Lines Matching full:entity
91 /// Returns true if the preprocessed entity that \arg PPEI iterator
105 assert(0 && "Out-of bounds loaded preprocessed entity");
113 // See if the external source can see if the entity is in the file without
120 // the entity to check it.
127 assert(0 && "Out-of bounds local preprocessed entity");
252 PreprocessingRecord::addPreprocessedEntity(PreprocessedEntity *Entity) {
253 assert(Entity);
254 SourceLocation BeginLoc = Entity->getSourceRange().getBegin();
256 if (isa<MacroDefinitionRecord>(Entity)) {
262 PreprocessedEntities.push_back(Entity);
266 // Check normal case, this entity begin location is after the previous one.
270 PreprocessedEntities.push_back(Entity);
274 // The entity's location is not after the previous one; this can happen with
298 pp_iter insertI = PreprocessedEntities.insert(RI, Entity);
308 pp_iter insertI = PreprocessedEntities.insert(I, Entity);
349 /// Retrieve the preprocessed entity at the given ID.
354 "Out-of bounds loaded preprocessed entity");
362 "Out-of bounds local preprocessed entity");
366 /// Retrieve the loaded preprocessed entity at the given index.
370 "Out-of bounds loaded preprocessed entity");
372 PreprocessedEntity *&Entity = LoadedPreprocessedEntities[Index];
373 if (!Entity) {
374 Entity = ExternalSource->ReadPreprocessedEntity(Index);
375 if (!Entity) // Failed to load.
376 Entity = new (*this)
379 return Entity;