/external/llvm-project/clang-tools-extra/clangd/unittests/ |
D | DexTests.cpp | 482 FuzzyFindRequest Req; in TEST() local 483 Req.Query = "ABC"; in TEST() 484 Req.Scopes = {"ns::"}; in TEST() 485 EXPECT_THAT(match(*Index, Req), UnorderedElementsAre("ns::ABC")); in TEST() 486 Req.Scopes = {"ns::", "ns::nested::"}; in TEST() 487 EXPECT_THAT(match(*Index, Req), in TEST() 489 Req.Query = "A"; in TEST() 490 Req.Scopes = {"other::"}; in TEST() 491 EXPECT_THAT(match(*Index, Req), in TEST() 493 Req.Query = ""; in TEST() [all …]
|
D | IndexTests.cpp | 127 FuzzyFindRequest Req; in TEST() local 128 Req.Query = "2"; in TEST() 129 Req.AnyScope = true; in TEST() 131 EXPECT_THAT(match(I, Req), ElementsAre("2")); in TEST() 137 FuzzyFindRequest Req; in TEST() local 138 Req.Query = "5"; in TEST() 139 Req.AnyScope = true; in TEST() 140 Req.Limit = 3; in TEST() 142 auto Matches = match(*I, Req, &Incomplete); in TEST() 143 EXPECT_TRUE(Req.Limit); in TEST() [all …]
|
D | ProjectAwareIndexTests.cpp | 41 FuzzyFindRequest Req; in TEST() local 42 Req.Query = "1"; in TEST() 43 Req.AnyScope = true; in TEST() 45 EXPECT_THAT(match(*Idx, Req), IsEmpty()); in TEST() 51 EXPECT_THAT(match(*Idx, Req), ElementsAre("1")); in TEST() 65 FuzzyFindRequest Req; in TEST() local 66 Req.Query = "1"; in TEST() 67 Req.AnyScope = true; in TEST() 70 match(*Idx, Req); in TEST() 77 match(*Idx, Req); in TEST() [all …]
|
D | SyncAPI.cpp | 125 FuzzyFindRequest Req; in runFuzzyFind() local 126 Req.Query = std::string(Query); in runFuzzyFind() 127 Req.AnyScope = true; in runFuzzyFind() 128 return runFuzzyFind(Index, Req); in runFuzzyFind() 131 SymbolSlab runFuzzyFind(const SymbolIndex &Index, const FuzzyFindRequest &Req) { in runFuzzyFind() argument 133 Index.fuzzyFind(Req, [&](const Symbol &Sym) { Builder.insert(Sym); }); in runFuzzyFind() 138 RefsRequest Req; in getRefs() local 139 Req.IDs = {ID}; in getRefs() 141 Index.refs(Req, [&](const Ref &S) { Slab.insert(ID, S); }); in getRefs()
|
D | FileIndexTests.cpp | 191 FuzzyFindRequest Req; in TEST() local 192 Req.Query = ""; in TEST() 193 Req.Scopes = {"ns::"}; in TEST() 194 EXPECT_THAT(runFuzzyFind(M, Req), in TEST() 212 FuzzyFindRequest Req; in TEST() local 213 Req.Scopes = {"ns::"}; in TEST() 215 runFuzzyFind(M, Req), in TEST() 325 FuzzyFindRequest Req; in TEST() local 326 Req.Query = ""; in TEST() 327 Req.Scopes = {"", "ns_in_header::"}; in TEST() [all …]
|
/external/rust/crates/grpcio/src/ |
D | client.rs | 34 pub fn unary_call<Req, Resp>( in unary_call() argument 36 method: &Method<Req, Resp>, in unary_call() argument 37 req: &Req, in unary_call() argument 44 pub fn unary_call_async<Req, Resp>( in unary_call_async() argument 46 method: &Method<Req, Resp>, in unary_call_async() argument 47 req: &Req, in unary_call_async() argument 56 pub fn client_streaming<Req, Resp>( in client_streaming() argument 58 method: &Method<Req, Resp>, in client_streaming() argument 60 ) -> Result<(ClientCStreamSender<Req>, ClientCStreamReceiver<Resp>)> { in client_streaming() argument 67 pub fn server_streaming<Req, Resp>( in server_streaming() argument [all …]
|
D | server.rs | 181 pub fn add_unary_handler<Req, Resp, F>( in add_unary_handler() argument 183 method: &Method<Req, Resp>, in add_unary_handler() argument 187 Req: 'static, in add_unary_handler() 189 F: FnMut(RpcContext<'_>, Req, UnarySink<Resp>) + Send + Clone + 'static, in add_unary_handler() 201 pub fn add_client_streaming_handler<Req, Resp, F>( in add_client_streaming_handler() argument 203 method: &Method<Req, Resp>, in add_client_streaming_handler() argument 207 Req: 'static, in add_client_streaming_handler() 209 F: FnMut(RpcContext<'_>, RequestStream<Req>, ClientStreamingSink<Resp>) in add_client_streaming_handler() argument 224 pub fn add_server_streaming_handler<Req, Resp, F>( in add_server_streaming_handler() argument 226 method: &Method<Req, Resp>, in add_server_streaming_handler() argument [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/ |
D | MemIndex.cpp | 29 const FuzzyFindRequest &Req, in fuzzyFind() argument 31 assert(!StringRef(Req.Query).contains("::") && in fuzzyFind() 36 Req.Limit ? *Req.Limit : std::numeric_limits<size_t>::max()); in fuzzyFind() 37 FuzzyMatcher Filter(Req.Query); in fuzzyFind() 43 if (!Req.AnyScope && !llvm::is_contained(Req.Scopes, Sym->Scope)) in fuzzyFind() 45 if (Req.RestrictForCodeCompletion && in fuzzyFind() 60 void MemIndex::lookup(const LookupRequest &Req, in lookup() argument 63 for (const auto &ID : Req.IDs) { in lookup() 70 bool MemIndex::refs(const RefsRequest &Req, in refs() argument 74 Req.Limit.getValueOr(std::numeric_limits<uint32_t>::max()); in refs() [all …]
|
D | Index.h | 51 bool operator==(const FuzzyFindRequest &Req) const { 54 std::tie(Req.Query, Req.Scopes, Req.Limit, 55 Req.RestrictForCodeCompletion, Req.ProximityPaths, 56 Req.PreferredTypes); 58 bool operator!=(const FuzzyFindRequest &Req) const { return !(*this == Req); } 96 fuzzyFind(const FuzzyFindRequest &Req, 103 lookup(const LookupRequest &Req, 113 virtual bool refs(const RefsRequest &Req, 120 const RelationsRequest &Req,
|
D | ProjectAware.cpp | 39 void lookup(const LookupRequest &Req, 43 bool refs(const RefsRequest &Req, 49 fuzzyFind(const FuzzyFindRequest &Req, 53 void relations(const RelationsRequest &Req, 82 const LookupRequest &Req, in lookup() argument 86 Idx->lookup(Req, Callback); in lookup() 90 const RefsRequest &Req, in refs() argument 94 return Idx->refs(Req, Callback); in refs() 99 const FuzzyFindRequest &Req, in fuzzyFind() argument 103 return Idx->fuzzyFind(Req, Callback); in fuzzyFind() [all …]
|
D | Merge.cpp | 31 const FuzzyFindRequest &Req, in fuzzyFind() argument 45 More |= Dynamic->fuzzyFind(Req, [&](const Symbol &S) { in fuzzyFind() 52 More |= Static->fuzzyFind(Req, [&](const Symbol &S) { in fuzzyFind() 71 const LookupRequest &Req, in lookup() argument 76 Dynamic->lookup(Req, [&](const Symbol &S) { B.insert(S); }); in lookup() 78 auto RemainingIDs = Req.IDs; in lookup() 79 Static->lookup(Req, [&](const Symbol &S) { in lookup() 92 bool MergedIndex::refs(const RefsRequest &Req, in refs() argument 97 Req.Limit.getValueOr(std::numeric_limits<uint32_t>::max()); in refs() 107 More |= Dynamic->refs(Req, [&](const Ref &O) { in refs() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/dex/ |
D | Dex.cpp | 188 bool Dex::fuzzyFind(const FuzzyFindRequest &Req, in fuzzyFind() argument 190 assert(!StringRef(Req.Query).contains("::") && in fuzzyFind() 193 FuzzyMatcher Filter(Req.Query); in fuzzyFind() 196 bool More = !Req.Query.empty() && Req.Query.size() < 3; in fuzzyFind() 199 const auto TrigramTokens = generateQueryTrigrams(Req.Query); in fuzzyFind() 210 for (const auto &Scope : Req.Scopes) in fuzzyFind() 212 if (Req.AnyScope) in fuzzyFind() 218 Criteria.push_back(createFileProximityIterator(Req.ProximityPaths)); in fuzzyFind() 220 Criteria.push_back(createTypeBoostingIterator(Req.PreferredTypes)); in fuzzyFind() 222 if (Req.RestrictForCodeCompletion) in fuzzyFind() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
D | MPIChecker.cpp | 41 const Request *const Req = State->get<RequestMap>(MR); in checkDoubleNonblocking() local 44 if (Req && Req->CurrentState == Request::State::Nonblocking) { in checkDoubleNonblocking() 46 BReporter.reportDoubleNonblocking(PreCallEvent, *Req, MR, ErrorNode, Ctx.getBugReporter()); in checkDoubleNonblocking() 80 const Request *const Req = State->get<RequestMap>(ReqRegion); in checkUnmatchedWaits() local 82 if (!Req) { in checkUnmatchedWaits() 113 for (const auto &Req : ReqMap) { in checkMissingWaits() local 114 if (!SymReaper.isLiveRegion(Req.first)) { in checkMissingWaits() 115 if (Req.second.CurrentState == Request::State::Nonblocking) { in checkMissingWaits() 121 BReporter.reportMissingWait(Req.second, Req.first, ErrorNode, Ctx.getBugReporter()); in checkMissingWaits() 123 State = State->remove<RequestMap>(Req.first); in checkMissingWaits()
|
D | MPIBugReporter.cpp | 25 const CallEvent &MPICallEvent, const ento::mpi::Request &Req, in reportDoubleNonblocking() argument 51 const ento::mpi::Request &Req, const MemRegion *const RequestRegion, in reportMissingWait() argument 95 const Request *const Req = N->getState()->get<RequestMap>(RequestRegion); in VisitNode() local 100 if ((Req && !PrevReq) || (Req->CurrentState != PrevReq->CurrentState)) { in VisitNode()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/ |
D | MPIChecker.cpp | 41 const Request *const Req = State->get<RequestMap>(MR); in checkDoubleNonblocking() local 44 if (Req && Req->CurrentState == Request::State::Nonblocking) { in checkDoubleNonblocking() 46 BReporter.reportDoubleNonblocking(PreCallEvent, *Req, MR, ErrorNode, in checkDoubleNonblocking() 81 const Request *const Req = State->get<RequestMap>(ReqRegion); in checkUnmatchedWaits() local 83 if (!Req) { in checkUnmatchedWaits() 112 for (const auto &Req : ReqMap) { in checkMissingWaits() local 113 if (!SymReaper.isLiveRegion(Req.first)) { in checkMissingWaits() 114 if (Req.second.CurrentState == Request::State::Nonblocking) { in checkMissingWaits() 120 BReporter.reportMissingWait(Req.second, Req.first, ErrorNode, in checkMissingWaits() 123 State = State->remove<RequestMap>(Req.first); in checkMissingWaits()
|
D | MPIBugReporter.cpp | 24 const CallEvent &MPICallEvent, const ento::mpi::Request &Req, in reportDoubleNonblocking() argument 50 const ento::mpi::Request &Req, const MemRegion *const RequestRegion, in reportMissingWait() argument 95 const Request *const Req = N->getState()->get<RequestMap>(RequestRegion); in VisitNode() local 96 assert(Req && "The region must be tracked and alive, given that we've " in VisitNode() 102 if (!PrevReq || (Req->CurrentState != PrevReq->CurrentState)) { in VisitNode()
|
/external/rust/crates/grpcio/src/call/ |
D | client.rs | 105 pub fn unary_async<Req, Resp>( in unary_async() argument 107 method: &Method<Req, Resp>, in unary_async() argument 108 req: &Req, in unary_async() argument 130 pub fn client_streaming<Req, Resp>( in client_streaming() argument 132 method: &Method<Req, Resp>, in client_streaming() argument 134 ) -> Result<(ClientCStreamSender<Req>, ClientCStreamReceiver<Resp>)> { in client_streaming() argument 158 pub fn server_streaming<Req, Resp>( in server_streaming() argument 160 method: &Method<Req, Resp>, in server_streaming() argument 161 req: &Req, in server_streaming() argument 189 pub fn duplex_streaming<Req, Resp>( in duplex_streaming() argument [all …]
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaConcept.cpp | 399 concepts::ExprRequirement *Req, in diagnoseUnsatisfiedRequirement() argument 401 assert(!Req->isSatisfied() in diagnoseUnsatisfiedRequirement() 403 switch (Req->getSatisfactionStatus()) { in diagnoseUnsatisfiedRequirement() 408 auto *SubstDiag = Req->getExprSubstitutionDiagnostic(); in diagnoseUnsatisfiedRequirement() 421 S.Diag(Req->getNoexceptLoc(), in diagnoseUnsatisfiedRequirement() 423 << (int)First << Req->getExpr(); in diagnoseUnsatisfiedRequirement() 427 Req->getReturnTypeRequirement().getSubstitutionDiagnostic(); in diagnoseUnsatisfiedRequirement() 441 Req->getReturnTypeRequirementSubstitutedConstraintExpr(); in diagnoseUnsatisfiedRequirement() 447 << (int)First << S.BuildDecltypeType(Req->getExpr(), in diagnoseUnsatisfiedRequirement() 448 Req->getExpr()->getBeginLoc()) in diagnoseUnsatisfiedRequirement() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | FileCheck.cpp | 310 SourceMgr &SM, const FileCheckRequest &Req) { in parsePattern() argument 311 bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot; in parsePattern() 312 IgnoreCase = Req.IgnoreCase; in parsePattern() 316 if (!(Req.NoCanonicalizeWhiteSpace && Req.MatchFullLines)) in parsePattern() 352 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern() 574 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern() 898 if (Req.NoCanonicalizeWhiteSpace || (*Ptr != ' ' && *Ptr != '\t')) { in CanonicalizeFile() 1111 FileCheck::FileCheck(FileCheckRequest Req) in FileCheck() argument 1112 : Req(Req), PatternContext(std::make_unique<FileCheckPatternContext>()), in FileCheck() 1120 PatternContext->defineCmdlineVariables(Req.GlobalDefines, SM); in readCheckFile() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/remote/server/ |
D | Server.cpp | 106 auto Req = ProtobufMarshaller->fromProtobuf(Request); in Lookup() local 107 if (!Req) { in Lookup() 108 elog("Can not parse LookupRequest from protobuf: {0}", Req.takeError()); in Lookup() 113 Index.lookup(*Req, [&](const clangd::Symbol &Item) { in Lookup() 144 auto Req = ProtobufMarshaller->fromProtobuf(Request); in FuzzyFind() local 145 if (!Req) { in FuzzyFind() 147 Req.takeError()); in FuzzyFind() 152 bool HasMore = Index.fuzzyFind(*Req, [&](const clangd::Symbol &Item) { in FuzzyFind() 182 auto Req = ProtobufMarshaller->fromProtobuf(Request); in Refs() local 183 if (!Req) { in Refs() [all …]
|
/external/llvm-project/clang-tools-extra/clangd/ |
D | FindSymbols.cpp | 99 FuzzyFindRequest Req; in getWorkspaceSymbols() local 100 Req.Query = std::string(Names.second); in getWorkspaceSymbols() 105 Req.AnyScope = !HasLeadingColons; in getWorkspaceSymbols() 108 Req.Scopes = {std::string(Names.first)}; in getWorkspaceSymbols() 110 Req.Limit = Limit; in getWorkspaceSymbols() 113 if (Req.AnyScope && !Req.Scopes.empty()) in getWorkspaceSymbols() 114 *Req.Limit *= 5; in getWorkspaceSymbols() 117 Req.Limit ? *Req.Limit : std::numeric_limits<size_t>::max()); in getWorkspaceSymbols() 118 FuzzyMatcher Filter(Req.Query); in getWorkspaceSymbols() 120 Index->fuzzyFind(Req, [HintPath, &Top, &Filter, AnyScope = Req.AnyScope, in getWorkspaceSymbols()
|
D | IncludeFixer.cpp | 395 FuzzyFindRequest Req; in fixUnresolvedName() local 396 Req.AnyScope = false; in fixUnresolvedName() 397 Req.Query = Unresolved.Name; in fixUnresolvedName() 398 Req.Scopes = Unresolved.Scopes; in fixUnresolvedName() 399 Req.RestrictForCodeCompletion = true; in fixUnresolvedName() 400 Req.Limit = 100; in fixUnresolvedName() 402 if (llvm::Optional<const SymbolSlab *> Syms = fuzzyFindCached(Req)) in fixUnresolvedName() 409 IncludeFixer::fuzzyFindCached(const FuzzyFindRequest &Req) const { in fuzzyFindCached() 410 auto ReqStr = llvm::formatv("{0}", toJSON(Req)).str(); in fuzzyFindCached() 420 Index.fuzzyFind(Req, [&](const Symbol &Sym) { in fuzzyFindCached() [all …]
|
/external/llvm-project/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 513 static void DumpAnnotatedInput(raw_ostream &OS, const FileCheckRequest &Req, in DumpAnnotatedInput() argument 635 if (Req.Verbose && TheColorMode == ColorMode::Enable) { in DumpAnnotatedInput() 650 if (Req.Verbose) in DumpAnnotatedInput() 747 FileCheckRequest Req; in main() local 749 Req.CheckPrefixes.push_back(Prefix); in main() 752 Req.CommentPrefixes.push_back(Prefix); in main() 755 Req.ImplicitCheckNot.push_back(CheckNot); in main() 772 Req.GlobalDefines.push_back(G); in main() 777 Req.AllowEmptyInput = AllowEmptyInput; in main() 778 Req.AllowUnusedPrefixes = AllowUnusedPrefixes; in main() [all …]
|
/external/llvm-project/llvm/lib/FileCheck/ |
D | FileCheck.cpp | 888 SourceMgr &SM, const FileCheckRequest &Req) { in parsePattern() argument 889 bool MatchFullLinesHere = Req.MatchFullLines && CheckTy != Check::CheckNot; in parsePattern() 890 IgnoreCase = Req.IgnoreCase; in parsePattern() 894 if (!(Req.NoCanonicalizeWhiteSpace && Req.MatchFullLines)) in parsePattern() 930 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern() 1153 if (!Req.NoCanonicalizeWhiteSpace) in parsePattern() 1550 if (Req.NoCanonicalizeWhiteSpace || (*Ptr != ' ' && *Ptr != '\t')) { in CanonicalizeFile() 1624 FindCheckType(const FileCheckRequest &Req, StringRef Buffer, StringRef Prefix) { in FindCheckType() argument 1633 if (llvm::is_contained(Req.CommentPrefixes, Prefix)) { in FindCheckType() 1718 FindFirstMatchingPrefix(const FileCheckRequest &Req, Regex &PrefixRE, in FindFirstMatchingPrefix() argument [all …]
|
/external/llvm-project/clang-tools-extra/clangd/index/remote/marshalling/ |
D | Marshalling.cpp | 80 clangd::LookupRequest Req; in fromProtobuf() local 84 Req.IDs = std::move(*IDs); in fromProtobuf() 85 return Req; in fromProtobuf() 114 clangd::RefsRequest Req; in fromProtobuf() local 118 Req.IDs = std::move(*IDs); in fromProtobuf() 120 Req.Filter = static_cast<clangd::RefKind>(Message->filter()); in fromProtobuf() 122 Req.Filter = clangd::RefKind::All; in fromProtobuf() 124 Req.Limit = Message->limit(); in fromProtobuf() 125 return Req; in fromProtobuf() 130 clangd::RelationsRequest Req; in fromProtobuf() local [all …]
|