1 //==--- DiagnosticRefactoringKinds.td - refactoring diagnostics -----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 //===----------------------------------------------------------------------===//
11 // Refactoring Diagnostics
12 //===----------------------------------------------------------------------===//
14 let Component = "Refactoring" in {
16 let CategoryName = "Refactoring Invocation Issue" in {
18 def err_refactor_no_selection : Error<"refactoring action can't be initiated "
19 "without a selection">;
20 def err_refactor_selection_no_symbol : Error<"there is no symbol at the given "
22 def err_refactor_selection_invalid_ast : Error<"the provided selection does "
23 "not overlap with the AST nodes of interest">;
25 def err_refactor_code_outside_of_function : Error<"the selected code is not a "
26 "part of a function's / method's body">;
27 def err_refactor_extract_simple_expression : Error<"the selected expression "
28 "is too simple to extract">;
29 def err_refactor_extract_prohibited_expression : Error<"the selected "
30 "expression can't be extracted">;
34 } // end of Refactoring diagnostics