]> granicus.if.org Git - clang/commit
Include types when a definition's type differs from a prior declaration.
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Sep 2012 18:38:57 +0000 (18:38 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 20 Sep 2012 18:38:57 +0000 (18:38 +0000)
commita405b2523b8857e0ba7e6374648b14f618879f33
tree50bb04406dceeadcf042e1be44f931644742d9bb
parentb54b7646b2d00a85d80e40adf7c49553f150c736
Include types when a definition's type differs from a prior declaration.

This is some really old code (took me a while to find the test cases) & the
diagnostic text is slightly incorrect (it should really only apply to
re/declarations/, redefinitions are an error regardless of whether the types
match). Not sure if anyone cares about it, though.

For now this just makes the diagnostic more clear in less obvious cases where
the type of a declaration might not be explicitly written (eg: because it
uses decltype)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164313 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaDecl.cpp
test/Sema/types.c