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 | fa1d4e106764325a08128322b483774b92351fee (patch) | |
tree | 230a5ab2d2395061b8c2618405a0c2aff9e6c296 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | b8d17e7a3b194414e071908004f81ee5fcf01b8d (diff) | |
download | llvm-fa1d4e106764325a08128322b483774b92351fee.zip llvm-fa1d4e106764325a08128322b483774b92351fee.tar.gz llvm-fa1d4e106764325a08128322b483774b92351fee.tar.bz2 |
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
llvm-svn: 201927
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions