common: compile libfilter as C++
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 6 Oct 2021 16:16:33 +0000 (12:16 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 17 Nov 2021 23:58:46 +0000 (18:58 -0500)
commit348ddc5c9107149d48b1f12d31a7e75e9b73b4da
treef7aa8b18749f7731e36047652a0656a7e5db726e
parente032c6fd0419a73188f7143b18625b43a8d8f7c3
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 <simon.marchi@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
24 files changed:
src/common/filter-grammar-test.cpp
src/common/filter/Makefile.am
src/common/filter/filter-ast.h
src/common/filter/filter-lexer.l [deleted file]
src/common/filter/filter-lexer.lpp [new file with mode: 0644]
src/common/filter/filter-parser.y [deleted file]
src/common/filter/filter-parser.ypp [new file with mode: 0644]
src/common/filter/filter-visitor-generate-bytecode.c [deleted file]
src/common/filter/filter-visitor-generate-bytecode.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-generate-ir.c [deleted file]
src/common/filter/filter-visitor-generate-ir.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-ir-check-binary-comparator.c [deleted file]
src/common/filter/filter-visitor-ir-check-binary-comparator.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-ir-check-binary-op-nesting.c [deleted file]
src/common/filter/filter-visitor-ir-check-binary-op-nesting.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-ir-normalize-glob-patterns.c [deleted file]
src/common/filter/filter-visitor-ir-normalize-glob-patterns.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-ir-validate-globbing.c [deleted file]
src/common/filter/filter-visitor-ir-validate-globbing.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-ir-validate-string.c [deleted file]
src/common/filter/filter-visitor-ir-validate-string.cpp [new file with mode: 0644]
src/common/filter/filter-visitor-xml.c [deleted file]
src/common/filter/filter-visitor-xml.cpp [new file with mode: 0644]
src/lib/lttng-ctl/lttng-ctl.cpp
This page took 0.026998 seconds and 4 git commands to generate.