diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2022-02-15 09:49:16 +0100 |
---|---|---|
committer | Jan Svoboda <jan_svoboda@apple.com> | 2022-02-15 09:49:19 +0100 |
commit | d8298f04a9681fcbb16d7fc4872690b5504a0d52 (patch) | |
tree | 34972ec035f657a7040e48c8a9b67c220cbd3f81 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | fd2dff17c53dbfd89789989bedd949c496e7b6b7 (diff) | |
download | llvm-d8298f04a9681fcbb16d7fc4872690b5504a0d52.zip llvm-d8298f04a9681fcbb16d7fc4872690b5504a0d52.tar.gz llvm-d8298f04a9681fcbb16d7fc4872690b5504a0d52.tar.bz2 |
[clang][lex][minimizer] Avoid treating path separators as comments
The minimizer strips out single-line comments (introduced by `//`). This sequence of characters can also appear in `#include` or `#import` directives where they play the role of path separators. We already avoid stripping this character sequence for `#include` but not for `#import` (which has the same semantics). This patch makes it so `#import <A//A.h>` is not affected by minimization. Previously, we would incorrectly reduce it into `#import <A`.
Reviewed By: arphaman
Differential Revision: https://reviews.llvm.org/D119226
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions