1 //==--- DiagnosticRefactoringKinds.td - refactoring diagnostics -----------===//
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
7 //===----------------------------------------------------------------------===//
9 //===----------------------------------------------------------------------===//
10 // Refactoring Diagnostics
11 //===----------------------------------------------------------------------===//
13 let Component = "Refactoring" in {
15 let CategoryName = "Refactoring Invocation Issue" in {
17 def err_refactor_no_selection : Error<"refactoring action can't be initiated "
18 "without a selection">;
19 def err_refactor_selection_no_symbol : Error<"there is no symbol at the given "
21 def err_refactor_selection_invalid_ast : Error<"the provided selection does "
22 "not overlap with the AST nodes of interest">;
24 def err_refactor_code_outside_of_function : Error<"the selected code is not a "
25 "part of a function's / method's body">;
26 def err_refactor_extract_simple_expression : Error<"the selected expression "
27 "is too simple to extract">;
28 def err_refactor_extract_prohibited_expression : Error<"the selected "
29 "expression can't be extracted">;
33 } // end of Refactoring diagnostics