diff options
author | Emilia Dreamer <emilia@rymiel.space> | 2022-12-16 23:25:52 +0200 |
---|---|---|
committer | Emilia Dreamer <emilia@rymiel.space> | 2022-12-16 23:26:05 +0200 |
commit | 8384347997f87d73c70f194d90c3efb7ddf6f963 (patch) | |
tree | 983d13dcdc44f290f40f1fbc26c0cfc8b9e1154a /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 83396d85495914e17746d0ea6daa56eb35de3b39 (diff) | |
download | llvm-8384347997f87d73c70f194d90c3efb7ddf6f963.zip llvm-8384347997f87d73c70f194d90c3efb7ddf6f963.tar.gz llvm-8384347997f87d73c70f194d90c3efb7ddf6f963.tar.bz2 |
[clang-format] Don't require deduction guides to be templates
The C++ standard doesn't require that class template deduction guides
be templates themselves, but previously `isDeductionGuide` would assert
for the existence of a template closer or requires clause closer before
the deduction guide declaration.
This patch simply removes that check. Because of this, a test which
asserted that `x()->x<1>;` *isn't* a deduction guide failed, as it is
now formatted as a deduction guide. However, as @JohelEGP demonstrated,
it is [possible to make that a viable deduction guide][1].
Thus, that test has been removed, but other tests related to
non-template class template deduction guides have been added.
Fixes https://github.com/llvm/llvm-project/issues/55142
[1]: https://compiler-explorer.com/z/Wx3K6d5K9
Reviewed By: HazardyKnusperkeks, owenpan
Differential Revision: https://reviews.llvm.org/D139416
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions