aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/MathExtrasTest.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2023-01-26 11:11:29 -0800
committerErich Keane <erich.keane@intel.com>2023-01-26 11:14:40 -0800
commit42e371b174d4407ec5805010c2ecfef9c086b5c2 (patch)
tree455a062048f368229b2143a09976a00eb1518563 /llvm/unittests/Support/MathExtrasTest.cpp
parentae5efe97618355e7552b0cb3c6790f3d8e8f8554 (diff)
downloadllvm-42e371b174d4407ec5805010c2ecfef9c086b5c2.zip
llvm-42e371b174d4407ec5805010c2ecfef9c086b5c2.tar.gz
llvm-42e371b174d4407ec5805010c2ecfef9c086b5c2.tar.bz2
[NFC][Concepts] Change the Source Range of Concepts ParamMatching
As came up in the discussion on https://reviews.llvm.org/rG12cb1cb3720de8d164196010123ce1a8901d8122 We were asserting because the attempt to print a note found that our source range for a immediately declared constraint (as a part of Parameter Mapping Substitution) wasn't in order. However, it doesn't really make sense to have the location of this be the whole list of template arguments, as that would result in the range being: bool func(std::thing<char*> auto foo) {} ^^^^^^^^^^^^^^^ Even if done correctly. Instead, this patch makes the range be just 'foo' in this case (or a pointer right after 'auto' if unnamed).
Diffstat (limited to 'llvm/unittests/Support/MathExtrasTest.cpp')
0 files changed, 0 insertions, 0 deletions