[refactor] allow the use of refactoring diagnostics
authorAlex Lorenz <arphaman@gmail.com>
Mon, 16 Oct 2017 18:28:26 +0000 (18:28 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Mon, 16 Oct 2017 18:28:26 +0000 (18:28 +0000)
commitf5ca27cc3785b3a2bf9dd3c005f3aa6a2d14fb93
treee0d6662c56210c40468176f4a6cf6464da760592
parent528435002ace8d5b1752cc97ece76687689f9bc6
[refactor] allow the use of refactoring diagnostics

This commit allows the refactoring library to use its own set of
refactoring-specific diagnostics to reports things like initiation errors.

Differential Revision: https://reviews.llvm.org/D38772

llvm-svn: 315924
18 files changed:
clang/include/clang/Basic/AllDiagnostics.h
clang/include/clang/Basic/CMakeLists.txt
clang/include/clang/Basic/Diagnostic.td
clang/include/clang/Basic/DiagnosticIDs.h
clang/include/clang/Basic/DiagnosticRefactoringKinds.td [new file with mode: 0644]
clang/include/clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h
clang/include/clang/Tooling/Refactoring/RefactoringDiagnostic.h [new file with mode: 0644]
clang/include/clang/Tooling/Refactoring/RefactoringRuleContext.h
clang/include/clang/module.modulemap
clang/lib/Basic/DiagnosticIDs.cpp
clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp
clang/test/Refactor/LocalRename/NoSymbolSelectedError.cpp [new file with mode: 0644]
clang/tools/clang-refactor/ClangRefactor.cpp
clang/tools/clang-refactor/TestSupport.cpp
clang/tools/clang-refactor/TestSupport.h
clang/tools/clang-refactor/ToolRefactoringResultConsumer.h [new file with mode: 0644]
clang/tools/diagtool/DiagnosticNames.cpp
clang/unittests/Tooling/RefactoringActionRulesTest.cpp