Lines Matching refs:Invalid
87 bool *Invalid) const { in getBuffer()
91 if (Invalid) in getBuffer()
92 *Invalid = isBufferInvalid(); in getBuffer()
129 if (Invalid) *Invalid = true; in getBuffer()
146 if (Invalid) *Invalid = true; in getBuffer()
173 if (Invalid) in getBuffer()
174 *Invalid = isBufferInvalid(); in getBuffer()
295 bool Invalid = false; in AddLineNote() local
296 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in AddLineNote()
297 if (!Entry.isFile() || Invalid) in AddLineNote()
325 bool Invalid = false; in AddLineNote() local
326 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in AddLineNote()
327 if (!Entry.isFile() || Invalid) in AddLineNote()
465 bool *Invalid) const { in loadSLocEntry()
468 if (Invalid) in loadSLocEntry()
469 *Invalid = true; in loadSLocEntry()
637 bool *Invalid) { in getMemoryBufferForFile() argument
640 return IR->getBuffer(Diag, *this, SourceLocation(), Invalid); in getMemoryBufferForFile()
679 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
683 if (Invalid) in getBufferData()
684 *Invalid = true; in getBufferData()
690 if (Invalid) in getBufferData()
691 *Invalid = MyInvalid; in getBufferData()
776 bool Invalid = false; in getFileIDLocal() local
778 unsigned MidOffset = getLocalSLocEntry(MiddleIndex, &Invalid).getOffset(); in getFileIDLocal()
779 if (Invalid) in getFileIDLocal()
1022 bool Invalid = false; in isAtStartOfImmediateMacroExpansion() local
1024 getSLocEntry(DecompLoc.first, &Invalid).getExpansion(); in isAtStartOfImmediateMacroExpansion()
1025 if (Invalid) in isAtStartOfImmediateMacroExpansion()
1035 const SrcMgr::SLocEntry &PrevEntry = getSLocEntry(PrevFID, &Invalid); in isAtStartOfImmediateMacroExpansion()
1036 if (Invalid) in isAtStartOfImmediateMacroExpansion()
1058 bool Invalid = false; in isAtEndOfImmediateMacroExpansion() local
1060 getSLocEntry(FID, &Invalid).getExpansion(); in isAtEndOfImmediateMacroExpansion()
1061 if (Invalid) in isAtEndOfImmediateMacroExpansion()
1070 const SrcMgr::SLocEntry &NextEntry = getSLocEntry(NextFID, &Invalid); in isAtEndOfImmediateMacroExpansion()
1071 if (Invalid) in isAtEndOfImmediateMacroExpansion()
1093 bool *Invalid) const { in getCharacterData()
1102 if (Invalid) in getCharacterData()
1103 *Invalid = true; in getCharacterData()
1109 if (Invalid) in getCharacterData()
1110 *Invalid = CharDataInvalid; in getCharacterData()
1118 bool *Invalid) const { in getColumnNumber()
1121 if (Invalid) in getColumnNumber()
1122 *Invalid = MyInvalid; in getColumnNumber()
1129 if (Invalid) in getColumnNumber()
1130 *Invalid = true; in getColumnNumber()
1155 static bool isInvalid(SourceLocation Loc, bool *Invalid) { in isInvalid() argument
1157 if (Invalid) in isInvalid()
1158 *Invalid = MyInvalid; in isInvalid()
1163 bool *Invalid) const { in getSpellingColumnNumber()
1164 if (isInvalid(Loc, Invalid)) return 0; in getSpellingColumnNumber()
1166 return getColumnNumber(LocInfo.first, LocInfo.second, Invalid); in getSpellingColumnNumber()
1170 bool *Invalid) const { in getExpansionColumnNumber()
1171 if (isInvalid(Loc, Invalid)) return 0; in getExpansionColumnNumber()
1173 return getColumnNumber(LocInfo.first, LocInfo.second, Invalid); in getExpansionColumnNumber()
1177 bool *Invalid) const { in getPresumedColumnNumber()
1178 if (isInvalid(Loc, Invalid)) return 0; in getPresumedColumnNumber()
1189 const SourceManager &SM, bool &Invalid);
1192 const SourceManager &SM, bool &Invalid) { in ComputeLineNumbers() argument
1194 MemoryBuffer *Buffer = FI->getBuffer(Diag, SM, SourceLocation(), &Invalid); in ComputeLineNumbers()
1195 if (Invalid) in ComputeLineNumbers()
1276 bool *Invalid) const { in getLineNumber()
1278 if (Invalid) in getLineNumber()
1279 *Invalid = true; in getLineNumber()
1290 if (Invalid) in getLineNumber()
1291 *Invalid = true; in getLineNumber()
1303 if (Invalid) in getLineNumber()
1304 *Invalid = MyInvalid; in getLineNumber()
1307 } else if (Invalid) in getLineNumber()
1308 *Invalid = false; in getLineNumber()
1370 bool *Invalid) const { in getSpellingLineNumber()
1371 if (isInvalid(Loc, Invalid)) return 0; in getSpellingLineNumber()
1376 bool *Invalid) const { in getExpansionLineNumber()
1377 if (isInvalid(Loc, Invalid)) return 0; in getExpansionLineNumber()
1382 bool *Invalid) const { in getPresumedLineNumber()
1383 if (isInvalid(Loc, Invalid)) return 0; in getPresumedLineNumber()
1399 bool Invalid = false; in getFileCharacteristic() local
1400 const SLocEntry &SEntry = getSLocEntry(LocInfo.first, &Invalid); in getFileCharacteristic()
1401 if (Invalid || !SEntry.isFile()) in getFileCharacteristic()
1427 bool *Invalid) const { in getBufferName()
1428 if (isInvalid(Loc, Invalid)) return "<invalid loc>"; in getBufferName()
1430 return getBuffer(getFileID(Loc), Invalid)->getBufferIdentifier(); in getBufferName()
1448 bool Invalid = false; in getPresumedLoc() local
1449 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in getPresumedLoc()
1450 if (Invalid || !Entry.isFile()) in getPresumedLoc()
1465 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc()
1466 if (Invalid) in getPresumedLoc()
1468 unsigned ColNo = getColumnNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc()
1469 if (Invalid) in getPresumedLoc()
1518 bool Invalid = false; in isInMainFile() local
1519 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in isInMainFile()
1520 if (Invalid || !Entry.isFile()) in isInMainFile()
1537 bool Invalid = false; in getFileIDSize() local
1538 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getFileIDSize()
1539 if (Invalid) in getFileIDSize()
1603 bool Invalid = false; in translateFile() local
1604 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile()
1605 if (Invalid) in translateFile()
1640 bool Invalid = false; in translateFile() local
1641 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile()
1642 if (Invalid) in translateFile()
1673 bool Invalid = false; in translateFile() local
1677 const SLocEntry &SLoc = getSLocEntry(IFileID, &Invalid); in translateFile()
1678 if (Invalid) in translateFile()
1717 bool Invalid = false; in translateLineCol() local
1718 const SLocEntry &Entry = getSLocEntry(FID, &Invalid); in translateLineCol()
1719 if (Invalid) in translateLineCol()
1794 bool Invalid = false; in computeMacroArgsCache() local
1795 const SrcMgr::SLocEntry &Entry = getSLocEntryByID(ID, &Invalid); in computeMacroArgsCache()
1796 if (Invalid) in computeMacroArgsCache()
1961 bool Invalid = false; in getDecomposedIncludedLoc() local
1962 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getDecomposedIncludedLoc()
1963 if (!Invalid) { in getDecomposedIncludedLoc()