Originally reported on Google Code with ID 60
What steps will reproduce the problem? Give the *exact* arguments passed
to include-what-you-use, and attach the input source file that gives the
problem (minimal test-cases are much appreciated!)
1. Use iwyu on a file missing some system includes
2. Compiling using cmake (cf #26), but issue is not related
What is the expected output? What do you see instead?
This is what I get:
#include <stdlib.h> // for atoi, atof, EXIT_SUCCESS
#include <string> // for operator==
#include "new" // for operator delete[], etc
#include "ostream" // for operator<<
I'd like to get:
#include <stdlib.h> // for atoi, atof, EXIT_SUCCESS
#include <string> // for operator==
#include <new> // for operator delete[], etc
#include <ostream> // for operator<<
What version of the product are you using? On what operating system?
iwyu revision: 304
gcc 4.6.1 on a Linux Debian testing.
Please provide any additional information below.
I suspect it's related to some missing case in iwyu_include_picker.cc
I will come with a minimal test case if necessary.
</ostream></new></string></stdlib.h></string></stdlib.h>
Reported by emmanuel.christophe on 2011-09-23 05:49:35
该提问来源于开源项目:include-what-you-use/include-what-you-use