diff options
| author | Emilia Dreamer <emilia@rymiel.space> | 2023-01-27 03:56:11 +0200 |
|---|---|---|
| committer | Emilia Dreamer <emilia@rymiel.space> | 2023-01-27 04:01:11 +0200 |
| commit | 8a3de13573bdeaee13ec959fa2af0d11f21f5f00 (patch) | |
| tree | 000edad8fcf02d61321075f12896d58ab1a9a6da /llvm/lib/CodeGen/StackProtector.cpp | |
| parent | adcb98880972bec908249d091ed5634524250fa4 (diff) | |
| download | llvm-8a3de13573bdeaee13ec959fa2af0d11f21f5f00.zip llvm-8a3de13573bdeaee13ec959fa2af0d11f21f5f00.tar.gz llvm-8a3de13573bdeaee13ec959fa2af0d11f21f5f00.tar.bz2 | |
[clang-format] Disallow templates to be followed by literal
There should not be any cases where the angle brackets of template
parameters are directly followed by a literal. It is more likely that a
comparison is taking place instead.
This patch makes the TokenAnnotator prefer to annotate < and > as
operators when directly followed by a literal. A similar check already
exists for literals directly *before* potential template args.
Fixes https://github.com/llvm/llvm-project/issues/60140
Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay
Differential Revision: https://reviews.llvm.org/D142139
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions
