]> granicus.if.org Git - clang/commit
[Parse] Parse '#pragma clang attribute' as an external-declaration
authorErik Pilkington <erik.pilkington@gmail.com>
Wed, 13 Mar 2019 18:30:59 +0000 (18:30 +0000)
committerErik Pilkington <erik.pilkington@gmail.com>
Wed, 13 Mar 2019 18:30:59 +0000 (18:30 +0000)
commit32f5643c4e866373e8130af7c6fce643c374bf82
tree1a8abb363bfb93411fc0c244e9312f9febf52758
parentd6626f448a2bcb40cc1a318971abdc98c9072ec2
[Parse] Parse '#pragma clang attribute' as an external-declaration

Previously, we parsed it only in the top level, which excludes namespaces and
extern "C" blocks.

rdar://problem/48818890

Differential revision: https://reviews.llvm.org/D59282

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@356075 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/Parser.cpp
test/Parser/pragma-attribute-context.cpp [new file with mode: 0644]