aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Basic/SourceManagerTest.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2025-03-25 14:29:06 -0400
committerGitHub <noreply@github.com>2025-03-25 14:29:06 -0400
commitb0668d859b237f6991f416b688cedb7389354fd8 (patch)
tree649d9b3724bf321c61b8b9ce9f505b52ee318e3e /clang/unittests/Basic/SourceManagerTest.cpp
parent9243f99d17c0165800fd1f2f92c5c975cf702414 (diff)
downloadllvm-b0668d859b237f6991f416b688cedb7389354fd8.zip
llvm-b0668d859b237f6991f416b688cedb7389354fd8.tar.gz
llvm-b0668d859b237f6991f416b688cedb7389354fd8.tar.bz2
[libc++] Make sure that __desugars_to isn't tripped up by reference_wrapper, const and ref qualifiers (#132092)
Previously, const and ref qualification on an operation would cause __desugars_to to report false, which would lead to unnecessary pessimizations. The same holds for reference_wrapper. In practice, const and ref qualifications on the operation itself are not relevant to determining whether an operation desugars to something else or not, so can be ignored. We are not stripping volatile qualifiers from operations in this patch because we feel that this requires additional discussion. Fixes #129312
Diffstat (limited to 'clang/unittests/Basic/SourceManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions