summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/pragma-attribute-context.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Parser] Emit descriptive diagnostic for misplaced pragmaSerge Pavlov2019-08-041-2/+1
| | | | | | | | | | | If a class or struct or union declaration contains a pragma that is not valid in this context, compiler issues generic error like "expected member name or ';' after declaration specifiers". With this change the error tells that this pragma cannot appear in this declaration. Differential Revision: https://reviews.llvm.org/D64932 llvm-svn: 367779
* Add a __has_extension check for '#pragma clang attribute' as an ↵Erik Pilkington2019-03-201-0/+4
| | | | | | | | external-declaration This was added in r356075. llvm-svn: 356600
* Fix a failing test.Erik Pilkington2019-03-131-2/+2
| | | | llvm-svn: 356087
* [Parse] Parse '#pragma clang attribute' as an external-declarationErik Pilkington2019-03-131-0/+34
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 llvm-svn: 356075
OpenPOWER on IntegriCloud