Searched refs:FID (Results 26 - 50 of 58) sorted by relevance

123

/freebsd-13-stable/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DTree.cpp45 auto FID = SourceMgr.createFileID(std::move(Input)); local
46 auto It = ExtraTokens.try_emplace(FID, tokenize(FID, SourceMgr, LangOpts));
48 return {FID, It.first->second};
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Syntax/
H A DTokens.h285 llvm::ArrayRef<syntax::Token> spelledTokens(FileID FID) const;
291 /// Get all tokens that expand a macro in \p FID. For the following input
299 std::vector<const syntax::Token *> macroExpansions(FileID FID) const;
381 /// Lex the text buffer, corresponding to \p FID, in raw mode and record the
389 std::vector<syntax::Token> tokenize(FileID FID, const SourceManager &SM,
/freebsd-13-stable/contrib/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp810 FileID FID = Loc.getFileID();
811 if (FID.isValid()) {
935 findLinesForRange(const CharSourceRange &R, FileID FID,
941 if (SM.getFileID(Begin) != FID || SM.getFileID(End) != FID)
985 unsigned LineNo, FileID FID,
996 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID)
1000 if (EndLineNo < LineNo || SM.getFileID(End) != FID)
1066 static std::string buildFixItInsertionLine(FileID FID,
1084 if (FID
[all...]
H A DASTUnit.cpp2378 FileID FID = SrcMgr.translateFile(*FE); local
2379 FileLoc = SrcMgr.getLocForStartOfFile(FID);
2433 FileID FID; local
2435 std::tie(FID, Offset) = SM.getDecomposedLoc(FileLoc);
2436 if (FID.isInvalid())
2439 std::unique_ptr<LocDeclsTy> &Decls = FileDecls[FID];
2556 FileID FID; local
2558 FID = SourceMgr->getPreambleFileID();
2560 if (Loc.isInvalid() || FID.isInvalid())
2563 return SourceMgr->isInFileID(Loc, FID);
2567 FileID FID; local
2578 FileID FID; local
2589 FileID FID; local
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/Lex/
H A DPPLexerChange.cpp67 bool Preprocessor::EnterSourceFile(FileID FID, const DirectoryLookup *CurDir,
75 // Get the MemoryBuffer for this FID, if it fails, we fail.
78 getSourceManager().getBuffer(FID, Loc, &Invalid);
80 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID);
87 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) {
88 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID);
93 EnterSourceFileWithLexer(new Lexer(FID, InputFile, *this), CurDir);
H A DPreprocessor.cpp565 FileID FID = SourceMgr.createFileID(std::move(SB)); local
566 assert(FID.isValid() && "Could not create FileID for predefines?");
567 setPredefinesFileID(FID);
570 EnterSourceFile(FID, nullptr, SourceLocation());
597 void Preprocessor::setPCHThroughHeaderFileID(FileID FID) { argument
600 PCHThroughHeaderFileID = FID;
H A DLexer.cpp134 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP) argument
135 : PreprocessorLexer(&PP, FID),
136 FileLoc(PP.getSourceManager().getLocForStartOfFile(FID)),
159 Lexer::Lexer(FileID FID, const llvm::MemoryBuffer *FromFile, argument
161 : Lexer(SM.getLocForStartOfFile(FID), langOpts, FromFile->getBufferStart(),
862 FileID FID; local
864 std::tie(FID, BeginOffs) = SM.getDecomposedLoc(Begin);
865 if (FID.isInvalid())
869 if (!SM.isInFileID(End, FID, &EndOffs) ||
983 FileID FID local
[all...]
H A DPPDirectives.cpp734 FileID FID = getCurrentFileLexer()->getFileID(); local
735 const FileEntry *FileEnt = SourceMgr.getFileEntryForID(FID);
750 if (FID == SourceMgr.getMainFileID() && MainFileDir) {
2228 FileID FID = SourceMgr.createFileID(*File, IncludePos, FileCharacter); local
2229 if (!FID.isValid()) {
2235 if (EnterSourceFile(FID, CurDir, FilenameTok.getLocation()))
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Language/ClangCommon/
H A DClangHighlighter.cpp171 FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get()); local
181 Lexer lex(FID, buf.get(), SM, Opts);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Parse/
H A DParseStmtAsm.cpp387 FileID FID;
404 FID = ExpAsmLoc.first;
405 LineNo = SrcMgr.getLineNumber(FID, ExpAsmLoc.second);
432 FID = ExpSemiLoc.first;
433 LineNo = SrcMgr.getLineNumber(FID, ExpSemiLoc.second);
440 if (ExpLoc.first != FID ||
461 FID = ExpLoc.first;
462 LineNo = SrcMgr.getLineNumber(FID, ExpLoc.second);
/freebsd-13-stable/contrib/llvm-project/clang/lib/ARCMigrate/
H A DObjCMT.cpp164 bool canModifyFile(FileID FID) { argument
165 if (FID.isInvalid())
167 return canModifyFile(PP.getSourceManager().getFileEntryForID(FID));
180 FileID FID = PP.getSourceManager().getFileID(D->getLocation());
181 return canModifyFile(FID);
1790 FileID FID; local
1792 std::tie(FID, Offset) = SourceMgr.getDecomposedLoc(Loc);
1793 assert(FID.isValid());
1795 StringRef(SourceMgr.getFileEntryForID(FID)->getName());
1849 FileID FID local
1965 FileID FID = I->first; local
2171 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); local
[all...]
H A DARCMT.cpp598 FileID FID = I->first; local
600 const FileEntry *file = Ctx.getSourceManager().getFileEntryForID(FID);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h321 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangExpressionSourceCode.cpp224 FileID FID = SM.createFileID(clang::SourceManager::Unowned, buf.get());
234 Lexer lex(FID, buf.get(), SM, Opts);
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DSourceLocation.h307 PresumedLoc(const char *FN, FileID FID, unsigned Ln, unsigned Co, argument
309 : Filename(FN), ID(FID), Line(Ln), Col(Co), IncludeLoc(IL) {}
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Lex/
H A DLexer.h141 Lexer(FileID FID, const llvm::MemoryBuffer *InputFile, Preprocessor &PP);
152 Lexer(FileID FID, const llvm::MemoryBuffer *FromFile,
H A DPreprocessingRecord.h295 /// entity with index \p Index came from file \p FID.
297 FileID FID) {
493 /// points to is coming from the file \p FID.
499 bool isEntityInFileID(iterator PPEI, FileID FID);
296 isPreprocessedEntityInFileID(unsigned Index, FileID FID) argument
H A DPreprocessor.h1313 bool EnterSourceFile(FileID FID, const DirectoryLookup *Dir,
2171 void setPredefinesFileID(FileID FID) { argument
2173 PredefinesFileID = FID;
2177 void setPCHThroughHeaderFileID(FileID FID);
/freebsd-13-stable/contrib/llvm-project/clang/lib/Analysis/
H A DPathDiagnostic.cpp155 FileID FID; local
173 if (FID.isInvalid()) {
174 FID = SMgr.getFileID(L);
175 } else if (SMgr.getFileID(L) != FID) {
184 if (!L.isFileID() || SMgr.getFileID(L) != FID) {
189 if (!L.isFileID() || SMgr.getFileID(L) != FID) {
202 if (FID.isInvalid())
/freebsd-13-stable/contrib/llvm-project/llvm/lib/ProfileData/
H A DSampleProfReader.cpp731 auto FID = readNumber<uint64_t>(); local
732 if (std::error_code EC = FID.getError())
734 MD5StringBuf->push_back(std::to_string(*FID));
754 auto FID = readNumber<uint64_t>(); local
755 if (std::error_code EC = FID.getError())
757 NameTable.push_back(std::to_string(*FID));
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp180 FileID FID = SMgr.getFileID(Loc);
182 StringRef Data = SMgr.getBufferData(FID, &Invalid);
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Frontend/
H A DAnalysisConsumer.cpp478 FileID FID = SM.getMainFileID(); local
479 StringRef Buffer = SM.getBuffer(FID)->getBuffer();
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenAction.cpp447 FileID FID = CSM.createFileID(std::move(CBuf)); local
452 CSM.getLocForStartOfFile(FID).getLocWithOffset(Offset);
1123 FileID FID = SM.getMainFileID(); local
1124 const llvm::MemoryBuffer *MainFile = SM.getBuffer(FID, &Invalid);
H A DCGDebugInfo.h575 computeChecksum(FileID FID, SmallString<32> &Checksum) const;
578 Optional<StringRef> getSource(const SourceManager &SM, FileID FID);
/freebsd-13-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp1569 FileID FID = SM.getFileID(ExpansionRange.getBegin()); local
1570 if (FID != SM.getFileID(ExpansionRange.getEnd()))
1574 const llvm::MemoryBuffer *Buffer = SM.getBuffer(FID, &Invalid);
1962 FileID FID = Loc.getFileID(); local
1964 assert(FID.isValid());
1965 ExecutedLines[FID].insert(LineNo);
3114 FileID FID = SM.getFileID(SM.getExpansionLoc(Start)); local
3116 ExecutedLines[FID].insert(Line);
3126 FileID FID = SM.getFileID(ExpansionLoc); local
3128 ExecutedLines[FID]
[all...]

Completed in 411 milliseconds

123