diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2014-02-22 03:05:49 +0000 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2014-02-22 03:05:49 +0000 |
| commit | 3d8ada65463bb8f60bfa08964050e40eab1caa36 (patch) | |
| tree | a0ee9f7bca317cdd5db4d4220db8c31b8949904b /lib/CodeGen/CodeGenFunction.cpp | |
| parent | c7ecd63edfc41546d1c6b18f4e0b9bc7c7f7c408 (diff) | |
| download | clang-3d8ada65463bb8f60bfa08964050e40eab1caa36.tar.gz clang-3d8ada65463bb8f60bfa08964050e40eab1caa36.tar.bz2 clang-3d8ada65463bb8f60bfa08964050e40eab1caa36.tar.xz | |
Do not add enums to prototype scope in C++ modes.
The language forbids defining enums in prototypes, so this check is normally
redundant, but if an enum is defined during template instantiation it should
not be added to the prototype scope.
While at it, clean up the code that deals with tag definitions in prototype
scope and expand the visibility warning to cover the case where an anonymous
enum is defined.
Differential Revision: http://llvm-reviews.chandlerc.com/D2742
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201927 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
