[all-commits] [llvm/llvm-project] 067e20: [clang][transformer] Change `name` range-selector ...
Yu Hao via All-commits
all-commits at lists.llvm.org
Thu Oct 30 20:18:30 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 067e20506901d10166235b20f70344310bf716e8
https://github.com/llvm/llvm-project/commit/067e20506901d10166235b20f70344310bf716e8
Author: Yu Hao <hyhyhaoyu at gmail.com>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
M clang/lib/Tooling/Transformer/RangeSelector.cpp
M clang/unittests/Tooling/RangeSelectorTest.cpp
Log Message:
-----------
[clang][transformer] Change `name` range-selector to return `Error` instead of an invalid range. (#164715)
Previously, when the text in selected range was different from the
decl's name, `name` returned an invalid range, which could cause crashes
if `name` was nested in other range selectors that assumed always valid
ranges. With this change, `name` returns an `Error` if it can't get the
range.
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