[all-commits] [llvm/llvm-project] 8d2474: [clang-tidy] Fix crash in modernize-use-ranges (#1...
Nathan James via All-commits
all-commits at lists.llvm.org
Mon Aug 5 01:17:45 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 8d2474975f56e85f5a25610fb6291dc0f3976a3e
https://github.com/llvm/llvm-project/commit/8d2474975f56e85f5a25610fb6291dc0f3976a3e
Author: Nathan James <n.james93 at hotmail.co.uk>
Date: 2024-08-05 (Mon, 05 Aug 2024)
Changed paths:
M clang-tools-extra/clang-tidy/utils/UseRangesCheck.cpp
M clang-tools-extra/clang-tidy/utils/UseRangesCheck.h
M clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-ranges/fake_std.h
Log Message:
-----------
[clang-tidy] Fix crash in modernize-use-ranges (#100427)
Crash seems to be caused by the check function not handling inline
namespaces correctly for some instances. Changed how the Replacer is got
from the MatchResult now which should alleviate any potential issues
Fixes #100406
(cherry picked from commit 0762db6533eda3453158c7b9b0631542c47093a8)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list