[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

Michael Spencer via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 3 13:33:18 PDT 2025


================
@@ -393,7 +393,7 @@ static bool isQuoteCppDigitSeparator(const char *const Start,
 }
 
 void Scanner::skipLine(const char *&First, const char *const End) {
----------------
Bigcheese wrote:

The rule we follow here is that it's ok to miss dependencies as long as the original input would be rejected by the compiler. We try to never report extra dependencies as that could hide the invalid code that caused us to misreport them.

https://github.com/llvm/llvm-project/pull/146645


More information about the cfe-commits mailing list