]> granicus.if.org Git - clang/commit
Diagnose enum redeclarations properly
authorAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 11:31:06 +0000 (11:31 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 11:31:06 +0000 (11:31 +0000)
commitfe945a37b5d700acf4ef264b6e2c4ab43d771b46
treee2cceff21e5cda89b5c1f7a853919fad89029495
parent5e3c8acfedc7726810bf376bc8e32c8c686fc3a3
Diagnose enum redeclarations properly

In all three checks, the note indicates a previous declaration and never a 'use'.

Before:

  enum-scoped.cpp:92:6: note: previous use is here
    enum Redeclare6 : int;
         ^

After:

  enum-scoped.cpp:92:6: note: previous declaration is here
    enum Redeclare6 : int;
         ^

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/SemaCXX/enum-scoped.cpp