Skip to content

Commit 9ca298a

Browse files
authored
Merge pull request #29618 from CodaFi/constant-contact
2 parents c5365d4 + 4be7828 commit 9ca298a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

include/swift/AST/Decl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,17 +2332,17 @@ class PoundDiagnosticDecl : public Decl {
23322332
Bits.PoundDiagnosticDecl.HasBeenEmitted = false;
23332333
}
23342334

2335-
DiagnosticKind getKind() {
2335+
DiagnosticKind getKind() const {
23362336
return isError() ? DiagnosticKind::Error : DiagnosticKind::Warning;
23372337
}
23382338

2339-
StringLiteralExpr *getMessage() { return Message; }
2339+
StringLiteralExpr *getMessage() const { return Message; }
23402340

2341-
bool isError() {
2341+
bool isError() const {
23422342
return Bits.PoundDiagnosticDecl.IsError;
23432343
}
23442344

2345-
bool hasBeenEmitted() {
2345+
bool hasBeenEmitted() const {
23462346
return Bits.PoundDiagnosticDecl.HasBeenEmitted;
23472347
}
23482348

0 commit comments

Comments
 (0)