]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
libcpp: add callback for comment-handling
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 5 Jun 2017 20:53:06 +0000 (20:53 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 5 Jun 2017 20:53:06 +0000 (20:53 +0000)
commit05945a1b8356818a441b3d358c8d803ee52eb778
treed602be4faec521df3252fd78c8aaab8cd7f563d7
parent9b972837bd72fc1e709206e19492123a6df2aada
libcpp: add callback for comment-handling

gcc/testsuite/ChangeLog:
* g++.dg/plugin/comment_plugin.c: New test plugin.
* g++.dg/plugin/comments-1.C: New test file.
* g++.dg/plugin/plugin.exp (plugin_test_list): Add the above.

libcpp/ChangeLog:
* include/cpplib.h (struct cpp_callbacks): Add "comment"
callback.
* lex.c (_cpp_lex_direct): Call the comment callback if non-NULL.

From-SVN: r248901
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/plugin/comment_plugin.c [new file with mode: 0644]
gcc/testsuite/g++.dg/plugin/comments-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/plugin/plugin.exp
libcpp/ChangeLog
libcpp/include/cpplib.h
libcpp/lex.c