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()
293 bool Invalid = false; in AddLineNote() local
294 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in AddLineNote()
295 if (!Entry.isFile() || Invalid) in AddLineNote()
321 bool Invalid = false; in AddLineNote() local
322 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in AddLineNote()
323 if (!Entry.isFile() || Invalid) in AddLineNote()
461 bool *Invalid) const { in loadSLocEntry()
464 if (Invalid) in loadSLocEntry()
465 *Invalid = true; in loadSLocEntry()
635 bool *Invalid) { in getMemoryBufferForFile() argument
638 return IR->getBuffer(Diag, *this, SourceLocation(), Invalid); in getMemoryBufferForFile()
682 StringRef SourceManager::getBufferData(FileID FID, bool *Invalid) const { in getBufferData()
686 if (Invalid) in getBufferData()
687 *Invalid = true; in getBufferData()
693 if (Invalid) in getBufferData()
694 *Invalid = MyInvalid; in getBufferData()
779 bool Invalid = false; in getFileIDLocal() local
781 unsigned MidOffset = getLocalSLocEntry(MiddleIndex, &Invalid).getOffset(); in getFileIDLocal()
782 if (Invalid) in getFileIDLocal()
1030 bool Invalid = false; in isAtStartOfImmediateMacroExpansion() local
1032 getSLocEntry(DecompLoc.first, &Invalid).getExpansion(); in isAtStartOfImmediateMacroExpansion()
1033 if (Invalid) in isAtStartOfImmediateMacroExpansion()
1043 const SrcMgr::SLocEntry &PrevEntry = getSLocEntry(PrevFID, &Invalid); in isAtStartOfImmediateMacroExpansion()
1044 if (Invalid) in isAtStartOfImmediateMacroExpansion()
1066 bool Invalid = false; in isAtEndOfImmediateMacroExpansion() local
1068 getSLocEntry(FID, &Invalid).getExpansion(); in isAtEndOfImmediateMacroExpansion()
1069 if (Invalid) in isAtEndOfImmediateMacroExpansion()
1078 const SrcMgr::SLocEntry &NextEntry = getSLocEntry(NextFID, &Invalid); in isAtEndOfImmediateMacroExpansion()
1079 if (Invalid) in isAtEndOfImmediateMacroExpansion()
1101 bool *Invalid) const { in getCharacterData()
1110 if (Invalid) in getCharacterData()
1111 *Invalid = true; in getCharacterData()
1117 if (Invalid) in getCharacterData()
1118 *Invalid = CharDataInvalid; in getCharacterData()
1126 bool *Invalid) const { in getColumnNumber()
1129 if (Invalid) in getColumnNumber()
1130 *Invalid = MyInvalid; in getColumnNumber()
1137 if (Invalid) in getColumnNumber()
1138 *Invalid = true; in getColumnNumber()
1164 static bool isInvalid(LocType Loc, bool *Invalid) { in isInvalid() argument
1166 if (Invalid) in isInvalid()
1167 *Invalid = MyInvalid; in isInvalid()
1172 bool *Invalid) const { in getSpellingColumnNumber()
1173 if (isInvalid(Loc, Invalid)) return 0; in getSpellingColumnNumber()
1175 return getColumnNumber(LocInfo.first, LocInfo.second, Invalid); in getSpellingColumnNumber()
1179 bool *Invalid) const { in getExpansionColumnNumber()
1180 if (isInvalid(Loc, Invalid)) return 0; in getExpansionColumnNumber()
1182 return getColumnNumber(LocInfo.first, LocInfo.second, Invalid); in getExpansionColumnNumber()
1186 bool *Invalid) const { in getPresumedColumnNumber()
1188 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedColumnNumber()
1199 const SourceManager &SM, bool &Invalid);
1202 const SourceManager &SM, bool &Invalid) { in ComputeLineNumbers() argument
1204 MemoryBuffer *Buffer = FI->getBuffer(Diag, SM, SourceLocation(), &Invalid); in ComputeLineNumbers()
1205 if (Invalid) in ComputeLineNumbers()
1290 bool *Invalid) const { in getLineNumber()
1292 if (Invalid) in getLineNumber()
1293 *Invalid = true; in getLineNumber()
1304 if (Invalid) in getLineNumber()
1305 *Invalid = true; in getLineNumber()
1317 if (Invalid) in getLineNumber()
1318 *Invalid = MyInvalid; in getLineNumber()
1321 } else if (Invalid) in getLineNumber()
1322 *Invalid = false; in getLineNumber()
1384 bool *Invalid) const { in getSpellingLineNumber()
1385 if (isInvalid(Loc, Invalid)) return 0; in getSpellingLineNumber()
1390 bool *Invalid) const { in getExpansionLineNumber()
1391 if (isInvalid(Loc, Invalid)) return 0; in getExpansionLineNumber()
1396 bool *Invalid) const { in getPresumedLineNumber()
1398 if (isInvalid(PLoc, Invalid)) return 0; in getPresumedLineNumber()
1414 bool Invalid = false; in getFileCharacteristic() local
1415 const SLocEntry &SEntry = getSLocEntry(LocInfo.first, &Invalid); in getFileCharacteristic()
1416 if (Invalid || !SEntry.isFile()) in getFileCharacteristic()
1442 bool *Invalid) const { in getBufferName()
1443 if (isInvalid(Loc, Invalid)) return "<invalid loc>"; in getBufferName()
1445 return getBuffer(getFileID(Loc), Invalid)->getBufferIdentifier(); in getBufferName()
1463 bool Invalid = false; in getPresumedLoc() local
1464 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in getPresumedLoc()
1465 if (Invalid || !Entry.isFile()) in getPresumedLoc()
1480 unsigned LineNo = getLineNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc()
1481 if (Invalid) in getPresumedLoc()
1483 unsigned ColNo = getColumnNumber(LocInfo.first, LocInfo.second, &Invalid); in getPresumedLoc()
1484 if (Invalid) in getPresumedLoc()
1533 bool Invalid = false; in isInMainFile() local
1534 const SLocEntry &Entry = getSLocEntry(LocInfo.first, &Invalid); in isInMainFile()
1535 if (Invalid || !Entry.isFile()) in isInMainFile()
1552 bool Invalid = false; in getFileIDSize() local
1553 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getFileIDSize()
1554 if (Invalid) in getFileIDSize()
1618 bool Invalid = false; in translateFile() local
1619 const SLocEntry &MainSLoc = getSLocEntry(MainFileID, &Invalid); in translateFile()
1620 if (Invalid) in translateFile()
1655 bool Invalid = false; in translateFile() local
1656 const SLocEntry &SLoc = getLocalSLocEntry(I, &Invalid); in translateFile()
1657 if (Invalid) in translateFile()
1688 bool Invalid = false; in translateFile() local
1692 const SLocEntry &SLoc = getSLocEntry(IFileID, &Invalid); in translateFile()
1693 if (Invalid) in translateFile()
1732 bool Invalid = false; in translateLineCol() local
1733 const SLocEntry &Entry = getSLocEntry(FID, &Invalid); in translateLineCol()
1734 if (Invalid) in translateLineCol()
1809 bool Invalid = false; in computeMacroArgsCache() local
1810 const SrcMgr::SLocEntry &Entry = getSLocEntryByID(ID, &Invalid); in computeMacroArgsCache()
1811 if (Invalid) in computeMacroArgsCache()
1976 bool Invalid = false; in getDecomposedIncludedLoc() local
1977 const SrcMgr::SLocEntry &Entry = getSLocEntry(FID, &Invalid); in getDecomposedIncludedLoc()
1978 if (!Invalid) { in getDecomposedIncludedLoc()