aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/StringRef.cpp
diff options
context:
space:
mode:
authorEmilia Kond <emilia@rymiel.space>2024-02-01 08:00:45 +0200
committerGitHub <noreply@github.com>2024-02-01 08:00:45 +0200
commit9b68c095d6b52d6ec0390c653528f65c42e5f570 (patch)
tree622dc389ec660ec03ba7994ec680a9405f47e863 /llvm/lib/Support/StringRef.cpp
parentb777bb78b302055eba876a0258ea4b2625ffe71a (diff)
downloadllvm-9b68c095d6b52d6ec0390c653528f65c42e5f570.zip
llvm-9b68c095d6b52d6ec0390c653528f65c42e5f570.tar.gz
llvm-9b68c095d6b52d6ec0390c653528f65c42e5f570.tar.bz2
[clang-format] Allow decltype in requires clause (#78847)
If clang-format is not sure whether a `requires` keyword starts a requires clause or a requires expression, it looks ahead to see if any token disqualifies it from being a requires clause. Among these tokens was `decltype`, since it fell through the switch. This patch allows decltype to exist in a require clause. I'm not 100% sure this change won't have repercussions, but that just means we need more test coverage! Fixes https://github.com/llvm/llvm-project/issues/78645
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions