Highlight the previous underlying enum type when diagnosing a mismatch
authorAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 11:31:18 +0000 (11:31 +0000)
committerAlp Toker <alp@nuanti.com>
Mon, 6 Jan 2014 11:31:18 +0000 (11:31 +0000)
commitb9fa512954b1cd89958bdbd34b53329d6887e859
treed6bcfd61fe41a3ec46aad42106f7d45973d9b79b
parent8c44db50d646ae0d42c6473e096934c72fecdfd5
Highlight the previous underlying enum type when diagnosing a mismatch

enum-scoped.cpp:93:6: error: enumeration redeclared with different underlying type 'short' (was 'int')
  enum Redeclare6 : short;
       ^
enum-scoped.cpp:92:6: note: previous declaration is here
  enum Redeclare6 : int;
       ^            ~~~

The redeclaration source range is still missing but this is a step forward,
potentially edging towards a FixIt.

llvm-svn: 198601
clang/include/clang/AST/Decl.h
clang/lib/AST/Decl.cpp
clang/lib/Sema/SemaDecl.cpp