]> granicus.if.org Git - clang/commit
Fix our handling of #pragma GCC visibility.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Jan 2012 02:02:57 +0000 (02:02 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 26 Jan 2012 02:02:57 +0000 (02:02 +0000)
commit426fc94ed3bce15b55c43692537e3833388f0352
tree1b0293e3daf2ecea9f68a2e2348d7edf792ba738
parent027cb30af828f07750f9185782822297a5c57231
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149014 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TokenKinds.def
include/clang/Parse/Parser.h
lib/Parse/ParsePragma.cpp
lib/Parse/Parser.cpp
test/CodeGenCXX/pr11797.cpp [new file with mode: 0644]
test/CodeGenCXX/pragma-visibility.cpp