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

123

/netbsd-current/external/apache2/llvm/dist/clang/lib/Tooling/Syntax/
H A DTokens.cpp338 llvm::ArrayRef<syntax::Token> TokenBuffer::spelledTokens(FileID FID) const {
339 auto It = Files.find(FID);
377 FileID FID = SourceMgr->getFileID(BeginSpelled->location());
379 if (FID != SourceMgr->getFileID(LastSpelled->location()))
382 const MarkedFile &File = Files.find(FID)->second;
515 TokenBuffer::macroExpansions(FileID FID) const {
516 auto FileIt = Files.find(FID);
562 std::vector<syntax::Token> syntax::tokenize(FileID FID, const SourceManager &SM,
564 return tokenize(syntax::FileRange(FID, 0, SM.getFileIDSize(FID)), S
[all...]
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};
/netbsd-current/external/apache2/llvm/dist/llvm/include/llvm/MC/
H A DMCCodeView.h69 void setFunctionId(unsigned FID) { FunctionId = FID; } argument
/netbsd-current/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DObjCUnusedIVarsChecker.cpp96 static void Scan(IvarUsageMap &M, const DeclContext *C, const FileID FID, argument
101 if (SM.getFileID(L) == FID)
H A DDeadStoresChecker.cpp181 FileID FID = SMgr.getFileID(Loc);
183 StringRef Data = SMgr.getBufferData(FID, &Invalid);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Tooling/Syntax/
H A DTokens.h295 llvm::ArrayRef<syntax::Token> spelledTokens(FileID FID) const;
301 /// Get all tokens that expand a macro in \p FID. For the following input
309 std::vector<const syntax::Token *> macroExpansions(FileID FID) const;
399 /// Lex the text buffer, corresponding to \p FID, in raw mode and record the
407 std::vector<syntax::Token> tokenize(FileID FID, const SourceManager &SM,
/netbsd-current/external/apache2/llvm/dist/clang/lib/Frontend/
H A DTextDiagnostic.cpp799 FileID FID = Loc.getFileID();
800 if (FID.isValid()) {
927 findLinesForRange(const CharSourceRange &R, FileID FID,
933 if (SM.getFileID(Begin) != FID || SM.getFileID(End) != FID)
977 unsigned LineNo, FileID FID,
988 if (StartLineNo > LineNo || SM.getFileID(Begin) != FID)
992 if (EndLineNo < LineNo || SM.getFileID(End) != FID)
1058 static std::string buildFixItInsertionLine(FileID FID,
1076 if (FID
[all...]
H A DASTUnit.cpp2351 FileID FID = SrcMgr.translateFile(*FE); local
2352 FileLoc = SrcMgr.getLocForStartOfFile(FID);
2406 FileID FID; local
2408 std::tie(FID, Offset) = SM.getDecomposedLoc(FileLoc);
2409 if (FID.isInvalid())
2412 std::unique_ptr<LocDeclsTy> &Decls = FileDecls[FID];
2529 FileID FID; local
2531 FID = SourceMgr->getPreambleFileID();
2533 if (Loc.isInvalid() || FID.isInvalid())
2536 return SourceMgr->isInFileID(Loc, FID);
2540 FileID FID; local
2551 FileID FID; local
2562 FileID FID; local
[all...]
/netbsd-current/external/apache2/llvm/dist/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.
77 getSourceManager().getBufferOrNone(FID, Loc);
79 SourceLocation FileStart = SourceMgr.getLocForStartOfFile(FID);
86 SourceMgr.getFileEntryForID(FID) == CodeCompletionFile) {
87 CodeCompletionFileLoc = SourceMgr.getLocForStartOfFile(FID);
92 EnterSourceFileWithLexer(new Lexer(FID, *InputFile, *this), CurDir);
H A DPreprocessor.cpp559 FileID FID = SourceMgr.createFileID(std::move(SB)); local
560 assert(FID.isValid() && "Could not create FileID for predefines?");
561 setPredefinesFileID(FID);
564 EnterSourceFile(FID, nullptr, SourceLocation());
591 void Preprocessor::setPCHThroughHeaderFileID(FileID FID) { argument
594 PCHThroughHeaderFileID = FID;
/netbsd-current/external/apache2/llvm/dist/clang/tools/libclang/
H A DIndexing.cpp174 bool hasAlredyBeenParsed(SourceLocation Loc, FileID FID, argument
177 PPRegion region = getRegion(Loc, FID, FE);
202 PPRegion getRegion(SourceLocation Loc, FileID FID, const FileEntry *FE) { argument
222 if (RegionFID != FID)
392 FileID FID;
394 std::tie(FID, Offset) = SM.getDecomposedLoc(Loc);
396 if (SM.getMainFileID() == FID)
398 const FileEntry *FE = SM.getFileEntryForID(FID);
402 return ParsedLocsTracker->hasAlredyBeenParsed(Loc, FID, FE);
H A DCXIndexDataConsumer.cpp937 FileID FID = SM.getFileID(FileLoc); local
938 return SM.getFileEntryForID(FID) == nullptr;
1017 FileID FID = LocInfo.first; local
1018 if (FID.isInvalid())
1021 const FileEntry *FE = SM.getFileEntryForID(FID);
1112 FileID FID = LocInfo.first; local
1115 if (FID.isInvalid())
1118 const FileEntry *FE = SM.getFileEntryForID(FID);
1124 *line = SM.getLineNumber(FID, FileOffset);
1126 *column = SM.getColumnNumber(FID, FileOffse
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/lib/Format/
H A DMacroExpander.cpp139 clang::FileID FID = SourceMgr.createFileID(Buffers.back()->getMemBufferRef()); local
140 FormatTokenLexer Lex(SourceMgr, FID, 0, Style, encoding::Encoding_UTF8,
/netbsd-current/external/apache2/llvm/dist/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);
/netbsd-current/external/apache2/llvm/dist/clang/lib/Interpreter/
H A DIncrementalParser.cpp218 FileID FID = SM.createFileID(std::move(MB), SrcMgr::C_User, /*LoadedID=*/0, local
222 if (PP.EnterSourceFile(FID, /*DirLookup=*/0, NewLoc))
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-refactor/
H A DTestSupport.cpp46 FileID FID = FE ? SM.translateFile(*FE) : FileID(); local
47 if (!FE || FID.isInvalid()) {
52 SourceLocation FileLoc = SM.getLocForStartOfFile(FID);
H A DClangRefactor.cpp120 FileID FID = FE ? SM.translateFile(*FE) : FileID(); variable
121 if (!FE || FID.isInvalid()) {
128 SM.translateLineCol(FID, Range.Begin.first, Range.Begin.second));
130 SM.translateLineCol(FID, Range.End.first, Range.End.second));
/netbsd-current/external/apache2/llvm/dist/clang/lib/ARCMigrate/
H A DObjCMT.cpp164 bool canModifyFile(FileID FID) { argument
165 if (FID.isInvalid())
167 return canModifyFile(PP.getSourceManager().getFileEntryRefForID(FID));
180 FileID FID = PP.getSourceManager().getFileID(D->getLocation());
181 return canModifyFile(FID);
1788 FileID FID; local
1790 std::tie(FID, Offset) = SourceMgr.getDecomposedLoc(Loc);
1791 assert(FID.isValid());
1793 StringRef(SourceMgr.getFileEntryForID(FID)->getName());
1847 FileID FID local
1963 FileID FID = I->first; local
2162 FileID FID = SM.createFileID(FE, SourceLocation(), SrcMgr::C_User); local
[all...]
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Frontend/
H A DVerifyDiagnosticConsumer.h321 void UpdateParsedFileStatus(SourceManager &SM, FileID FID, ParsedStatus PS);
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Lex/
H A DLexer.h145 Lexer(FileID FID, const llvm::MemoryBufferRef &InputFile, Preprocessor &PP);
156 Lexer(FileID FID, const llvm::MemoryBufferRef &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
/netbsd-current/external/apache2/llvm/dist/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())
/netbsd-current/external/apache2/llvm/dist/llvm/lib/ProfileData/
H A DSampleProfReader.cpp453 auto FID = readUnencodedNumber<uint64_t>(); local
454 if (std::error_code EC = FID.getError())
459 MD5StringBuf->push_back(std::to_string(*FID));
945 auto FID = readNumber<uint64_t>(); local
946 if (std::error_code EC = FID.getError())
948 MD5StringBuf->push_back(std::to_string(*FID));
999 auto FID = readNumber<uint64_t>(); local
1000 if (std::error_code EC = FID.getError())
1002 NameTable.push_back(std::to_string(*FID));
/netbsd-current/external/apache2/llvm/dist/clang/include/clang/Basic/
H A DSourceLocation.h312 PresumedLoc(const char *FN, FileID FID, unsigned Ln, unsigned Co, argument
314 : Filename(FN), ID(FID), Line(Ln), Col(Co), IncludeLoc(IL) {}
/netbsd-current/external/apache2/llvm/dist/clang/tools/clang-import-test/
H A Dclang-import-test.cpp108 FileID FID = SM.getFileID(Loc); local
109 llvm::MemoryBufferRef Buffer = SM.getBufferOrFake(FID, Loc);

Completed in 493 milliseconds

123