Lines Matching full:results

276   /// with the code-completion results.
280 /// the code-completion results.
283 /// \brief Allocator used to store globally cached code-completion results.
287 /// \brief Allocator used to store code completion results.
332 fprintf(stderr, "+++ %u completion results\n", in AllocatedCXCodeCompleteResults()
338 delete [] Results; in ~AllocatedCXCodeCompleteResults()
346 fprintf(stderr, "--- %u completion results\n", in ~AllocatedCXCodeCompleteResults()
508 //Only Clang results should be accepted, so we'll set all of the other in getContextsForContextKind()
531 AllocatedCXCodeCompleteResults &Results, in CaptureCompletionResults() argument
534 AllocatedResults(Results), CCTUInfo(Results.CodeCompletionAllocator), in CaptureCompletionResults()
540 CodeCompletionResult *Results, in ProcessCodeCompleteResults() argument
545 = Results[I].CreateCodeCompletionString(S, Context, getAllocator(), in ProcessCodeCompleteResults()
550 R.CursorKind = Results[I].CursorKind; in ProcessCodeCompleteResults()
640 AllocatedResults.Results = new CXCompletionResult [StoredResults.size()]; in Finish()
642 std::memcpy(AllocatedResults.Results, StoredResults.data(), in Finish()
692 // Parse the resulting source file to find code-completion results. in clang_codeCompleteAt_Impl()
693 AllocatedCXCodeCompleteResults *Results = new AllocatedCXCodeCompleteResults( in clang_codeCompleteAt_Impl() local
695 Results->Results = nullptr; in clang_codeCompleteAt_Impl()
696 Results->NumResults = 0; in clang_codeCompleteAt_Impl()
698 // Create a code-completion consumer to capture the results. in clang_codeCompleteAt_Impl()
701 CaptureCompletionResults Capture(Opts, *Results, &TU); in clang_codeCompleteAt_Impl()
708 CXXIdx->getPCHContainerOperations(), *Results->Diag, in clang_codeCompleteAt_Impl()
709 Results->LangOpts, *Results->SourceMgr, *Results->FileMgr, in clang_codeCompleteAt_Impl()
710 Results->Diagnostics, Results->TemporaryBuffers); in clang_codeCompleteAt_Impl()
712 Results->DiagnosticsWrappers.resize(Results->Diagnostics.size()); in clang_codeCompleteAt_Impl()
717 // results are still active). in clang_codeCompleteAt_Impl()
718 Results->CachedCompletionAllocator = AST->getCachedCompletionAllocator(); in clang_codeCompleteAt_Impl()
761 os << ", \"numRes\": " << Results->NumResults; in clang_codeCompleteAt_Impl()
762 os << ", \"diags\": " << Results->Diagnostics.size(); in clang_codeCompleteAt_Impl()
794 return Results; in clang_codeCompleteAt_Impl()
845 AllocatedCXCodeCompleteResults *Results in clang_disposeCodeCompleteResults() local
847 delete Results; in clang_disposeCodeCompleteResults()
852 AllocatedCXCodeCompleteResults *Results in clang_codeCompleteGetNumDiagnostics() local
854 if (!Results) in clang_codeCompleteGetNumDiagnostics()
857 return Results->Diagnostics.size(); in clang_codeCompleteGetNumDiagnostics()
863 AllocatedCXCodeCompleteResults *Results in clang_codeCompleteGetDiagnostic() local
865 if (!Results || Index >= Results->Diagnostics.size()) in clang_codeCompleteGetDiagnostic()
868 CXStoredDiagnostic *Diag = Results->DiagnosticsWrappers[Index]; in clang_codeCompleteGetDiagnostic()
870 Results->DiagnosticsWrappers[Index] = Diag = in clang_codeCompleteGetDiagnostic()
871 new CXStoredDiagnostic(Results->Diagnostics[Index], Results->LangOpts); in clang_codeCompleteGetDiagnostic()
877 AllocatedCXCodeCompleteResults *Results in clang_codeCompleteGetContexts() local
879 if (!Results) in clang_codeCompleteGetContexts()
882 return Results->Contexts; in clang_codeCompleteGetContexts()
888 AllocatedCXCodeCompleteResults *Results = in clang_codeCompleteGetContainerKind() local
890 if (!Results) in clang_codeCompleteGetContainerKind()
894 *IsIncomplete = Results->ContainerIsIncomplete; in clang_codeCompleteGetContainerKind()
897 return Results->ContainerKind; in clang_codeCompleteGetContainerKind()
901 AllocatedCXCodeCompleteResults *Results = in clang_codeCompleteGetContainerUSR() local
903 if (!Results) in clang_codeCompleteGetContainerUSR()
906 return cxstring::createRef(Results->ContainerUSR.c_str()); in clang_codeCompleteGetContainerUSR()
911 AllocatedCXCodeCompleteResults *Results = in clang_codeCompleteGetObjCSelector() local
913 if (!Results) in clang_codeCompleteGetObjCSelector()
916 return cxstring::createDup(Results->Selector); in clang_codeCompleteGetObjCSelector()
994 void clang_sortCodeCompletionResults(CXCompletionResult *Results, in clang_sortCodeCompletionResults() argument
996 std::stable_sort(Results, Results + NumResults, OrderCompletionResults()); in clang_sortCodeCompletionResults()