aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorWang Pengcheng <137158460+wangpc-pp@users.noreply.github.com>2023-09-27 12:07:36 +0800
committerGitHub <noreply@github.com>2023-09-27 12:07:36 +0800
commitdf330d749699f42751831f1b72fc7fd683f903c3 (patch)
tree4060bbee1263bdc011e9bae1215feb408fd22f45 /clang/lib/Lex/Preprocessor.cpp
parent134ae13adaffcb80693819f498a28b2b1bbde9cf (diff)
downloadllvm-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