diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-15 09:27:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-11-15 09:27:04 +0200 |
commit | 417497632ddfa2bdc17688703c24ca3fd60af318 (patch) | |
tree | 3e498eb11abdb656494d66cb8fba54d522b4ce2a /libbuild2/cc/compile-rule.cxx | |
parent | 96c59ff30a2dbe2cc441024c81caaf79823441ac (diff) |
Improve {}-imbalance diagnostics in cc::parser and make it warning
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index f3b2c0d..6e21a7e 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -4013,13 +4013,15 @@ namespace build2 otype ot (li.type); - // If things go wrong give the user a bit extra context. + // If things go wrong give the user a bit extra context. Let's call it + // "scanning" instead of "parsing" since this has become an established + // term. // auto df = make_diag_frame ( [&src](const diag_record& dr) { if (verb != 0) - dr << info << "while parsing " << src; + dr << info << "while scanning " << src; }); // For some compilers (GCC, Clang) the preporcessed output is only |