Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a new --undef command-line option
This option allows to disable the generation of macro tags from #undef directives, see PR #221 for the rationale. The default behaviour is unchanged, i.e. a tag is still generated. The help and man have been updated accordingly, and I added a small unit to check that --undef=no disables the generation of a tag. The directives.c unit already checks that a tag is generated when no option is passed (which is equivalent to --undef=yes).
- Loading branch information
Kevin Brodsky
committed
Feb 9, 2015
1 parent
7e3402c
commit 275d65b
Showing
7 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--undef=no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
MACRO_TO_SEE input.c /^#define MACRO_TO_SEE$/;" d file: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#define MACRO_TO_SEE | ||
#undef MACRO_NOT_TO_SEE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters