Lines Matching refs:Loc
187 SourceLocation Loc = SourceLocation(),
803 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
810 SourceLocation createExpansionLoc(SourceLocation Loc,
872 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc,
883 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc,
1020 getModuleImportLoc(SourceLocation Loc) const { in getModuleImportLoc() argument
1021 FileID FID = getFileID(Loc); in getModuleImportLoc()
1033 SourceLocation getExpansionLoc(SourceLocation Loc) const { in getExpansionLoc() argument
1036 if (Loc.isFileID()) return Loc; in getExpansionLoc()
1037 return getExpansionLocSlowCase(Loc); in getExpansionLoc()
1043 SourceLocation getFileLoc(SourceLocation Loc) const { in getFileLoc() argument
1044 if (Loc.isFileID()) return Loc; in getFileLoc()
1045 return getFileLocSlowCase(Loc); in getFileLoc()
1053 getImmediateExpansionRange(SourceLocation Loc) const;
1058 getExpansionRange(SourceLocation Loc) const;
1066 SourceLocation getSpellingLoc(SourceLocation Loc) const { in getSpellingLoc() argument
1069 if (Loc.isFileID()) return Loc; in getSpellingLoc()
1070 return getSpellingLocSlowCase(Loc); in getSpellingLoc()
1079 SourceLocation getImmediateSpellingLoc(SourceLocation Loc) const;
1085 std::pair<FileID, unsigned> getDecomposedLoc(SourceLocation Loc) const { in getDecomposedLoc() argument
1086 FileID FID = getFileID(Loc); in getDecomposedLoc()
1091 return std::make_pair(FID, Loc.getOffset()-E.getOffset()); in getDecomposedLoc()
1099 getDecomposedExpansionLoc(SourceLocation Loc) const { in getDecomposedExpansionLoc() argument
1100 FileID FID = getFileID(Loc); in getDecomposedExpansionLoc()
1106 unsigned Offset = Loc.getOffset()-E->getOffset(); in getDecomposedExpansionLoc()
1107 if (Loc.isFileID()) in getDecomposedExpansionLoc()
1118 getDecomposedSpellingLoc(SourceLocation Loc) const { in getDecomposedSpellingLoc() argument
1119 FileID FID = getFileID(Loc); in getDecomposedSpellingLoc()
1125 unsigned Offset = Loc.getOffset()-E->getOffset(); in getDecomposedSpellingLoc()
1126 if (Loc.isFileID()) in getDecomposedSpellingLoc()
1149 bool isMacroArgExpansion(SourceLocation Loc) const;
1156 bool isMacroBodyExpansion(SourceLocation Loc) const;
1163 bool isAtStartOfImmediateMacroExpansion(SourceLocation Loc,
1172 isAtEndOfImmediateMacroExpansion(SourceLocation Loc,
1180 bool isInSLocAddrSpace(SourceLocation Loc,
1188 unsigned LocOffs = Loc.getOffset();
1239 unsigned getSpellingColumnNumber(SourceLocation Loc,
1241 unsigned getExpansionColumnNumber(SourceLocation Loc,
1243 unsigned getPresumedColumnNumber(SourceLocation Loc,
1253 unsigned getSpellingLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
1254 unsigned getExpansionLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
1255 unsigned getPresumedLineNumber(SourceLocation Loc, bool *Invalid = nullptr) const;
1262 const char *getBufferName(SourceLocation Loc, bool *Invalid = nullptr) const;
1274 SrcMgr::CharacteristicKind getFileCharacteristic(SourceLocation Loc) const;
1289 PresumedLoc getPresumedLoc(SourceLocation Loc,
1299 bool isInMainFile(SourceLocation Loc) const;
1313 bool isWrittenInMainFile(SourceLocation Loc) const { in isWrittenInMainFile() argument
1314 return getFileID(Loc) == getMainFileID(); in isWrittenInMainFile()
1318 bool isInSystemHeader(SourceLocation Loc) const { in isInSystemHeader() argument
1319 return getFileCharacteristic(Loc) != SrcMgr::C_User; in isInSystemHeader()
1323 bool isInExternCSystemHeader(SourceLocation Loc) const { in isInExternCSystemHeader() argument
1324 return getFileCharacteristic(Loc) == SrcMgr::C_ExternCSystem; in isInExternCSystemHeader()
1338 bool isInFileID(SourceLocation Loc, FileID FID,
1340 unsigned Offs = Loc.getOffset();
1362 void AddLineNote(SourceLocation Loc, unsigned LineNo, int FilenameID);
1363 void AddLineNote(SourceLocation Loc, unsigned LineNo, int FilenameID,
1430 SourceLocation getMacroArgExpandedLocation(SourceLocation Loc) const;
1519 bool isLoadedSourceLocation(SourceLocation Loc) const { in isLoadedSourceLocation() argument
1520 return Loc.getOffset() >= CurrentLoadedOffset; in isLoadedSourceLocation()
1524 bool isLocalSourceLocation(SourceLocation Loc) const { in isLocalSourceLocation() argument
1525 return Loc.getOffset() < NextLocalOffset; in isLocalSourceLocation()
1541 SourceLocation getImmediateMacroCallerLoc(SourceLocation Loc) const { in getImmediateMacroCallerLoc() argument
1542 if (!Loc.isMacroID()) return Loc; in getImmediateMacroCallerLoc()
1547 if (isMacroArgExpansion(Loc)) in getImmediateMacroCallerLoc()
1548 return getImmediateSpellingLoc(Loc); in getImmediateMacroCallerLoc()
1552 return getImmediateExpansionRange(Loc).first; in getImmediateMacroCallerLoc()
1632 SourceLocation getExpansionLocSlowCase(SourceLocation Loc) const;
1633 SourceLocation getSpellingLocSlowCase(SourceLocation Loc) const;
1634 SourceLocation getFileLocSlowCase(SourceLocation Loc) const;