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