================
@@ -4695,11 +4696,17 @@ bool Lexer::LexDependencyDirectiveToken(Token &Result) {
MIOpt.ReadToken();
}
- if (ParsingFilename && DDTok.is(tok::less)) {
- BufferPtr = BufferStart + DDTok.Offset;
- LexAngledStringLiteral(Result, BufferPtr + 1);
- if (Result.isNot(tok::header_name))
+ const char *DDTokPtr = BufferStart + DDTok.Offset;
+ if (ParsingFilename && *DDTokPtr == '<') {
----------------
yronglin wrote:
I have add a new test for dep-scan, we don't need a `SkipEscapedNewLines`,
because DDTok.Offset already skipped the escaped new line.
https://github.com/llvm/llvm-project/pull/191004
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits