[cfe-dev] Newby questions
neil at daikokuya.co.uk
Fri Aug 31 18:02:33 PDT 2007
Hartmut Kaiser wrote:-
> 1. I couldn't find any build instructions/project files to build clang using
> MSVC8, so I decided to create these. I tried to use similar build settings
> as have been used in the corresponding MSVC project files for LLVM. Almost
> everything compiled fine, except for a bigger issue and some really minor
> platform specific issues, which I have been able to address. The bigger
> issue is that the clang::FileEntry class retrieves the size of the file
> using stat, but because of the EOL translation done on Windows the file
> usually is smaller in memory than it is on disk. I introduced a hack in the
> ReadFileFast() function to circumvent an infinite loop there, but this has
> other effects I'm not able to resolve ad hoc. How is this solved in LLVM?
I think we should be reading the files in binary mode.
> 3. After getting these assertions I moved to the test/Lexer directory to
> see, if the preprocessor is working. The tests there seem to pass. So I
> started to feed the files from the Boost.Wave testsuite to clang in pp mode
> (clang -E). Unfortunately many of these tests fail (produce wrongly
> preprocessed output). Is this a known issue? Would there be any interest in
> using Boost.Wave as the preprocessor/lexer for clang?
I doubt it; Chris wrote it for speed and for the interface it provides
the front end. We should just fix whatever the failures are. Stuff
like UCNs aren't yet implemented.
Just my opinions above.
More information about the cfe-dev