Adrian Prantl
bc068586ac
Revert "Revert r241620 and follow-up commits" and move the initialization
...
of the llvm targets from clang/CodeGen into ClangCheck.cpp and CIndex.cpp.
llvm-svn: 241653
2015-07-08 01:00:30 +00:00
Adrian Prantl
142ec39739
Revert r241620 and follow-up commits while investigating linux buildbot failures.
...
llvm-svn: 241642
2015-07-07 23:19:46 +00:00
Adrian Prantl
e50371b948
Wrap clang modules and pch files in an object file container.
...
This patch adds ObjectFilePCHContainerOperations uses the LLVM backend
to put the contents of a PCH into a __clangast section inside a COFF, ELF,
or Mach-O object file container.
This is done to facilitate module debugging by makeing it possible to
store the debug info for the types defined by a module alongside the AST.
rdar://problem/20091852
llvm-svn: 241620
2015-07-07 20:11:29 +00:00
Adrian Prantl
cbc368c5b5
Revert "Wrap clang module files in a Mach-O, ELF, or COFF container."
...
llvm-svn: 230454
2015-02-25 02:44:04 +00:00
Adrian Prantl
8bf7af3de8
Wrap clang module files in a Mach-O, ELF, or COFF container.
...
This is a necessary prerequisite for debugging with modules.
The .pcm files become containers that hold the serialized AST which allows
us to store debug information in the module file that can be shared by all
object files that were built importing the module.
This reapplies r230044 with a fixed configure+make build and updated
dependencies and testcase requirements. Over the last iteration this
version adds
- missing target requirements for testcases that specify an x86 triple,
- a missing clangCodeGen.a dependency to libClang.a in the make build.
rdar://problem/19104245
llvm-svn: 230423
2015-02-25 01:31:45 +00:00
Aaron Ballman
6c93b3e29c
Adding a -Wunused-value warning for expressions with side effects used in an unevaluated expression context, such as sizeof(), or decltype(). Also adds a similar warning when the expression passed to typeid() *is* evaluated, since it is equally likely that the user would expect the expression operand to be unevaluated in that case.
...
llvm-svn: 224465
2014-12-17 21:57:17 +00:00
Eli Friedman
5a8738ffe0
Fix regression from r184810.
...
Specifically, CallExpr::getCalleeDecl() can return null, so make sure to
handle that correctly.
llvm-svn: 184813
2013-06-25 01:55:41 +00:00
Eli Friedman
0423b76be1
Fix noexcept for delete expressions.
...
Using "delete" on a pointer to an incomplete type can't throw.
While I'm here, clean up the signature of the canCalleeThrow() helper.
llvm-svn: 184810
2013-06-25 01:24:22 +00:00
Andy Gibbs
c6e68daac0
Prior to adding the new "expected-no-diagnostics" directive to VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive.
...
llvm-svn: 166280
2012-10-19 12:44:48 +00:00
Richard Smith
9ca5c42582
Update all tests other than Driver/std.cpp to use -std=c++11 rather than
...
-std=c++0x. Patch by Ahmed Charles!
llvm-svn: 141900
2011-10-13 22:29:44 +00:00
Eli Friedman
622e4fcac6
PR9899: handle pseudo-destructors correctly in noexcept() expressions.
...
llvm-svn: 131220
2011-05-12 02:11:32 +00:00
Eli Friedman
c6587cc550
PR9882: Fix noexcept to deal with dependent new, delete, calls, and
...
dynamic_cast correctly.
llvm-svn: 131177
2011-05-11 05:22:44 +00:00
Sebastian Redl
52ddca23a7
Extend the noexcept expression test to test noexcept specification functions.
...
llvm-svn: 127693
2011-03-15 20:45:42 +00:00
Anders Carlsson
6774b1f1c1
Add -fcxx-exceptions to all tests that use C++ exceptions.
...
llvm-svn: 126599
2011-02-28 00:40:07 +00:00
Anders Carlsson
479d6f51e3
Pass -fexceptions to all tests that use try/catch/throw.
...
llvm-svn: 126037
2011-02-19 19:23:03 +00:00
Sebastian Redl
a8bac37bb1
Test destructors in delete expressions and of temporaries for throwing.
...
llvm-svn: 113664
2010-09-10 23:27:10 +00:00
Sebastian Redl
b8a76c42b5
Address Doug's comments.
...
llvm-svn: 113650
2010-09-10 22:34:40 +00:00
Sebastian Redl
e56be2f72c
Eli helped me understand how evaluation contexts work.
...
llvm-svn: 113642
2010-09-10 21:57:27 +00:00
Sebastian Redl
8c40ba392c
Test CXXNoexceptExpr codegen and serialization.
...
llvm-svn: 113630
2010-09-10 21:04:03 +00:00
Sebastian Redl
4fa4a6b85e
Add another small test case.
...
llvm-svn: 113628
2010-09-10 21:03:58 +00:00
Sebastian Redl
dbd14bdefc
Tests for noexcept in templates.
...
llvm-svn: 113625
2010-09-10 20:55:50 +00:00
Sebastian Redl
5f0180d815
First version of a testcase, plus fixes.
...
llvm-svn: 113624
2010-09-10 20:55:47 +00:00