================ @@ -514,6 +515,20 @@ void Preprocessor::SuggestTypoedDirective(const Token &Tok, // directives. if (getLangOpts().AsmPreprocessor) return; + // A known non-conditional directive (e.g. #include or #define inside a + // skipped conditional block) is not a typo of a conditional don't scan + // it. #elifdef/#elifndef stay eligible so that pre-C23/C++23 code still ---------------- cor3ntin wrote:
```suggestion // A known non-conditional directive (e.g. #include or #define inside a // skipped conditional block) is not a typo of a conditional; don't scan // it. #elifdef/#elifndef stay eligible so that pre-C23/C++23 code still ``` I'm assume you meant something like that? https://github.com/llvm/llvm-project/pull/209694 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
