summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-09 00:07:27 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-09 00:07:27 +0000
commitb613dfadcbfda86c0e681038269ebac0829fc1e5 (patch)
tree37acc19bc5b1a41343bf85d9228521580a5c3901
parent77e82d1ebd3cef78fb4a50a246356b188167a60e (diff)
downloadbcm5719-llvm-b613dfadcbfda86c0e681038269ebac0829fc1e5.tar.gz
bcm5719-llvm-b613dfadcbfda86c0e681038269ebac0829fc1e5.zip
Put some diagnostics in DiagnosticCommonKinds.td in a category, mirroring what they are in other .td files.
I really dislike the copy-pasting of the category strings. If there is a better way to do this with TableGen, please advise. llvm-svn: 181494
-rw-r--r--clang/include/clang/Basic/DiagnosticCommonKinds.td10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/include/clang/Basic/DiagnosticCommonKinds.td b/clang/include/clang/Basic/DiagnosticCommonKinds.td
index 7ff6ae13b4e..775d40fed16 100644
--- a/clang/include/clang/Basic/DiagnosticCommonKinds.td
+++ b/clang/include/clang/Basic/DiagnosticCommonKinds.td
@@ -37,6 +37,9 @@ def note_possibility : Note<"one possibility">;
def note_also_found : Note<"also found">;
// Parse && Lex
+
+let CategoryName = "Lexical or Preprocessor Issue" in {
+
def err_expected_colon : Error<"expected ':'">;
def err_expected_colon_after_setter_name : Error<
"method name referenced in property setter attribute "
@@ -51,7 +54,12 @@ def err_invalid_character_udl : Error<
def err_invalid_numeric_udl : Error<
"numeric literal with user-defined suffix cannot be used here">;
+}
+
// Parse && Sema
+
+let CategoryName = "Parse Issue" in {
+
def err_param_redefinition : Error<"redefinition of parameter %0">;
def warn_method_param_redefinition : Warning<"redefinition of method parameter %0">;
def warn_method_param_declaration : Warning<"redeclaration of method parameter %0">,
@@ -79,6 +87,8 @@ def err_attribute_not_type_attr : Error<
"%0 attribute cannot be applied to types">;
def err_enum_template : Error<"enumeration cannot be a template">;
+}
+
// Sema && Lex
def ext_c99_longlong : Extension<
"'long long' is an extension when C99 mode is not enabled">,
OpenPOWER on IntegriCloud