Files
u-boot-tk1-som/tools
Masahiro Yamada 8ba1f5de45 tools: moveconfig: trim garbage lines after header cleanups
The tools/moveconfig.py has a feature to cleanup #define/#undef's
of moved config options, but I want this tool to do a better job.

For example, when we are moving CONFIG_FOO and its define is
surrounded by #ifdef ... #endif, like follows:

  #ifdef CONFIG_BAR
  #  define CONFIG_FOO
  #endif

The header cleanup will leave empty #ifdef ... #endif:

  #ifdef CONFIG_BAR
  #endif

Likewise, if a define line between two blank lines

  <blank line>
  #define CONFIG_FOO
  <blank lines.

... is deleted, the result of the clean-up will be successive empty
lines, which is a coding-style violation.

It is tedious to remove left-over garbage lines manually, so I want
the tool to take care of this.  The tool's job is still not perfect,
so we should check the output of the tool, but I hope our life will
be much easier with this patch.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2016-08-05 07:27:16 -04:00
..
2016-07-31 19:37:08 -06:00
2016-05-02 18:37:09 -04:00
2016-05-02 18:37:09 -04:00
2016-03-22 12:16:13 -04:00
2009-11-24 23:43:18 +01:00
2015-11-29 16:02:44 +01:00
2016-02-21 11:09:19 +01:00
2009-04-28 01:16:46 +02:00
2015-11-16 17:22:18 -05:00