compositeprimes updated this revision to Diff 245915. compositeprimes edited the summary of this revision.
CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68887/new/ https://reviews.llvm.org/D68887 Files: clang-tidy/ClangTidyDiagnosticConsumer.cpp Index: clang-tidy/ClangTidyDiagnosticConsumer.cpp =================================================================== --- clang-tidy/ClangTidyDiagnosticConsumer.cpp +++ clang-tidy/ClangTidyDiagnosticConsumer.cpp @@ -62,6 +62,9 @@ } assert(Error.Message.Message.empty() && "Overwriting a diagnostic message"); Error.Message = TidyMessage; + for (const CharSourceRange &SourceRange : Ranges) { + Error.Ranges.emplace_back(Loc.getManager(), SourceRange); + } } void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
Index: clang-tidy/ClangTidyDiagnosticConsumer.cpp =================================================================== --- clang-tidy/ClangTidyDiagnosticConsumer.cpp +++ clang-tidy/ClangTidyDiagnosticConsumer.cpp @@ -62,6 +62,9 @@ } assert(Error.Message.Message.empty() && "Overwriting a diagnostic message"); Error.Message = TidyMessage; + for (const CharSourceRange &SourceRange : Ranges) { + Error.Ranges.emplace_back(Loc.getManager(), SourceRange); + } } void emitDiagnosticLoc(FullSourceLoc Loc, PresumedLoc PLoc,
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits