From b30107085c003b364fc11ba84b5e7130d0926940 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 May 2017 11:57:41 +0200 Subject: Diagnose #include directives in C/C++ lexer --- build2/cc/lexer.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/cc/lexer.hxx') diff --git a/build2/cc/lexer.hxx b/build2/cc/lexer.hxx index 8767606..c74a0a9 100644 --- a/build2/cc/lexer.hxx +++ b/build2/cc/lexer.hxx @@ -22,10 +22,10 @@ namespace build2 // // The input is a (partially-)preprocessed translation unit that may still // contain comments, line continuations, and preprocessor directives such - // as #line, #pragma, etc., but not #include's. Currently all preprocessor - // directives except #line are ignored and no values are saved from - // literals. The #line directive (and its shorthand notation) is - // recognized to provide the logical token location. + // as #line, #pragma, but not #include (which is diagnosed). Currently, + // all preprocessor directives except #line are ignored and no values are + // saved from literals. The #line directive (and its shorthand notation) + // is recognized to provide the logical token location. // enum class token_type { -- cgit v1.1