[qt/clang/llvm-project]: Summary of bulk changes made
KDE Git Services - Bulk Change <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git repository change summary for qt/clang/llvm-project Pushed by mirror-service into branch 'upstream/users/steakhal/csa/output-crashes-2'. Changed from b7cf426afdcdbb99593f66b5e6f6cdc963de6afc to ee8dc4c03c3265b48c7ff5f59faff2330bc7e8de Acknowledgement was received that this change introduces only existing code that has been pushed to another public open source repository. This change contains the following new commits: Git commit a117608cd1487401064079bd097622b22942e0d4 by Balazs Benics on 10/08/2026 at 11:08.. [clang][NFC] Reuse SourceManager::getExpansionRange in getExpansionRangeInFile https://invent.kde.org/qt/clang/llvm-project/-/commit/a117608cd1487401064079bd097622b22942e0d4 Git commit 550d4a426e875efbb57b90c279f79c0a630e7783 by Balazs Benics on 10/08/2026 at 11:08.. [clang][NFC] Document getExpansionRangeInFile's nullopt cases https://invent.kde.org/qt/clang/llvm-project/-/commit/550d4a426e875efbb57b90c279f79c0a630e7783 Git commit ee8dc4c03c3265b48c7ff5f59faff2330bc7e8de by Balazs Benics on 10/08/2026 at 11:08.. [clang] Reject ranges getExpansionRangeInFile cannot represent getExpansionRangeInFile was extracted verbatim and inherited two shortcomings of the original loop, fixed here before the analyzer's SARIF and HTML consumers depend on it: - It mapped the end with getExpansionRange(SourceLocation), which always reports a token range, so a char-range input was widened by a whole token. Now using the getExpansionRange(CharSourceRange) overload, which keeps the flag. - It passed reversed ranges through. Consumers walk begin->end; now returning nullopt for those, as Lexer::makeFileCharRange already does. Separate from the extraction so that stays NFC, and out of the consumer fixes because it changes the shared helper's contract rather than one output. Both contract changes, plus the invalid- and cross-file-range guards, are covered by a GetExpansionRangeInFile unit test in clang/unittests/Frontend/TextDiagnosticTest.cpp. Assisted-By: claude https://invent.kde.org/qt/clang/llvm-project/-/commit/ee8dc4c03c3265b48c7ff5f59faff2330bc7e8de