]> gcc.gnu.org Git - gcc.git/commit - gcc/diagnostic.h
re PR c++/17964 (cpp error messages contain wrong line in C++)
authorJoseph Myers <joseph@codesourcery.com>
Thu, 3 Nov 2005 23:08:18 +0000 (23:08 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Thu, 3 Nov 2005 23:08:18 +0000 (23:08 +0000)
commit178b58b59e18dcb713ef8ed45f79ffa072c617a5
tree4d26b7322a593e1c409570f2ca4e99dccb8dc759
parentb0ae01d7f9e4c7e93097856926facb7ce9505f1d
re PR c++/17964 (cpp error messages contain wrong line in C++)

gcc:
PR c++/17964
* diagnostic.c (diagnostic_set_info_translated): New function.
(diagnostic_set_info): Use it.  Add comment.
* diagnostic.h (diagnostic_set_info_translated): Declare.

gcc/cp:
* error.c (cp_cpp_error): New function.
* cp-tree.h (cp_cpp_error): Declare.
* parser.c (cp_lexer_new_main): Set CPP option client_diagnostic
and error callback after lexing.

gcc/testsuite:
* g++.dg/cpp/string-1.C: New test.

libcpp:
* include/cpplib.h (struct cpp_options): Add client_diagnostic.
(struct cpp_callbacks): Add error.
* errors.c (cpp_error): If client_diagnostic, use error callback.
* charset.c (convert_escape): Don't use %03o in diagnostic.

From-SVN: r106454
13 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/error.c
gcc/cp/parser.c
gcc/diagnostic.c
gcc/diagnostic.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp/string-1.C [new file with mode: 0644]
libcpp/ChangeLog
libcpp/charset.c
libcpp/errors.c
libcpp/include/cpplib.h
This page took 0.055636 seconds and 5 git commands to generate.