mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-21 05:16:37 +00:00
Clean up SimpleDiagnostic inheritance (#1004)
This commit is contained in:
1 parent
b7df523dc8
commit
cab5bb0158
6 files changed
+77
-59
No files matched your search
@@ -25,32 +25,32 @@
|
||||
|
||||
namespace Carbon {
|
||||
|
||||
struct TrailingComment : SimpleDiagnostic<TrailingComment> {
|
||||
struct TrailingComment : DiagnosticBase<TrailingComment> {
|
||||
static constexpr llvm::StringLiteral ShortName = "syntax-comments";
|
||||
static constexpr llvm::StringLiteral Message =
|
||||
"Trailing comments are not permitted.";
|
||||
};
|
||||
|
||||
struct NoWhitespaceAfterCommentIntroducer
|
||||
: SimpleDiagnostic<NoWhitespaceAfterCommentIntroducer> {
|
||||
: DiagnosticBase<NoWhitespaceAfterCommentIntroducer> {
|
||||
static constexpr llvm::StringLiteral ShortName = "syntax-comments";
|
||||
static constexpr llvm::StringLiteral Message =
|
||||
"Whitespace is required after '//'.";
|
||||
};
|
||||
|
||||
struct UnmatchedClosing : SimpleDiagnostic<UnmatchedClosing> {
|
||||
struct UnmatchedClosing : DiagnosticBase<UnmatchedClosing> {
|
||||
static constexpr llvm::StringLiteral ShortName = "syntax-balanced-delimiters";
|
||||
static constexpr llvm::StringLiteral Message =
|
||||
"Closing symbol without a corresponding opening symbol.";
|
||||
};
|
||||
|
||||
struct MismatchedClosing : SimpleDiagnostic<MismatchedClosing> {
|
||||
struct MismatchedClosing : DiagnosticBase<MismatchedClosing> {
|
||||
static constexpr llvm::StringLiteral ShortName = "syntax-balanced-delimiters";
|
||||
static constexpr llvm::StringLiteral Message =
|
||||
"Closing symbol does not match most recent opening symbol.";
|
||||
};
|
||||
|
||||
struct UnrecognizedCharacters : SimpleDiagnostic<UnrecognizedCharacters> {
|
||||
struct UnrecognizedCharacters : DiagnosticBase<UnrecognizedCharacters> {
|
||||
static constexpr llvm::StringLiteral ShortName =
|
||||
"syntax-unrecognized-characters";
|
||||
static constexpr llvm::StringLiteral Message =
|
||||
|
||||
Reference in new issue
Block a user