aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2021-10-15 15:18:52 +0200
committerserge-sans-paille <sguelton@redhat.com>2021-11-10 10:21:27 +0100
commita35efc4dcb70658ebd704c28dfeed4cc2bac095b (patch)
tree43e100823ef36571176f6b3ce28acab72bc437a2 /clang/lib/CodeGen/ModuleBuilder.cpp
parent985cc490f17d28b20392ee214895d947b85120ef (diff)
downloadllvm-a35efc4dcb70658ebd704c28dfeed4cc2bac095b.zip
llvm-a35efc4dcb70658ebd704c28dfeed4cc2bac095b.tar.gz
llvm-a35efc4dcb70658ebd704c28dfeed4cc2bac095b.tar.bz2
Misleading unicode identifier detection pass
Detect when an identifier contains some Right-To-Left characters. This pass relates to https://trojansource.codes/ Example of misleading source: short int א = (short int)0; short int ג = (short int)12345; int main() { int א = ג; // a local variable, set to zero? printf("ג is %d\n", ג); printf("א is %d\n", א); } This is a recommit of 299aa4dfa1d8c120648b1404b481d858b76c8173 with missing option registration fixed. Differential Revision: https://reviews.llvm.org/D112914
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions