Stop modifying trailing return types.
authorRichard Smith <richard@metafoo.co.uk>
Sun, 2 Apr 2023 08:11:30 +0000 (01:11 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Sun, 2 Apr 2023 08:41:49 +0000 (01:41 -0700)
commitaeee4ebd689171c963aa5d973e14cb6e731eb147
tree3e8fb0ed97a53d80aa15d28eeee88d3710358c75
parentd270d3638b048dff8845c604a447180852c7edcf
Stop modifying trailing return types.

This change reverts the functional change from D144626 but retains its
test. Instead of dealing with the possibility that a trailing requires
clause might have been rewritten into some other incorrect form, just
stop rewriting it.

No functionality changes intended.

Reviewed By: erichkeane, ChuanqiXu

Differential Revision: https://reviews.llvm.org/D147281
clang/lib/AST/ASTContext.cpp
clang/lib/Sema/SemaConcept.cpp