Lines Matching refs:Results
255 /// with the code-completion results.
259 /// the code-completion results.
262 /// \brief Allocator used to store globally cached code-completion results.
266 /// \brief Allocator used to store code completion results.
312 fprintf(stderr, "+++ %d completion results\n", CodeCompletionResultObjects);
317 delete [] Results;
328 fprintf(stderr, "--- %d completion results\n", CodeCompletionResultObjects);
490 //Only Clang results should be accepted, so we'll set all of the other
512 CaptureCompletionResults(AllocatedCXCodeCompleteResults &Results,
515 AllocatedResults(Results), CCTUInfo(Results.CodeCompletionAllocator),
521 CodeCompletionResult *Results,
526 = Results[I].CreateCodeCompletionString(S, getAllocator(),
530 R.CursorKind = Results[I].CursorKind;
632 AllocatedResults.Results = new CXCompletionResult [StoredResults.size()];
634 std::memcpy(AllocatedResults.Results, StoredResults.data(),
695 // Parse the resulting source file to find code-completion results.
696 AllocatedCXCodeCompleteResults *Results =
698 Results->Results = 0;
699 Results->NumResults = 0;
701 // Create a code-completion consumer to capture the results.
702 CaptureCompletionResults Capture(*Results, &TU);
710 *Results->Diag, Results->LangOpts, *Results->SourceMgr,
711 *Results->FileMgr, Results->Diagnostics,
712 Results->TemporaryBuffers);
717 // results are still active).
718 Results->CachedCompletionAllocator = AST->getCachedCompletionAllocator();
761 os << ", \"numRes\": " << Results->NumResults;
762 os << ", \"diags\": " << Results->Diagnostics.size();
794 CCAI->result = Results;
826 AllocatedCXCodeCompleteResults *Results
828 delete Results;
833 AllocatedCXCodeCompleteResults *Results
835 if (!Results)
838 return Results->Diagnostics.size();
844 AllocatedCXCodeCompleteResults *Results
846 if (!Results || Index >= Results->Diagnostics.size())
849 return new CXStoredDiagnostic(Results->Diagnostics[Index], Results->LangOpts);
854 AllocatedCXCodeCompleteResults *Results
856 if (!Results)
859 return Results->Contexts;
865 AllocatedCXCodeCompleteResults *Results =
867 if (!Results)
871 *IsIncomplete = Results->ContainerIsIncomplete;
874 return Results->ContainerKind;
878 AllocatedCXCodeCompleteResults *Results =
880 if (!Results)
883 return createCXString(clang_getCString(Results->ContainerUSR));
888 AllocatedCXCodeCompleteResults *Results =
890 if (!Results)
893 return createCXString(Results->Selector);
971 void clang_sortCodeCompletionResults(CXCompletionResult *Results,
973 std::stable_sort(Results, Results + NumResults, OrderCompletionResults());