Home | History | Annotate | Download | only in Lex

Lines Matching full:entity

87 /// \brief Returns true if the preprocessed entity that \arg PPEI iterator
101 "Out-of bounds loaded preprocessed entity");
107 // See if the external source can see if the entity is in the file without
115 // the entity to check it.
122 "Out-of bounds local preprocessed entity");
248 PreprocessingRecord::addPreprocessedEntity(PreprocessedEntity *Entity) {
249 assert(Entity);
250 SourceLocation BeginLoc = Entity->getSourceRange().getBegin();
252 if (!isa<class InclusionDirective>(Entity)) {
257 PreprocessedEntities.push_back(Entity);
261 // Check normal case, this entity begin location is after the previous one.
265 PreprocessedEntities.push_back(Entity);
269 // The entity's location is not after the previous one; this can happen with
285 pp_iter insertI = PreprocessedEntities.insert(RI, Entity);
296 pp_iter insertI = PreprocessedEntities.insert(I, Entity);
320 /// \brief Retrieve the preprocessed entity at the given ID.
324 "Out-of bounds loaded preprocessed entity");
328 "Out-of bounds local preprocessed entity");
332 /// \brief Retrieve the loaded preprocessed entity at the given index.
336 "Out-of bounds loaded preprocessed entity");
338 PreprocessedEntity *&Entity = LoadedPreprocessedEntities[Index];
339 if (!Entity) {
340 Entity = ExternalSource->ReadPreprocessedEntity(Index);
341 if (!Entity) // Failed to load.
342 Entity = new (*this)
345 return Entity;
354 PreprocessedEntity *Entity = getPreprocessedEntity(Pos->second);
355 if (Entity->isInvalid())
357 return cast<MacroDefinition>(Entity);