]> granicus.if.org Git - clang/commitdiff
Move static analyzer core diagnostics to common.
authorRichard Trieu <rtrieu@google.com>
Sat, 15 Dec 2018 02:30:16 +0000 (02:30 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 15 Dec 2018 02:30:16 +0000 (02:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349230 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Basic/DiagnosticCommonKinds.td
include/clang/Basic/DiagnosticFrontendKinds.td
lib/StaticAnalyzer/Core/CheckerRegistry.cpp

index 5a3378c869c9afc5f748389f49b11492578327f0..34ce489e50b206ea0f1edf8b03456f8ec45bdaa1 100644 (file)
@@ -290,4 +290,10 @@ def err_openclcxx_not_supported : Error<
 // OpenMP
 def err_omp_more_one_clause : Error<
   "directive '#pragma omp %0' cannot contain more than one '%1' clause%select{| with '%3' name modifier| with 'source' dependence}2">;
+
+// Static Analyzer Core
+def err_unknown_analyzer_checker : Error<
+    "no analyzer checkers are associated with '%0'">;
+def note_suggest_disabling_all_checkers : Note<
+    "use -analyzer-disable-all-checks to disable all static analyzer checkers">;
 }
index b2fcb9ca144041abdd2a80d8ee5b54e653046cc7..927b8cbc247749b0bff2ba01ffac2473729d1bb8 100644 (file)
@@ -160,11 +160,6 @@ def warn_unknown_warning_specifier : Warning<
     "unknown %0 warning specifier: '%1'">,
     InGroup<UnknownWarningOption>;
 
-def err_unknown_analyzer_checker : Error<
-    "no analyzer checkers are associated with '%0'">;
-def note_suggest_disabling_all_checkers : Note<
-    "use -analyzer-disable-all-checks to disable all static analyzer checkers">;
-
 def warn_incompatible_analyzer_plugin_api : Warning<
     "checker plugin '%0' is not compatible with this version of the analyzer">,
     InGroup<DiagGroup<"analyzer-incompatible-plugin"> >;
index 00475c04fdfb5b060ae7ec88dbeb576b7aa03870..e7dfac747973122ec1e6b2b220897ea1d3cebd2f 100644 (file)
@@ -10,7 +10,6 @@
 #include "clang/StaticAnalyzer/Core/CheckerRegistry.h"
 #include "clang/Basic/Diagnostic.h"
 #include "clang/Basic/LLVM.h"
-#include "clang/Frontend/FrontendDiagnostic.h"
 #include "clang/StaticAnalyzer/Core/CheckerManager.h"
 #include "clang/StaticAnalyzer/Core/AnalyzerOptions.h"
 #include "llvm/ADT/STLExtras.h"