llvm/clang/unittests/Lex
Jan Svoboda d8298f04a9 [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
2022-02-15 09:49:19 +01:00
..
CMakeLists.txt [Preprocessor] Reduce the memory overhead of #define directives (Recommit) 2022-02-14 09:27:44 -08:00
DependencyDirectivesSourceMinimizerTest.cpp [clang][lex][minimizer] Avoid treating path separators as comments 2022-02-15 09:49:19 +01:00
HeaderMapTest.cpp
HeaderMapTestUtils.h
HeaderSearchTest.cpp [HeaderSearch] Track framework name in LookupFile 2022-02-04 13:32:39 -05:00
LexerTest.cpp [clang][Lexer] Fix tests after ff77071a4d 2022-02-07 14:06:32 +01:00
PPCallbacksTest.cpp
PPConditionalDirectiveRecordTest.cpp
PPMemoryAllocationsTest.cpp [Preprocessor] Reduce the memory overhead of #define directives (Recommit) 2022-02-14 09:27:44 -08:00