Skip to content

secilc/cil: Fix name resolution for macro calls

James Carter selinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5libsepol/cil: Make name resolution in macros work as documentedlibsepol/cil/src/cil_resolve_ast.c+12 -40 replies
2/5libsepol/cil: Do not add NULL node when inserting key into symtablibsepol/cil/src/cil_symtab.c+4 -40 replies
3/5libsepo/cil: Refactor macro call resolutionlibsepol/cil/src/cil_internal.h libsepol/cil/src/cil_resolve_ast.c+303 -2970 replies
4/5libsepol/cil: Do not resolve arguments to declarations in the calllibsepol/cil/src/cil_resolve_ast.c+27 -10 replies
5/5secilc/docs: Relocate and reword macro call name resolution ordersecilc/docs/cil_call_macro_statements.md+12 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH 0/5 v2] secilc/cil: Fix name resolution for macro calls

This patch series fixes name resolution within expanded macro calls and with call arguments.

The first patch is same as in v1.
Patches 2-4 replace patch 2 in v1. The original way of fixing name resolution of call arguments did not work if a disabled optional forced a reset.
Patch 5 is the same as patch 3 in v1.

James Carter (5):
libsepol/cil: Make name resolution in macros work as documented libsepol/cil: Do not add NULL node when inserting key into symtab libsepo/cil: Refactor macro call resolution libsepol/cil: Do not resolve arguments to declarations in the call secilc/docs: Relocate and reword macro call name resolution order

 libsepol/cil/src/cil_internal.h          |   1 -
 libsepol/cil/src/cil_resolve_ast.c       | 635 ++++++++++++-----------
 libsepol/cil/src/cil_symtab.c            |   8 +-
 secilc/docs/cil_call_macro_statements.md |  24 +-
 4 files changed, 354 insertions(+), 314 deletions(-)
Signature · 1 line
2.26.3