diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-28 11:57:41 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-05-28 11:57:41 +0200 |
commit | b30107085c003b364fc11ba84b5e7130d0926940 (patch) | |
tree | 4defb98a3e707e1ab3137ccb555d85b186001382 /build2/cc/lexer.hxx | |
parent | 2e19434e09b819105055ddc8e58f69db98ec8669 (diff) |
Diagnose #include directives in C/C++ lexer
Diffstat (limited to 'build2/cc/lexer.hxx')
-rw-r--r-- | build2/cc/lexer.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 { |