Lines Matching defs:Expansion
348 // Use up FileID #0 as an invalid expansion.
785 // location or are "near" the cached expansion location. 2) others are just
937 // expansion (e.g. the 5th character of the token) we do not want to add
938 // this offset when going to the expansion location. The expansion
971 // If this is an expansion record, walk through all the expansion points.
989 // If this is an expansion record, walk through all the expansion points.
1022 /// getImmediateExpansionRange - Loc is required to be an expansion location.
1023 /// Return the start/end of the expansion information.
1026 assert(Loc.isMacroID() && "Not a macro expansion loc!");
1027 const ExpansionInfo &Expansion = getSLocEntry(getFileID(Loc)).getExpansion();
1028 return Expansion.getExpansionLocRange();
1038 /// tokens covered by the expansion in the ultimate file.
1045 // Fully resolve the start and end locations to their ultimate expansion
1062 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion();
1063 if (!Expansion.isMacroArgExpansion()) return false;
1066 *StartLoc = Expansion.getExpansionLocStart();
1074 const SrcMgr::ExpansionInfo &Expansion = getSLocEntry(FID).getExpansion();
1075 return Expansion.isMacroBodyExpansion();
1084 return false; // Does not point at the start of expansion range.
1095 // the same argument expansion, in which case this Loc is not at the
1096 // beginning of the expansion.
1120 return false; // Does not point at the end of expansion range.
1130 // same argument expansion, in which case this Loc is not at the end of the
1131 // expansion.
1514 /// Note that a presumed location is always given as the expansion point of an
1515 /// expansion location, not at the spelling location.
1520 // Presumed locations are always for expansion points.
1595 // Presumed locations are always for expansion points.
1833 // The spelling range for this macro argument expansion can span multiple
1835 // spelling range and if one is itself a macro argument expansion, recurse
1905 /// be at the first expansion of the argument.
1974 /// Given a decomposed source location, move it up the include/expansion stack
2158 out << "SLocEntry <FileID " << ID << "> " << (Entry.isFile() ? "file" : "expansion")