We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7347c28 commit 86618e3Copy full SHA for 86618e3
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
@@ -193,7 +193,8 @@ DiagnosticBuilder ClangTidyContext::diag(const ClangTidyError &Error) {
193
SM.getFileManager().getFile(Error.Message.FilePath);
194
FileID ID = SM.getOrCreateFileID(*File, SrcMgr::C_User);
195
SourceLocation FileStartLoc = SM.getLocForStartOfFile(ID);
196
- SourceLocation Loc = FileStartLoc.getLocWithOffset(Error.Message.FileOffset);
+ SourceLocation Loc = FileStartLoc.getLocWithOffset(
197
+ static_cast<SourceLocation::IntTy>(Error.Message.FileOffset));
198
return diag(Error.DiagnosticName, Loc, Error.Message.Message,
199
static_cast<DiagnosticIDs::Level>(Error.DiagLevel));
200
}
0 commit comments