]> granicus.if.org Git - clang/commit
Sema: Check dll attributes on redeclarations
authorNico Rieck <nico.rieck@gmail.com>
Mon, 31 Mar 2014 14:56:15 +0000 (14:56 +0000)
committerNico Rieck <nico.rieck@gmail.com>
Mon, 31 Mar 2014 14:56:15 +0000 (14:56 +0000)
commit59c123020a78ea27d43aea22595bac380bd0ccc1
tree44915de6d69d00bed9aa213879dfe86a8cbc1ec7
parentd29984e9b810124745efba956bd126a2dbf6e4e1
Sema: Check dll attributes on redeclarations

A redeclaration may not add dllimport or dllexport attributes. dllexport is
sticky and can be omitted on redeclarations while dllimport cannot.

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