Originally reported on Google Code with ID 67
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!)
consider main.cpp :
#define CSTDLIB <cstdlib>
#include CSTDLIB
then try to compile :
> include-what-you-use main.cpp
What is the expected output?
>main.cpp should add these lines:
>
>main.cpp should remove these lines:
>- #include <cstdlib> // lines 2-2
>
>The full include-list for main.cpp:
>---
What do you see instead?
>iwyu_lexer_utils.cc:84: Assertion failed: false && "Unexpected token being #included"
>Stack dump:
>0. main.cpp:2:2: current parser token 'include'
>Aborted
What version of the product are you using? On what operating system?
svn trunk r349
Please provide any additional information below.
For instance this prevents analyzing any code depending on Boost because of boost/config.hpp
being included
http://www.boost.org/doc/libs/1_49_0/boost/config.hpp
</cstdlib></cstdlib>
Reported by chatelet.guillaume on 2012-03-31 09:51:23
该提问来源于开源项目:include-what-you-use/include-what-you-use