From: Simon Marchi Date: Wed, 6 Oct 2021 16:16:33 +0000 (-0400) Subject: common: compile libfilter as C++ X-Git-Url: https://git.liburcu.org/?a=commitdiff_plain;h=348ddc5c9107149d48b1f12d31a7e75e9b73b4da;hp=348ddc5c9107149d48b1f12d31a7e75e9b73b4da;p=lttng-tools.git common: compile libfilter as C++ This patch renames filter-lexer.l to filter-lexer.lpp and filter-parser.y to filter-parser.ypp. That makes automake pass the right options to flex/bison to generate C++ code. In filter-lexer.lpp, Instead of having declarations with the `unused` attribute for yyunput and yyinput, use the noinput and nounput options. The rest of the changes are standard C to C++ conversion stuff. Change-Id: Ie4bf1981b970145f97e8db1d88edaa2d9b95aef4 Signed-off-by: Simon Marchi Signed-off-by: Jérémie Galarneau ---