History log of /external/clang/test/SemaCXX/function-extern-c.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
96db329b3a982ac83c700c4469a3f618dc53cb42 15-Mar-2013 Fariborz Jahanian <fjahanian@apple.com> Diagnose about extern "C" functions returning c++ objects
on first declaration only. // rdar://13364028


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@177127 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/function-extern-c.cpp
950fee2555f7a6bd193e588d6b6a941fd182391a 14-Feb-2013 Rafael Espindola <rafael.espindola@gmail.com> Add a getLanguageLinkage method to VarDecls and FunctionDecls. Use it to fix
some cases where functions with no language linkage were being treated as having
C language linkage. In particular, don't warn in

extern "C" {
static NonPod foo();
}

Since getLanguageLinkage checks the language linkage, the linkage computation
cannot use the language linkage. Break the loop by checking just the context
in the linkage computation.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175117 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/function-extern-c.cpp
de210a51dc26de6bee00a9ab172111c6f245a9fe 30-Dec-2012 Rafael Espindola <rafael.espindola@gmail.com> Use hasCLanguageLinkage when warning about non C return types.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/function-extern-c.cpp
168c07b93510aabd2a19af323d1132fffe498ee4 24-Jul-2012 Hans Wennborg <hans@hanshq.net> 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
/external/clang/test/SemaCXX/function-extern-c.cpp
2c0bf2437089f9a297cf18530361a185e76f2150 09-Feb-2012 Aaron Ballman <aaron@aaronballman.com> Adding support for warning when a non-C compatible user-defined type is returned from an extern "C" function.

Fixes bug 6143

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150128 91177308-0d34-0410-b5e6-96231b3b80d8
/external/clang/test/SemaCXX/function-extern-c.cpp