[cfe-commits] r149014 - in /cfe/trunk: include/clang/Basic/TokenKinds.def include/clang/Parse/Parser.h lib/Parse/ParsePragma.cpp lib/Parse/Parser.cpp test/CodeGenCXX/pr11797.cpp test/CodeGenCXX/pragma-visibility.cpp

Sebastian Redl sebastian.redl at getdesigned.at
Sat Jan 28 04:22:12 PST 2012


On 26.01.2012, at 03:02, Rafael Espindola wrote:

> Author: rafael
> Date: Wed Jan 25 20:02:57 2012
> New Revision: 149014
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=149014&view=rev
> Log:
> Fix our handling of #pragma GCC visibility.
> Now the lexer just produces a token and the parser is the one responsible for
> activating it.
> This fixes problem like the one pr11797 where the lexer and the parser were not
> in sync. This also let us be more strict on where in the file we accept
> these pragmas.

I think it would be awesome if we had a more generic way of turning pragmas into tokens. It could help many uses of pragmas, I think, e.g. OpenMP.

Sebastian



More information about the cfe-commits mailing list