All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/6] dump macros definitions
@ 2017-04-04 21:49 Luc Van Oostenryck
  2017-04-04 21:49 ` [PATCH 1/6] define ident_list Luc Van Oostenryck
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Luc Van Oostenryck @ 2017-04-04 21:49 UTC (permalink / raw)
  To: linux-sparse; +Cc: Christopher Li, Luc Van Oostenryck

The goal of this series is to add support for GCC's -dD.

This implementation is quite straightforward:
- record all macro's name
- dump the tokens corresponding to each macros
  without argument expansion.

This series is available at:
	git://github.com/lucvoo/sparse.git dump-macros
based on commit:
	14964df5373292af78b29529d4fc7e1a26b67a97 (sparse-next @ 2017-03-31)
up to commit:
	9a01ec7d42d6013ead12cb111b1a1879d0c856ab


Luc Van Oostenryck (6):
  define ident_list
  teach sparse how to dump macro definitions
  teach sparse how to handle -dD flag
  let -dD report macro defintions
  let -dD report #undef too
  fix -dD for never-defined #undef

 lib.c                                       | 21 ++++++++++
 lib.h                                       |  9 +++++
 pre-process.c                               | 61 ++++++++++++++++++++++++++++-
 validation/empty-file                       |  0
 validation/preprocessor/dump-macros-empty.c |  7 ++++
 validation/preprocessor/dump-macros-multi.c |  7 ++++
 validation/preprocessor/dump-macros.c       | 23 +++++++++++
 7 files changed, 126 insertions(+), 2 deletions(-)
 create mode 100644 validation/empty-file
 create mode 100644 validation/preprocessor/dump-macros-empty.c
 create mode 100644 validation/preprocessor/dump-macros-multi.c
 create mode 100644 validation/preprocessor/dump-macros.c


-- Luc Van Oostenryck

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-01 14:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-04 21:49 [PATCH 0/6] dump macros definitions Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 1/6] define ident_list Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 2/6] teach sparse how to dump macro definitions Luc Van Oostenryck
2017-06-01  6:56   ` Christopher Li
2017-06-01 14:08     ` Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 3/6] teach sparse how to handle -dD flag Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 4/6] let -dD report macro defintions Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 5/6] let -dD report #undef too Luc Van Oostenryck
2017-04-04 21:49 ` [PATCH 6/6] fix -dD for never-defined #undef Luc Van Oostenryck
2017-04-06  8:05 ` [PATCH 0/6] dump macros definitions Christopher Li
2017-04-06 11:51   ` Luc Van Oostenryck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.