summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/function-extern-c.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Diagnose about extern "C" functions returning c++ objectsFariborz Jahanian2013-03-141-1/+36
| | | | | | on first declaration only. // rdar://13364028 llvm-svn: 177127
* Add a getLanguageLinkage method to VarDecls and FunctionDecls. Use it to fixRafael Espindola2013-02-141-0/+10
| | | | | | | | | | | | | | | 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. llvm-svn: 175117
* Use hasCLanguageLinkage when warning about non C return types.Rafael Espindola2012-12-301-0/+13
| | | | llvm-svn: 171263
* Tweak warning text for returning incomplete type from extern "C" functions.Hans Wennborg2012-07-241-0/+2
| | | | | | | | | | 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. llvm-svn: 160681
* Adding support for warning when a non-C compatible user-defined type is ↵Aaron Ballman2012-02-091-0/+38
returned from an extern "C" function. Fixes bug 6143 llvm-svn: 150128
OpenPOWER on IntegriCloud