Skip to content

Commit 0ee4b02

Browse files
committed
Fix an implicit conversion in clang-tidy. GCC 5 complains about it.
1 parent ac21535 commit 0ee4b02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ class ClangTidyContext {
174174
return DiagLevelAndFormatString(
175175
static_cast<DiagnosticIDs::Level>(
176176
DiagEngine->getDiagnosticLevel(DiagnosticID, Loc)),
177-
DiagEngine->getDiagnosticIDs()->getDescription(DiagnosticID));
177+
std::string(
178+
DiagEngine->getDiagnosticIDs()->getDescription(DiagnosticID)));
178179
}
179180

180181
private:

0 commit comments

Comments
 (0)