Bug#722229: should not recommend getopt.h for getopt()

2014-03-21 Thread Jakub Wilk
* Russ Allbery r...@debian.org, 2013-09-09, 01:59: I suspect this sort of thing will be hard to fix, Actually, it's very easy to fix. It's a matter of adding this to one of the mapping files: { symbol: [ getopt, private, unistd.h, public ] }, { symbol: [ optarg, private, unistd.h, public

Bug#722229: should not recommend getopt.h for getopt()

2013-09-09 Thread Russ Allbery
Package: iwyu Version: 3.3-2 Severity: normal I suspect this sort of thing will be hard to fix, since the tool is based on clang, which in turn is just parsing the system headers, and that's how the glibc headers are constructed. But despite the fact that glibc defines getopt and friends