wireshark/epan/dfilter
João Valverde 79c3a77752 Add macros to control lemon diagnostics
Rename flex macros using parenthesis (mostly a style issue):

DIAG_OFF_FLEX -> DIAG_OFF_FLEX()
DIAG_ON_FLEX  -> DIAG_ON_FLEX()

Use the same kind of construct with lemon generated code using
DIAG_OFF_LEMON() and DIAG_ON_LEMON(). Use %include and %code
directives to enforce the desired order with generated code
in the middle in between pragmas.

Fix a clang-specific pragma to use DIAG_OFF_CLANG().

DIAG_OFF(unreachable-code) -> DIAG_OFF_CLANG(unreachable-code).

Apparently GCC is ignoring the -Wunreachable flag, that's why
it did not trigger an unknown pragma warning. From [1}:

  The -Wunreachable-code has been removed, because it was unstable: it
  relied on the optimizer, and so different versions of gcc would warn
  about different code.  The compiler still accepts and ignores the
  command line option so that existing Makefiles are not broken.  In some
  future release the option will be removed entirely. - Ian

[1] https://gcc.gnu.org/legacy-ml/gcc-help/2011-05/msg00360.html
2022-11-20 10:11:27 +00:00
..
.editorconfig dfilter: Fix EditorConfig settings 2022-03-21 17:49:12 +00:00
CMakeLists.txt dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00
dfilter-int.h dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfilter-macro.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfilter-macro.h dfilter: Refactor macro tree references 2022-03-29 12:36:31 +00:00
dfilter.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfilter.h Try to fix a narrowing warning 2022-04-11 22:23:13 +01:00
dfunctions.c dfilter: Fix a crash using abs() 2022-07-19 19:11:47 +01:00
dfunctions.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
dfvm.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
dfvm.h dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
drange.c dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
drange.h dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
gencode.c dfilter: Add suport for raw addressing with references 2022-10-31 21:02:39 +00:00
gencode.h epan: Add header files to Doxygen 2021-11-30 08:46:49 +00:00
grammar.lemon Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
scanner.l Add macros to control lemon diagnostics 2022-11-20 10:11:27 +00:00
semcheck.c dfilter: Improve representation of raw field references 2022-10-31 21:02:39 +00:00
semcheck.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-field.c dfilter: Improve representation of raw field references 2022-10-31 21:02:39 +00:00
sttype-field.h dfilter: Add support for raw (bytes) addressing mode 2022-10-31 21:02:39 +00:00
sttype-function.c dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-function.h dfilter: Allow arithmetic expressions as function arguments 2022-04-18 17:10:31 +01:00
sttype-op.c dfilter: Fix some debug strings 2022-07-02 21:21:12 +01:00
sttype-op.h dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00
sttype-pointer.c dfilter: Remove STTYPE_RANGE_NODE 2022-06-25 16:06:48 +01:00
sttype-pointer.h dfilter: Add max() and min() functions 2022-04-14 13:07:41 +00:00
sttype-set.c Remove some unnecessary casts. 2021-10-27 10:24:20 +01:00
sttype-set.h epan: Add header files to Doxygen 2021-11-30 08:46:49 +00:00
sttype-slice.c dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
sttype-slice.h dfilter: Add layer support for references 2022-06-25 14:57:40 +01:00
sttype-string.c dfilter: Remove unparsed syntax type and RHS literal bias 2022-07-02 11:18:20 +01:00
syntax-tree.c dfilter: Improve representation of raw field references 2022-10-31 21:02:39 +00:00
syntax-tree.h dfilter: Rename test syntax tree node 2022-07-02 11:39:17 +01:00