Commit 05b529ba authored by Reiner Herrmann's avatar Reiner Herrmann

New upstream version 1.6

parent e658ce0a
deheader project news
1.6: 2016-09-30
Fix bug that prevented the -b option from being interpreted.
Acknowledge Debian bug Debian bug #839179: keywords in comments not ignored.
1.5: 2016-09-27
exit(1) if unneeded includes are detected (useful in Makefiles).
......
......@@ -36,7 +36,7 @@ from __future__ import print_function
import sys, os, getopt, time, re, operator, subprocess
version = "1.5"
version = "1.6"
try:
from subprocess import getstatusoutput
......@@ -1492,11 +1492,10 @@ class Summary:
(len(self.filenames), len(self.includes), len(self.unneeded))
if __name__ == "__main__":
(options, arguments) = getopt.getopt(sys.argv[1:], "hi:m:qrvx:V",
["help", "ignore",
"maker", "quiet",
"remove", "verbose",
"exclude", "version"])
(options, arguments) = getopt.getopt(sys.argv[1:], "bhi:m:qrvx:V",
["builddir", "help", "ignore",
"maker", "quiet", "remove",
"verbose", "exclude", "version"])
maker = "make"
builddir = '.'
verbose = 0
......
......@@ -2,12 +2,12 @@
.\" Title: deheader
.\" Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
.\" Date: 09/27/2016
.\" Date: 09/30/2016
.\" Manual: Development Tools
.\" Source: deheader
.\" Language: English
.\"
.TH "DEHEADER" "1" "09/27/2016" "deheader" "Development Tools"
.TH "DEHEADER" "1" "09/30/2016" "deheader" "Development Tools"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
......@@ -127,6 +127,8 @@ Due to minor variations in system headers, it is possible your program may not p
\fBdeheader\fR
has an internal table of rules that heads off the most common problems by suppressing deletion of headers that are required for portability, but your mileage may vary\&.
.PP
The depenedency scanner does not ignore the text of comments\&. This, e\&.g, a reference to "log10" in a comment will produce a spurious warning that <math\&.h> is required for portability\&.
.PP
Sufficiently perverse C++ can silently invalidate the brute\-force algorithm this tool uses\&. Example: if an overloaded function has different overloads from two different files, removing one may expose the other, changing runtime semantics without a compile\-time warning\&. Similarly, removing a later file containing a template specialization may lead to undefined behavior from a template defined in an earlier file\&. Use this with caution near such features, and test carefully\&.
.SH "AUTHOR"
.PP
......
......@@ -192,6 +192,10 @@ spot. <command>deheader</command> has an internal table of rules that
heads off the most common problems by suppressing deletion of headers
that are required for portability, but your mileage may vary.</para>
<para>The depenedency scanner does not ignore the text of comments.
This, e.g, a reference to "log10" in a comment will produce a spurious
warning that &lt;math.h&gt; is required for portability.</para>
<para>Sufficiently perverse C++ can silently invalidate the brute-force
algorithm this tool uses. Example: if an overloaded function has
different overloads from two different files, removing one may expose
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment