]> granicus.if.org Git - clang/commit
Tweak warning text for returning incomplete type from extern "C" functions.
authorHans Wennborg <hans@hanshq.net>
Tue, 24 Jul 2012 17:59:41 +0000 (17:59 +0000)
committerHans Wennborg <hans@hanshq.net>
Tue, 24 Jul 2012 17:59:41 +0000 (17:59 +0000)
commit168c07b93510aabd2a19af323d1132fffe498ee4
tree8ad4328ff2f5b6398b4d77022384ace64d81ddf4
parentdb13f04dd0579874932bdb958647d0903f632dd4
Tweak warning text for returning incomplete type from extern "C" functions.

A warning was added in r150128 for returning non-C compatible
user-defined types from functions with C linkage.

This makes the text more clear for the case when the type isn't
decidedly non-C compatible, but incomplete.

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