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