| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | HeaderMapTest.cpp | 30 File.init(); in TEST() 38 File.init(); in TEST() 46 File.init(); in TEST() 54 File.init(); in TEST() 68 File.init(); in TEST() 76 File.init(); in TEST() 84 File.init(); in TEST() 92 FileTy File; in TEST() local 93 File.init(); in TEST() 122 auto &File = P.File; in TEST() local [all …]
|
| H A D | HeaderMapTestUtils.h | 52 FileTy &File; member 55 HMapFileMockMaker(FileTy &File) : File(File) {} in HMapFileMockMaker() 58 assert(SI + S.size() + 1 <= sizeof(File.Bytes)); in addString() 59 std::copy(S.begin(), S.end(), File.Bytes + SI); in addString() 72 assert(!(File.Header.NumBuckets & (File.Header.NumBuckets - 1))); in addBucket() 75 if (!File.Buckets[I].Key) { in addBucket() 76 File.Buckets[I].Key = Key; in addBucket() 77 File.Buckets[I].Prefix = Prefix; in addBucket() 78 File.Buckets[I].Suffix = Suffix; in addBucket() 79 ++File.Header.NumEntries; in addBucket() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/TextAPI/ |
| H A D | TextStubV1Tests.cpp | 72 TBDFile File = std::move(Result.get()); in TEST() local 89 EXPECT_FALSE(File->isInstallAPI()); in TEST() 126 TBDFile File = std::move(Result.get()); in TEST() local 143 EXPECT_FALSE(File->isInstallAPI()); in TEST() 171 InterfaceFile File; in TEST() local 175 File.setPath("libfoo.dylib"); in TEST() 177 File.setFileType(FileType::TBD_V1); in TEST() 178 File.addTargets(Targets); in TEST() 180 File.setSwiftABIVersion(5); in TEST() 212 TBDFile File = std::move(Result.get()); in TEST() local [all …]
|
| H A D | TextStubV2Tests.cpp | 73 TBDFile File = std::move(Result.get()); in TEST() local 90 EXPECT_TRUE(File->isInstallAPI()); in TEST() 145 TBDFile File = std::move(Result.get()); in TEST() local 162 EXPECT_FALSE(File->isInstallAPI()); in TEST() 189 InterfaceFile File; in TEST() local 193 File.setPath("libfoo.dylib"); in TEST() 195 File.setFileType(FileType::TBD_V2); in TEST() 196 File.addTargets(Targets); in TEST() 198 File.setTwoLevelNamespace(); in TEST() 199 File.setApplicationExtensionSafe(); in TEST() [all …]
|
| H A D | TextStubV3Tests.cpp | 265 InterfaceFile File; in TEST() local 269 File.setPath("libfoo.dylib"); in TEST() 272 File.addTargets(Targets); in TEST() 274 File.setTwoLevelNamespace(); in TEST() 276 File.setSwiftABIVersion(5); in TEST() 330 InterfaceFile File; in TEST() local 336 File.addTargets(Targets); in TEST() 341 File.setTwoLevelNamespace(); in TEST() 343 File.setSwiftABIVersion(5); in TEST() 918 FileA, FileB, [](InterfaceFile *File) { File->setSwiftABIVersion(5); })); in TEST() argument [all …]
|
| H A D | TextStubV4Tests.cpp | 248 File->getInstallName()); in TEST() 360 InterfaceFile File; in TEST() local 369 File.addTargets(Targets); in TEST() 373 File.setTwoLevelNamespace(); in TEST() 374 File.setInstallAPI(true); in TEST() 376 File.setSwiftABIVersion(5); in TEST() 427 InterfaceFile File; in TEST() local 437 File.addTargets(Targets); in TEST() 442 File.setTwoLevelNamespace(); in TEST() 1144 FileA, FileB, [](InterfaceFile *File) { File->setSwiftABIVersion(5); })); in TEST() argument [all …]
|
| /llvm-project-15.0.7/libc/src/__support/File/ |
| H A D | linux_file.cpp | 25 int seek_func(File *, long, int); 26 int close_func(File *); 27 int flush_func(File *); 31 class LinuxFile : public File { 93 int close_func(File *f) { in close_func() 103 int flush_func(File *f) { in flush_func() 116 using ModeFlags = File::ModeFlags; in openfile() 170 File::ModeFlags(File::OpenMode::APPEND)); 171 File *stdout = &StdOut; 175 File::ModeFlags(File::OpenMode::APPEND)); [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ObjCopy/ |
| H A D | ObjCopyTest.cpp | 219 [](const Binary &File) { return File.isELF(); }); in TEST() argument 281 SimpleFileCOFFYAML, [](const Binary &File) { return File.isCOFF(); }, in TEST() argument 289 SimpleFileELFYAML, [](const Binary &File) { return File.isELF(); }, in TEST() argument 297 SimpleFileMachOYAML, [](const Binary &File) { return File.isMachO(); }, in TEST() argument 305 SimpleFileWasmYAML, [](const Binary &File) { return File.isWasm(); }, in TEST() argument 313 SimpleFileCOFFYAML, [](const Binary &File) { return File.isCOFF(); }, in TEST() argument 321 SimpleFileELFYAML, [](const Binary &File) { return File.isELF(); }, in TEST() argument 329 SimpleFileMachOYAML, [](const Binary &File) { return File.isMachO(); }, in TEST() argument 372 SimpleFileCOFFYAML, [](const Binary &File) { return File.isCOFF(); }, in TEST() argument 380 SimpleFileELFYAML, [](const Binary &File) { return File.isELF(); }, in TEST() argument [all …]
|
| /llvm-project-15.0.7/libc/src/stdio/ |
| H A D | CMakeLists.txt | 11 libc.src.__support.File.file 23 libc.src.__support.File.file 35 libc.src.__support.File.file 47 libc.src.__support.File.file 59 libc.src.__support.File.file 71 libc.src.__support.File.file 83 libc.src.__support.File.file 95 libc.src.__support.File.file 107 libc.src.__support.File.file 119 libc.src.__support.File.file [all …]
|
| /llvm-project-15.0.7/llvm/lib/ObjectYAML/ |
| H A D | MinidumpEmitter.cpp | 124 size_t DataEnd = File.tell(); in layout() 155 static size_t layout(BlobAllocator &File, in layout() argument 160 File.allocateObject(E.Entry); in layout() 162 size_t DataEnd = File.tell(); in layout() 165 DataEnd = File.tell(); in layout() 167 layout(File, E); in layout() 175 Result.Location.RVA = File.tell(); in layout() 208 DataEnd = File.tell(); in layout() 231 BlobAllocator File; in yaml2minidump() local 232 File.allocateObject(Obj.Header); in yaml2minidump() [all …]
|
| /llvm-project-15.0.7/llvm/lib/TextAPI/ |
| H A D | TextStub.cpp | 440 UUIDs = File->uuids(); in NormalizedTBD() 455 if (File->isInstallAPI()) in NormalizedTBD() 617 File->setPath(Ctx->Path); in denormalize() 718 return File; in denormalize() 824 if (File->isInstallAPI()) in NormalizedTBD_V4() 912 File->setPath(Ctx->Path); in denormalize() 916 File->addTargets(Targets); in denormalize() 975 return File; in denormalize() 1124 File->addDocument( in get() 1130 return std::move(File); in get() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-pdbutil/ |
| H A D | BytesOutputStyle.cpp | 86 : File(File), P(2, false, outs(), opts::Filters) {} in BytesOutputStyle() 98 if (Max >= File.getBlockCount()) in dump() 114 if (Max >= File.getFileSize()) in dump() 213 Base *= File.getBlockSize(); in dumpBlockRanges() 215 auto ExpectedData = File.getBlockData(I, File.getBlockSize()); in dumpBlockRanges() 231 auto &DbiS = Err(File.getPDBDbiStream()); in dumpSectionContributions() 301 auto &Stream = Err(IsTpi ? File.getPDBTpiStream() : File.getPDBIpiStream()); in dumpTypeIndex() 357 if (!File.hasPDBDbiStream()) { in iterateModules() 385 iterateModules(File, P, 2, in dumpModuleSyms() 398 iterateModules(File, P, 2, in dumpModuleC11() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | SourceCodeTests.cpp | 90 const char File[] = R"(0:0 = 0 variable 104 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, -1)), in TEST() 106 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 0)), in TEST() 108 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 3)), in TEST() 110 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 6)), in TEST() 112 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 7)), in TEST() 116 EXPECT_THAT_EXPECTED(positionToOffset(File, position(0, 8)), in TEST() 123 EXPECT_THAT_EXPECTED(positionToOffset(File, position(1, 0)), in TEST() 125 EXPECT_THAT_EXPECTED(positionToOffset(File, position(1, 3)), in TEST() 129 EXPECT_THAT_EXPECTED(positionToOffset(File, position(1, 6)), in TEST() [all …]
|
| H A D | DraftStoreTests.cpp | 19 Path File = "foo.cpp"; in TEST() local 21 EXPECT_EQ("25", DS.addDraft(File, "25", "")); in TEST() 22 EXPECT_EQ("25", DS.getDraft(File)->Version); in TEST() 23 EXPECT_EQ("", *DS.getDraft(File)->Contents); in TEST() 25 EXPECT_EQ("26", DS.addDraft(File, "", "x")); in TEST() 26 EXPECT_EQ("26", DS.getDraft(File)->Version); in TEST() 27 EXPECT_EQ("x", *DS.getDraft(File)->Contents); in TEST() 30 EXPECT_EQ("27", DS.getDraft(File)->Version); in TEST() 31 EXPECT_EQ("x", *DS.getDraft(File)->Contents); in TEST() 34 EXPECT_EQ("7", DS.addDraft(File, "7", "y")); in TEST() [all …]
|
| H A D | SyncAPI.cpp | 16 void runAddDocument(ClangdServer &Server, PathRef File, in runAddDocument() argument 71 runCodeComplete(ClangdServer &Server, PathRef File, Position Pos, in runCodeComplete() argument 74 Server.codeComplete(File, Pos, Opts, capture(Result)); in runCodeComplete() 89 Server.locateSymbolAt(File, Pos, capture(Result)); in runLocateSymbolAt() 96 Server.findDocumentHighlights(File, Pos, capture(Result)); in runFindDocumentHighlights() 120 Server.formatFile(File, Rng, capture(Result)); in runFormatFile() 146 runSemanticRanges(ClangdServer &Server, PathRef File, in runSemanticRanges() argument 149 Server.semanticRanges(File, Pos, capture(Result)); in runSemanticRanges() 154 runSwitchHeaderSource(ClangdServer &Server, PathRef File) { in runSwitchHeaderSource() argument 156 Server.switchSourceHeader(File, capture(Result)); in runSwitchHeaderSource() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-c-test/ |
| H A D | debuginfo.c | 21 declare_objc_class(LLVMDIBuilderRef DIB, LLVMMetadataRef File) { in declare_objc_class() argument 22 …LLVMMetadataRef Decl = LLVMDIBuilderCreateStructType(DIB, File, "TestClass", 9, File, 42, 64, 0, L… in declare_objc_class() 36 LLVMMetadataRef File = LLVMDIBuilderCreateFile(DIB, Filename, in llvm_test_dibuilder() local 57 DIB, Module, OtherModule, File, 42, NULL, 0); in llvm_test_dibuilder() 61 LLVMMetadataRef ClassTy = declare_objc_class(DIB, File); in llvm_test_dibuilder() 71 LLVMDIBuilderCreateTypedef(DIB, Int64Ty, "int64_t", 7, File, 42, File, 0); in llvm_test_dibuilder() 85 8, File, 0, 192, 0, 0, NULL, StructDbgElts, 3, in llvm_test_dibuilder() 118 File, File, 42, in llvm_test_dibuilder() 127 LLVMDIBuilderCreateFunction(DIB, File, "foo", 3, "foo", 3, in llvm_test_dibuilder() 128 File, 42, FunctionTy, true, true, in llvm_test_dibuilder() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/Object/ |
| H A D | MinidumpTest.cpp | 39 const MinidumpFile &File = **ExpectedFile; in TEST() local 40 const Header &H = File.header(); in TEST() 49 ASSERT_EQ(1u, File.streams().size()); in TEST() 200 ASSERT_EQ(2u, File.streams().size()); in TEST() 231 auto ExpectedInfo = File.getSystemInfo(); in TEST() 621 ASSERT_THAT_EXPECTED(File, Succeeded()); in TEST() 640 File = create(HeaderTooSmall); in TEST() 641 ASSERT_THAT_EXPECTED(File, Succeeded()); in TEST() 665 File = create(EntryTooBig); in TEST() 702 File = create(ThreeEntries); in TEST() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/ |
| H A D | ClangdServer.h | 206 void addDocument(PathRef File, StringRef Contents, 215 void removeDocument(PathRef File); 227 void codeComplete(PathRef File, Position Pos, 237 void locateSymbolAt(PathRef File, Position Pos, 250 void findHover(PathRef File, Position Pos, 286 void documentSymbols(StringRef File, 297 void findType(PathRef File, Position Pos, 317 void prepareRename(PathRef File, Position Pos, 337 void enumerateTweaks(PathRef File, Range Sel, 350 void symbolInfo(PathRef File, Position Pos, [all …]
|
| H A D | ClangdServer.cpp | 216 [&CDB](llvm::StringRef File) { return CDB.getProjectInfo(File); }), in ClangdServer() argument 378 auto Task = [Pos, CodeCompleteOpts, File = File.str(), CB = std::move(CB), in codeComplete() 439 auto Action = [Pos, File = File.str(), CB = std::move(CB), in signatureHelp() 484 auto Action = [File = File.str(), Code = std::move(*Code), in formatFile() 497 File))); in formatFile() 512 auto Action = [File = File.str(), Code = std::move(*Code), in formatOnType() 534 auto Action = [Pos, File = File.str(), CB = std::move(CB), in prepareRename() 559 auto Action = [File = File.str(), NewName = NewName.str(), Pos, Opts, in rename() 656 auto Action = [File = File.str(), Sel, TweakID = TweakID.str(), in applyTweak() 740 auto Action = [File = File.str(), Pos, CB = std::move(CB), in findHover() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/ObjectYAML/ |
| H A D | MinidumpYAMLTest.cpp | 50 ASSERT_EQ(3u, File.streams().size()); in TEST() 104 ASSERT_EQ(1u, File.streams().size()); in TEST() 131 ASSERT_EQ(1u, File.streams().size()); in TEST() 163 ASSERT_EQ(1u, File.streams().size()); in TEST() 166 File.getExceptionStream(); in TEST() 206 ASSERT_EQ(1u, File.streams().size()); in TEST() 209 File.getExceptionStream(); in TEST() 262 ASSERT_EQ(1u, File.streams().size()); in TEST() 265 File.getExceptionStream(); in TEST() 313 ASSERT_EQ(1u, File.streams().size()); in TEST() [all …]
|
| /llvm-project-15.0.7/libc/utils/UnitTest/ |
| H A D | LibcTest.cpp | 82 std::cout << File << ":" << Line << ": FAILURE\n" in explainDifference() 277 const char *File, unsigned long Line); 285 File, Line); in testStrEq() 292 File, Line); in testStrNe() 301 std::cout << File << ":" << Line << ": FAILURE\n" in testMatch() 323 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled() 330 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled() 343 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessKilled() 365 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessExits() 372 std::cout << File << ":" << Line << ": FAILURE\n" in testProcessExits() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/profile/ |
| H A D | InstrProfilingFile.c | 241 static void setProfileFile(FILE *File) { ProfileFile = File; } in setProfileFile() argument 452 FILE *File; in getFileObject() local 455 return File; in getFileObject() 520 FILE *File; in truncateCurrentFile() local 551 if (!File) in truncateCurrentFile() 553 fclose(File); in truncateCurrentFile() 597 if (!File) in initializeProfileForContinuousMode() 603 fclose(File); in initializeProfileForContinuousMode() 627 if (!File) in initializeProfileForContinuousMode() 639 fclose(File); in initializeProfileForContinuousMode() [all …]
|
| /llvm-project-15.0.7/lldb/source/Host/common/ |
| H A D | File.cpp | 43 File::GetStreamOpenModeFromOptions(File::OpenOptions options) { in GetStreamOpenModeFromOptions() 44 File::OpenOptions rw = in GetStreamOpenModeFromOptions() 45 options & (File::eOpenOptionReadOnly | File::eOpenOptionWriteOnly | in GetStreamOpenModeFromOptions() 78 Expected<File::OpenOptions> File::GetOptionsFromMode(llvm::StringRef mode) { in GetOptionsFromMode() 191 bool File::GetIsInteractive() { in GetIsInteractive() 227 Expected<File::OpenOptions> File::GetOptions() const { in GetOptions() 313 File::OpenOptions rw = in Close() 314 m_options & (File::eOpenOptionReadOnly | File::eOpenOptionWriteOnly | in Close() 740 File::OpenOptions rw = in ConvertOpenOptionsForPOSIXOpen() 741 open_options & (File::eOpenOptionReadOnly | File::eOpenOptionWriteOnly | in ConvertOpenOptionsForPOSIXOpen() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-opt-report/Inputs/ |
| H A D | dm.yaml | 4 DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 12 } 10 DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 } 16 DebugLoc: { File: Inputs/dm.c, Line: 7, Column: 3 } 20 DebugLoc: { File: Inputs/dm.c, Line: 2, Column: 0 } 23 DebugLoc: { File: Inputs/dm.c, Line: 6, Column: 0 } 33 DebugLoc: { File: Inputs/dm.c, Line: 7, Column: 3 } 45 DebugLoc: { File: Inputs/dm.c, Line: 11, Column: 3 } 62 DebugLoc: { File: Inputs/dm.c, Line: 11, Column: 3 } 74 DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 } 83 DebugLoc: { File: Inputs/dm.c, Line: 3, Column: 28 } [all …]
|
| /llvm-project-15.0.7/clang/lib/Tooling/Syntax/ |
| H A D | Tokens.cpp | 216 FileID File; in range() local 238 : File(File), Begin(BeginOffset), End(EndOffset) { in FileRange() 239 assert(File.isValid()); in FileRange() 319 SourceRange(SM.getComposedLoc(File, Begin), SM.getComposedLoc(File, End)), in toCharRange() 343 return {&File.SpelledTokens[ExpandedIndex - File.BeginExpanded], in spelledForExpandedToken() 528 (File.SpelledTokens.data() + File.SpelledTokens.size()) && in fileForSpelled() 535 return File; in fileForSpelled() 612 auto &File = FileIt->second; in macroExpansions() local 788 discard(File.first); in build() 930 File.BeginExpanded = I; in buildSpelledTokens() [all …]
|