1//==--- DiagnosticRefactoringKinds.td - refactoring diagnostics -----------===// 2// 3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4// See https://llvm.org/LICENSE.txt for license information. 5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6// 7//===----------------------------------------------------------------------===// 8 9//===----------------------------------------------------------------------===// 10// Refactoring Diagnostics 11//===----------------------------------------------------------------------===// 12 13let Component = "Refactoring" in { 14 15let CategoryName = "Refactoring Invocation Issue" in { 16 17def err_refactor_no_selection : Error<"refactoring action can't be initiated " 18 "without a selection">; 19def err_refactor_selection_no_symbol : Error<"there is no symbol at the given " 20 "location">; 21def err_refactor_selection_invalid_ast : Error<"the provided selection does " 22 "not overlap with the AST nodes of interest">; 23 24def err_refactor_code_outside_of_function : Error<"the selected code is not a " 25 "part of a function's / method's body">; 26def err_refactor_extract_simple_expression : Error<"the selected expression " 27 "is too simple to extract">; 28def err_refactor_extract_prohibited_expression : Error<"the selected " 29 "expression can't be extracted">; 30 31} 32 33} // end of Refactoring diagnostics 34