Move the check that gives functions with unique-external types unique-external
linkage into Decl.cpp. Disable this logic for extern "C" functions, because the operative rule there is weaker. Fixes rdar://problem/8898466 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125268 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/AST/ASTContext.cpp 0 additions, 4 deletionslib/AST/ASTContext.cpp
- lib/AST/Decl.cpp 13 additions, 0 deletionslib/AST/Decl.cpp
- test/SemaCXX/linkage.cpp 11 additions, 0 deletionstest/SemaCXX/linkage.cpp
- test/SemaCXX/warn-unused-filescoped.cpp 9 additions, 1 deletiontest/SemaCXX/warn-unused-filescoped.cpp
Loading
Please register or sign in to comment