Lines Matching defs:completion
907 /// A code completion consumer for the clang Sema that is responsible for
908 /// creating the completion suggestions when a user requests completion
915 /// The printing policy we use when printing declarations for our completion
920 CompletionResult::Completion completion;
933 return completion.GetUniqueKey() < o.completion.GetUniqueKey();
943 /// This also returns true for numbers because for completion we usually
956 /// the completion of the cmd line. 'unrelated' means here that the token
957 /// is not interested for the lldb completion API result.
963 // the current completion logic.
986 /// Attempts to merge the given completion from the given position into the
987 /// existing command. Returns the completion string that can be returned to
988 /// the lldb completion API.
990 StringRef completion) const {
992 // We rewrite the last token with the completion, so let's drop that
996 // would otherwise be added to the completion that already has the
997 // completion.
999 return existing_command.str() + completion.str();
1028 /// \name Code-completion filtering
1046 // CodeCompletionResult has been enhanced with more kinds of completion
1048 assert(false && "Unknown completion result type?");
1051 // completion suggestion with the existing code.
1056 /// Generate the completion strings for the given CodeCompletionResult.
1061 /// \return Returns std::nullopt if no completion should be provided for the
1067 // Handle the different completion kinds that come from the Sema.
1115 CompletionResult::Completion completion(CompletionSuggestion, Description,
1117 return {{completion, R.Priority}};
1128 request.AddCompletion(C.completion.GetCompletion(),
1129 C.completion.GetDescription(),
1130 C.completion.GetMode());
1133 /// \name Code-completion callbacks
1134 /// Process the finalized code-completion results.
1159 /// \param S the semantic-analyzer object for which code-completion is being
1187 // class uses to provide completion suggestions.
1197 // Start parsing the expression with our custom code completion consumer.
1223 // Clang wants to do completion on a real file known by Clang's file manager,
1274 // If we want to parse for code completion, we need to attach our code
1275 // completion consumer to the Sema and specify a completion position.
1277 // completion suggestions.
1282 // Lines and columns start at 1 in Clang, but code completion positions are