DiagnosticRefactoringKinds.td 1.3 KB

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