Home
last modified time | relevance | path

Searched refs:CodeAction (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
H A DDumpAST.cpp49 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
95 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
121 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
157 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
H A DObjCLocalizeStringLiteral.cpp34 return CodeAction::REFACTOR_KIND; in kind()
H A DSwapIfBranches.cpp39 return CodeAction::REFACTOR_KIND; in kind()
H A DRawStringLiteral.cpp38 return CodeAction::REFACTOR_KIND; in kind()
H A DAnnotateHighlightings.cpp33 return CodeAction::REFACTOR_KIND; in kind()
H A DSpecialMembers.cpp88 return CodeAction::REFACTOR_KIND; in kind()
H A DExpandDeducedType.cpp43 return CodeAction::REFACTOR_KIND; in kind()
H A DExpandMacro.cpp35 return CodeAction::REFACTOR_KIND; in kind()
H A DPopulateSwitch.cpp56 return CodeAction::QUICKFIX_KIND; in kind()
H A DRemoveUsingNamespace.cpp43 return CodeAction::REFACTOR_KIND; in kind()
H A DMemberwiseConstructor.cpp37 return CodeAction::REFACTOR_KIND; in kind()
H A DScopifyEnum.cpp54 return CodeAction::REFACTOR_KIND; in kind()
H A DObjCMemberwiseInitializer.cpp176 return CodeAction::REFACTOR_KIND; in kind()
H A DAddUsing.cpp56 return CodeAction::REFACTOR_KIND; in kind()
H A DDefineInline.cpp390 return CodeAction::REFACTOR_KIND; in kind()
H A DExtractVariable.cpp582 return CodeAction::REFACTOR_KIND;
H A DDefineOutline.cpp424 return CodeAction::REFACTOR_KIND; in prepare()
/llvm-project/mlir/lib/Tools/mlir-lsp-server/
H A DLSPServer.cpp145 {CodeAction::kQuickFix, CodeAction::kRefactor, in onInitialize()
146 CodeAction::kInfo}}} in onInitialize()
262 std::vector<CodeAction> actions; in onCodeAction()
263 if (isKindAllowed(CodeAction::kQuickFix)) in onCodeAction()
H A DMLIRServer.h21 struct CodeAction;
78 std::vector<CodeAction> &actions);
H A DMLIRServer.cpp1021 std::vector<lsp::CodeAction> &actions);
1182 std::vector<lsp::CodeAction> &actions) { in getCodeActions()
1191 lsp::CodeAction action; in getCodeActions()
1193 action.kind = lsp::CodeAction::kQuickFix.str(); in getCodeActions()
1343 std::vector<CodeAction> &actions) { in getCodeActions()
/llvm-project/clang-tools-extra/clangd/
H A DClangdLSPServer.cpp80 CodeAction toCodeAction(const ClangdServer::CodeActionResult::Rename &R, in toCodeAction()
82 CodeAction CA; in toCodeAction()
84 CA.kind = std::string(CodeAction::REFACTOR_KIND); in toCodeAction()
98 CodeAction toCodeAction(const ClangdServer::TweakRef &T, const URIForFile &File, in toCodeAction()
100 CodeAction CA; in toCodeAction()
119 /// Convert from Fix to LSP CodeAction. in toCodeAction()
120 CodeAction toCodeAction(const Fix &F, const URIForFile &File, in toCodeAction()
124 CodeAction Action; in toCodeAction()
126 Action.kind = std::string(CodeAction::QUICKFIX_KIND); in toCodeAction()
674 {CodeAction in onInitialize()
[all...]
H A DProtocol.cpp421 if (auto *CodeAction = TextDocument->getObject("codeAction")) { in fromJSON() local
422 if (CodeAction->getObject("codeActionLiteralSupport")) in fromJSON()
908 const llvm::StringLiteral CodeAction::QUICKFIX_KIND = "quickfix"; in toJSON()
909 const llvm::StringLiteral CodeAction::REFACTOR_KIND = "refactor"; in toJSON()
910 const llvm::StringLiteral CodeAction::INFO_KIND = "info"; in toJSON()
912 llvm::json::Value toJSON(const CodeAction &CA) { in toJSON()
913 auto CodeAction = llvm::json::Object{{"title", CA.title}}; in toJSON()
915 CodeAction["kind"] = *CA.kind; in toJSON()
917 CodeAction["diagnostics"] = llvm::json::Array(*CA.diagnostics); in toJSON()
919 CodeAction["isPreferre in toJSON()
[all...]
H A DProtocol.h517 /// Client supports CodeAction return value for textDocument/codeAction.
919 struct CodeAction;
957 std::optional<std::vector<CodeAction>> codeActions;
1064 /// A CodeAction must set either `edit` and/or a `command`. If both are
1066 struct CodeAction {
1094 llvm::json::Value toJSON(const CodeAction &);
1063 struct CodeAction { global() struct
1065 titleCodeAction global() argument
1091 commandCodeAction global() argument
/llvm-project/mlir/lib/Tools/lsp-server-support/
H A DProtocol.cpp1028 const llvm::StringLiteral CodeAction::kQuickFix = "quickfix";
1029 const llvm::StringLiteral CodeAction::kRefactor = "refactor";
1030 const llvm::StringLiteral CodeAction::kInfo = "info";
1032 llvm::json::Value mlir::lsp::toJSON(const CodeAction &value) { in toJSON()
/llvm-project/mlir/include/mlir/Tools/lsp-server-support/
H A DProtocol.h1209 struct CodeAction { struct
1235 llvm::json::Value toJSON(const CodeAction &); argument

12