diff options
author | Wang Pengcheng <137158460+wangpc-pp@users.noreply.github.com> | 2023-09-27 12:07:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-27 12:07:36 +0800 |
commit | df330d749699f42751831f1b72fc7fd683f903c3 (patch) | |
tree | 4060bbee1263bdc011e9bae1215feb408fd22f45 /clang/lib/Lex/Preprocessor.cpp | |
parent | 134ae13adaffcb80693819f498a28b2b1bbde9cf (diff) | |
download | llvm-df330d749699f42751831f1b72fc7fd683f903c3.zip llvm-df330d749699f42751831f1b72fc7fd683f903c3.tar.gz llvm-df330d749699f42751831f1b72fc7fd683f903c3.tar.bz2 |
[TableGen] Enhance !range bang operator (#66489)
We add a third argument `step` to `!range` bang operator to make it
with the same semantics as `range` in Python.
`step` can be negative. `step` is 1 by default and `step` can't be
0. If `start` < `end` and `step` is negative, or `start` > `end`
and `step` is positive, the result is an empty list.
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions