| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | ConvertUTFWrapper.cpp | 30 memcpy(ResultPtr, Source.data(), Source.size()); in ConvertUTF8toWide() 31 ResultPtr += Source.size(); in ConvertUTF8toWide() 66 const UTF32 *SourceStart = &Source; in ConvertCodePointToUTF8() 248 Result.resize(Source.size() + 1); in ConvertUTF8toWideInternal() 260 return ConvertUTF8toWideInternal(Source, Result); in ConvertUTF8toWide() 264 if (!Source) { in ConvertUTF8toWide() 275 reinterpret_cast<const UTF8 *>(Source.data() + Source.size()); in convertWideToUTF8() 278 Result.resize(Source.size()); in convertWideToUTF8() 279 memcpy(&Result[0], Source.data(), Source.size()); in convertWideToUTF8() 284 Source.size()), in convertWideToUTF8() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TypeHierarchyTests.cpp | 57 Annotations Source(R"cpp( in TEST() local 82 Annotations Source(R"cpp( in TEST() local 106 Annotations Source(R"cpp( in TEST() local 129 Annotations Source(R"cpp( in TEST() local 159 Annotations Source(R"cpp( in TEST() local 195 Annotations Source(R"cpp( in TEST() local 238 Annotations Source(R"cpp( in TEST() local 267 Annotations Source(R"cpp( in TEST() local 292 Annotations Source(R"cpp( in TEST() local 327 Annotations Source(R"cpp( in TEST() local [all …]
|
| H A D | CallHierarchyTests.cpp | 60 Annotations Source(R"cpp( in TEST() local 74 TestTU TU = TestTU::withCode(Source.code()); in TEST() 88 fromRanges(Source.range("Caller1A"), in TEST() 103 Annotations Source(R"objc( in TEST() local 119 TestTU TU = TestTU::withCode(Source.code()); in TEST() 151 Annotations Source(R"cpp( in TEST() local 162 TestTU TU = TestTU::withCode(Source.code()); in TEST() 181 Annotations Source(R"cpp( in TEST() local 195 TestTU TU = TestTU::withCode(Source.code()); in TEST() 422 Annotations Source(R"cpp( in TEST() local [all …]
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ASTUtils.h | 26 ExternalASTSourceWrapper(ExternalASTSource *Source) : m_Source(Source) { in ExternalASTSourceWrapper() argument 419 for (auto &Source : Sources) in getMemoryBufferSizes() 428 for (auto &Source : Sources) in InitializeSema() 429 Source->InitializeSema(S); in InitializeSema() 433 for (auto &Source : Sources) in ForgetSema() 434 Source->ForgetSema(); in ForgetSema() 438 for (auto &Source : Sources) in ReadMethodPool() 443 for (auto &Source : Sources) in updateOutOfDateSelector() 449 for (auto &Source : Sources) in ReadKnownNamespaces() 456 for (auto &Source : Sources) in ReadUndefinedButUsed() [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/input.output/filesystems/class.path/path.req/ |
| H A D | is_pathable.pass.cpp | 37 template <class Source> 38 Identity<Source> CheckSourceType(Source const&); 47 template <class Source> 49 CheckPass<Source&, Source>::value && 50 CheckPass<Source const&, Source>::value && 51 CheckPass<Source&&, Source>::value && 52 CheckPass<Source const&&, Source>::value
|
| /llvm-project-15.0.7/llvm/unittests/FuzzMutate/ |
| H A D | StrategiesTest.cpp | 84 Mutator.mutateModule(*M, Seed, Source.size(), Source.size() + 100); in IterateOnSource() 106 StringRef Source = "" in TEST() local 120 IterateOnSource(Source, *Mutator); in TEST() 127 StringRef Source = "\n\ in TEST() local 146 IterateOnSource(Source, *Mutator); in TEST() 151 std::string Source = std::string("\n\ in checkModifyNoUnsignedAndNoSignedWrap() local 168 Mutator->mutateModule(*M, Seed + i, Source.size(), Source.size() + 100); in checkModifyNoUnsignedAndNoSignedWrap() 196 StringRef Source = "\n\ in TEST() local 211 Mutator->mutateModule(*M, Seed + i, Source.size(), Source.size() + 100); in TEST() 221 StringRef Source = "\n\ in TEST() local [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/objc/objc-dynamic-value/ |
| H A D | dynamic-value.m | 3 // SourceBase will be the base class of Source. We'll pass a Source object into a 5 // goo and all the way back to Source. 33 @interface Source : SourceBase interface 37 - (Source *) init; 41 @implementation Source implementation 42 - (Source *) init 54 @interface SourceDerived : Source 79 Source *_source; 82 - (Observer *) initWithASource: (Source *) source; argument 99 - (Observer *) initWithASource: (Source *) source [all …]
|
| /llvm-project-15.0.7/lldb/test/API/lang/objc/objc-stepping/ |
| H A D | stepping-tests.m | 39 @interface Source : SourceBase interface 48 @implementation Source implementation 57 printf ("Called in Source version of random method."); 62 printf ("Called in Source version of returnsStruct.\n"); // Source returnsStruct start line. 70 Source *_source; 72 + (Observer *) observerWithSource: (Source *) source; argument 73 - (Observer *) initWithASource: (Source *) source; argument 82 + (Observer *) observerWithSource: (Source *) inSource; argument 90 - (Observer *) initWithASource: (Source *) source 113 Source *mySource; [all …]
|
| /llvm-project-15.0.7/clang/unittests/Tooling/ |
| H A D | ASTSelectionTest.cpp | 378 StringRef Source = R"( in TEST() local 468 StringRef Source = R"( in TEST() local 497 StringRef Source = R"( in TEST() local 521 StringRef Source = R"( in TEST() local 552 StringRef Source = R"( in TEST() local 787 StringRef Source = R"( in TEST() local 811 StringRef Source = R"( in TEST() local 843 StringRef Source = R"( in TEST() local 871 StringRef Source = R"( in TEST() local 975 StringRef Source = R"( in TEST() local [all …]
|
| H A D | LexicallyOrderedRecursiveASTVisitorTest.cpp | 104 StringRef Source = R"( in TEST() local 143 EXPECT_TRUE(Visitor.runOver(Source, DummyMatchVisitor::Lang_OBJC)); in TEST() 147 StringRef Source = R"( in TEST() local 167 EXPECT_TRUE(Visitor.runOver(Source, DummyMatchVisitor::Lang_OBJC)); in TEST() 171 StringRef Source = R"( in TEST() local 181 EXPECT_TRUE(Visitor.runOver(Source)); in TEST() 185 StringRef Source = R"( in TEST() local 223 EXPECT_TRUE(Visitor.runOver(Source)); in TEST()
|
| /llvm-project-15.0.7/lldb/test/API/macosx/dyld-trie-symbols/ |
| H A D | main.mm | 3 // SourceBase will be the base class of Source. We'll pass a Source object into a 5 // goo and all the way back to Source. 33 @interface Source : SourceBase interface 37 - (Source *) init; 41 @implementation Source implementation 42 - (Source *) init 54 @interface SourceDerived : Source 79 Source *_source; 81 + (Observer *) observerWithSource: (Source *) source; argument 82 - (Observer *) initWithASource: (Source *) source; argument [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/orc/unittests/ |
| H A D | c_api_test.cpp | 94 char Source[SmallAllocSize]; in TEST() local 96 Source[I] = 0x55 + I; in TEST() 115 char Source[LargeAllocSize]; in TEST() local 117 Source[I] = 0x55 + I; in TEST() 136 char Source[SmallAllocSize]; in TEST() local 138 Source[I] = 'a' + I; in TEST() 139 Source[SmallAllocSize - 1] = '\0'; in TEST() 142 __orc_rt_CreateCWrapperFunctionResultFromString(Source); in TEST() 160 char Source[LargeAllocSize]; in TEST() local 162 Source[I] = 'a' + I; in TEST() [all …]
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | CommentLexer.cpp | 66 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); in lexString() 81 const char *Source = ""; in TEST_F() local 84 lexString(Source, Toks); in TEST_F() 203 const char *Source = in TEST_F() local 492 const char *Source = in TEST_F() local 528 const char *Source = in TEST_F() local 701 const char *Source = in TEST_F() local 741 const char *Source = in TEST_F() local 784 const char *Source = in TEST_F() local 838 const char *Source = in TEST_F() local [all …]
|
| H A D | ExternalASTSourceTest.cpp | 28 TestFrontendAction(ExternalASTSource *Source) : Source(Source) {} in TestFrontendAction() argument 32 getCompilerInstance().getASTContext().setExternalSource(Source); in ExecuteAction() 43 IntrusiveRefCntPtr<ExternalASTSource> Source; member in TestFrontendAction 46 bool testExternalASTSource(ExternalASTSource *Source, in testExternalASTSource() argument 59 TestFrontendAction Action(Source); in testExternalASTSource()
|
| H A D | CommentParser.cpp | 59 Lexer L(Allocator, Diags, Traits, Begin, Source, Source + strlen(Source)); in parseString() 596 const char *Source = "//"; in TEST_F() local 603 const char *Source = "// Meow"; in TEST_F() local 612 const char *Source = in TEST_F() local 677 const char *Source = in TEST_F() local 721 const char *Source = in TEST_F() local 914 const char *Source = in TEST_F() local 990 const char *Source = "// \\c"; in TEST_F() local 1007 const char *Source = "// \\c "; in TEST_F() local 1192 const char *Source = in TEST_F() local [all …]
|
| /llvm-project-15.0.7/clang/unittests/Lex/ |
| H A D | DependencyDirectivesScannerTest.cpp | 661 for (auto Source : { 669 for (auto Source : { 685 StringRef Source = R"( in TEST() local 699 StringRef Source = R"(L'P' in TEST() local 712 StringRef Source = R"(int x = U'P'; in TEST() local 723 StringRef Source = R"(int x = u'b'; in TEST() local 738 StringRef Source = R"(// comment in TEST() local 749 Source = R"(// comment in TEST() 762 StringRef Source = R"(#if NEVER_ENABLED in TEST() local 773 Source = R"(#if NEVER_ENABLED in TEST() [all …]
|
| H A D | PPCallbacksTest.cpp | 362 const char* Source = in TEST_F() local 372 const char* Source = in TEST_F() local 382 const char* Source = in TEST_F() local 393 const char* Source = in TEST_F() local 404 const char* Source = in TEST_F() local 415 const char* Source = in TEST_F() local 427 const char* Source = in TEST_F() local 437 const char* Source = in TEST_F() local 448 const char* Source = in TEST_F() local 460 const char* Source = in TEST_F() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/CodeView/ |
| H A D | CVTypeVisitor.cpp | 187 VisitorDataSource Source) in FieldListVisitHelper() 191 if (Source == VDS_BytesPresent) { in FieldListVisitHelper() 207 if (Source == VDS_BytesPresent) { in VisitHelper() 221 VisitorDataSource Source) { in visitTypeRecord() argument 222 VisitHelper V(Callbacks, Source); in visitTypeRecord() 228 VisitorDataSource Source) { in visitTypeRecord() argument 229 VisitHelper V(Callbacks, Source); in visitTypeRecord() 235 VisitorDataSource Source) { in visitTypeStream() argument 236 VisitHelper V(Callbacks, Source); in visitTypeStream() 257 VisitorDataSource Source) { in visitMemberRecord() argument [all …]
|
| /llvm-project-15.0.7/clang/tools/clang-refactor/ |
| H A D | TestSupport.cpp | 167 StringRef Source = ErrOrFile.get()->getBuffer(); in getLineColumn() local 168 Source = Source.take_front(Offset); in getLineColumn() 169 size_t LastLine = Source.find_last_of("\r\n"); in getLineColumn() 170 return {Source.count('\n') + 1, in getLineColumn() 265 static unsigned addColumnOffset(StringRef Source, unsigned Offset, in addColumnOffset() argument 269 StringRef Substr = Source.drop_front(Offset).take_front(ColumnOffset); in addColumnOffset() 278 StringRef Line = Source.drop_front(Offset); in addEndLineOffsetAndEndColumn() 303 StringRef Source = ErrOrFile.get()->getBuffer(); in findTestSelectionRanges() local 318 Source.begin(), Source.end()); in findTestSelectionRanges() 326 Source.substr(Tok.getLocation().getRawEncoding(), Tok.getLength()); in findTestSelectionRanges() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | SymbolRewriter.cpp | 105 Comdats.erase(Comdats.find(Source)); in rewriteComdat() 115 const std::string Source; member in __anond94be2680111::ExplicitRewriteDescriptor 136 if (ValueType *S = (M.*Get)(Source)) { in performOnModule() 329 std::string Source; in parseRewriteFunctionDescriptor() local 386 Source, Target, Naked)); in parseRewriteFunctionDescriptor() 398 std::string Source; in parseRewriteGlobalVariableDescriptor() local 448 Source, Target, in parseRewriteGlobalVariableDescriptor() 452 Source, Transform)); in parseRewriteGlobalVariableDescriptor() 461 std::string Source; in parseRewriteGlobalAliasDescriptor() local 511 Source, Target, in parseRewriteGlobalAliasDescriptor() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-mca/Views/ |
| H A D | ResourcePressureView.cpp | 55 ArrayRef<llvm::MCInst> Source = getSource(); in onEvent() local 56 const unsigned SourceIdx = Event.IR.getSourceIndex() % Source.size(); in onEvent() 64 ResourceUsage[R2VIndex + NumResourceUnits * Source.size()] += Use.second; in onEvent() 136 ArrayRef<llvm::MCInst> Source = getSource(); in printResourcePressurePerIter() local 137 const unsigned Executions = LastInstructionIdx / Source.size() + 1; in printResourcePressurePerIter() 139 double Usage = ResourceUsage[I + Source.size() * E]; in printResourcePressurePerIter() 157 ArrayRef<llvm::MCInst> Source = getSource(); in printResourcePressurePerInst() local 158 const unsigned Executions = LastInstructionIdx / Source.size() + 1; in printResourcePressurePerInst() 159 for (const MCInst &MCI : Source) { in printResourcePressurePerInst() 181 ArrayRef<llvm::MCInst> Source = getSource(); in toJSON() local [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | DefineInline.cpp | 248 auto *SourceTempl = Source->getDescribedFunctionTemplate(); in renameParameters() 260 assert(Dest->param_size() == Source->param_size()); in renameParameters() 262 HandleParam(Dest->getParamDecl(I), Source->getParamDecl(I)); in renameParameters() 403 Source = getSelectedFunction(SelNode); in prepare() 404 if (!Source || !Source->hasBody()) in prepare() 409 if (auto *MD = llvm::dyn_cast<CXXMethodDecl>(Source)) { in prepare() 415 if (Source->getBody()->getBeginLoc().isMacroID() || in prepare() 416 Source->getBody()->getEndLoc().isMacroID()) in prepare() 419 Target = findTarget(Source); in prepare() 420 if (Target == Source) { in prepare() [all …]
|
| /llvm-project-15.0.7/llvm/tools/llvm-cxxfilt/ |
| H A D | llvm-cxxfilt.cpp | 97 StringRef Source, in SplitStringDelims() argument 101 const auto Head = Source.begin(); in SplitStringDelims() 104 auto Start = std::find_if(Head, Source.end(), IsLegalChar); in SplitStringDelims() 106 OutFragments.push_back({"", Source.slice(0, Start - Head)}); in SplitStringDelims() 109 while (Start != Source.end()) { in SplitStringDelims() 110 Start = std::find_if(Start, Source.end(), IsLegalChar); in SplitStringDelims() 111 auto End = std::find_if_not(Start, Source.end(), IsLegalChar); in SplitStringDelims() 112 auto DEnd = std::find_if(End, Source.end(), IsLegalChar); in SplitStringDelims() 113 OutFragments.push_back({Source.slice(Start - Head, End - Head), in SplitStringDelims() 114 Source.slice(End - Head, DEnd - Head)}); in SplitStringDelims()
|
| /llvm-project-15.0.7/llvm/unittests/AsmParser/ |
| H A D | AsmParserTest.cpp | 24 StringRef Source = "; Empty module \n"; in TEST() local 26 auto Mod = parseAssemblyString(Source, Error, Ctx); in TEST() 37 StringRef Source = "; Empty module \n\1\2"; in TEST() local 40 EXPECT_DEATH(Mod = parseAssemblyString(Source.substr(0, Source.size() - 2), in TEST() 53 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); in TEST() 71 auto Mod = parseAssemblyString(Source, Error, Ctx); in TEST() 121 StringRef Source = in TEST() local 136 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); in TEST() 157 StringRef Source = in TEST() local 172 auto Mod = parseAssemblyString(Source, Error, Ctx, &Mapping); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Source.h | 69 SourceInfo(const Stmt *E) : Source(E) {} in SourceInfo() 70 SourceInfo(const Decl *D) : Source(D) {} in SourceInfo() 74 const Stmt *asStmt() const { return Source.dyn_cast<const Stmt *>(); } in asStmt() 75 const Decl *asDecl() const { return Source.dyn_cast<const Decl *>(); } in asDecl() 78 operator bool() const { return !Source.isNull(); } 81 llvm::PointerUnion<const Decl *, const Stmt *> Source;
|