Anders Carlsson
0d5f37b81a
Use the struct builder for unions.
...
llvm-svn: 77732
2009-07-31 21:34:04 +00:00
Mike Stump
dd93a19ac6
Fixup spacing and 80-col violations.
...
llvm-svn: 77731
2009-07-31 21:31:32 +00:00
Owen Anderson
0b75f23b94
Update for LLVM API change.
...
llvm-svn: 77722
2009-07-31 20:28:54 +00:00
Argyrios Kyrtzidis
260a4703a9
For a CXXOperatorCallExpr, fix the order that StmtLocResolver uses to check subexpressions.
...
llvm-svn: 77713
2009-07-31 19:02:11 +00:00
Douglas Gregor
ef4e4cca07
Make the recanonicalization-for-an-out-of-line-definition test case a bit trickier
...
llvm-svn: 77707
2009-07-31 18:36:42 +00:00
Douglas Gregor
1b2596ba36
Allow one to update the type representation of the declaration specifiers. Will be used by an upcoming commit.
...
llvm-svn: 77703
2009-07-31 18:34:30 +00:00
Douglas Gregor
b9a955dc1d
Remove a redundant getCanonicalType call
...
llvm-svn: 77702
2009-07-31 18:32:42 +00:00
Mike Stump
bc78a728ee
Add code to setup the vtable pointer in the constructor. Work in progress.
...
llvm-svn: 77699
2009-07-31 18:25:34 +00:00
Devang Patel
fe6bbd1145
New test case for rev. 77694.
...
llvm-svn: 77698
2009-07-31 18:24:12 +00:00
Daniel Dunbar
cd4c338437
MultiTestRunner: Fix invalid warning when pointing 'lit' directly at a test.
...
llvm-svn: 77690
2009-07-31 18:12:18 +00:00
Mike Stump
f332516136
Fix spacing.
...
llvm-svn: 77688
2009-07-31 17:46:44 +00:00
Owen Anderson
fe4e34707c
Update for LLVM API change.
...
llvm-svn: 77686
2009-07-31 17:39:36 +00:00
Douglas Gregor
4571a4a760
Fix 80-col violation
...
llvm-svn: 77683
2009-07-31 16:50:39 +00:00
Douglas Gregor
1d1d16c43e
Make canonicalization of overloaded function declarations match the
...
Itanium C++ ABI's name mangling, since both are related to the notion
of "equivalent" function templates.
llvm-svn: 77678
2009-07-31 16:07:31 +00:00
Douglas Gregor
c97f09f565
Canonicalize template template parameters. We can't test this yet, but
...
it's "obviously correct" :)
llvm-svn: 77677
2009-07-31 15:46:56 +00:00
Douglas Gregor
70317123c9
Canonicalize function parameters
...
llvm-svn: 77676
2009-07-31 15:45:02 +00:00
Daniel Dunbar
1087599185
MultiTestRunner: Add module for lexing 'sh' commands.
...
llvm-svn: 77668
2009-07-31 07:59:05 +00:00
Daniel Dunbar
20a8d48e76
Add missing test suffixes.
...
llvm-svn: 77666
2009-07-31 05:57:11 +00:00
Daniel Dunbar
3667b99af3
MultiTestRunner: Simplify, cleanup, and rename!
...
- MultiTestRunner will eventually be renamed to 'lit', for LLVM integrated
tester/testing. This has the pros of being pronouncable and short.
- "Project" level configuration lives in 'lit.cfg', which is also what lit uses
to find the root testing directory in some cases. This can be overridden for
use in project files which want to precisely specify where things are.
- TestRunner.py is not longer able to be invoked directly.
- Moved some code to Util.py.
- Introduced a configuration object.
- Cleaned up --help, removed a few not-very-useful options.
- Tried not to break anything that works. :)
llvm-svn: 77665
2009-07-31 05:54:17 +00:00
Douglas Gregor
802a030d6e
Canonicalization and profiling for overloaded function declarations,
...
for those extra-esoteric cases. Not that any two given C++ compilers
agree on this test case, but this change gives us a strong definition
of equivalent types.
llvm-svn: 77664
2009-07-31 05:24:01 +00:00
Douglas Gregor
352169aed4
Canonicalize dependent extended vector types.
...
llvm-svn: 77663
2009-07-31 03:54:25 +00:00
Ryan Flynn
d963a49756
PR3679 - enable #pragma weak aliasing.
...
llvm-svn: 77660
2009-07-31 02:52:19 +00:00
John McCall
9bb74a5ef5
Rename Action::TagKind to Action::TagUseKind, which removes both a misnomer
...
and a name collision.
llvm-svn: 77658
2009-07-31 02:45:11 +00:00
John McCall
ef50e99783
sp.
...
llvm-svn: 77656
2009-07-31 02:20:35 +00:00
Mike Stump
e9c6ffc7d1
Whitespace around else canonicalization and fix 80-col violations.
...
llvm-svn: 77655
2009-07-31 02:02:20 +00:00
Eli Friedman
dfbd0c4b0d
Make the check for the linkage of a template handle the case of nested
...
linkage specifications correctly.
llvm-svn: 77653
2009-07-31 01:43:05 +00:00
Anders Carlsson
a076d14514
Add CK_DerivedToBase and use it PerformObjectMemberConversion.
...
llvm-svn: 77652
2009-07-31 01:23:52 +00:00
Mike Stump
5b78af9ed7
Fix build warnings.
...
llvm-svn: 77651
2009-07-31 01:10:29 +00:00
Anders Carlsson
a26159261c
Add a CastKind enum to CastExpr. Right now it's not used for much but it will be :)
...
llvm-svn: 77650
2009-07-31 00:48:10 +00:00
Ted Kremenek
df4b3dc3a4
Fix use-after-release bug introduced in r77585 where the PathDiagnosticClient
...
created by AnalysisConsumer would be released by an instance of AnalysisManager
and then reused by later instances of AnalysisManager. Ownership of the
PathDiagnosticClient now belongs (for now) in AnalysisConsumer.
We also need this layering (for now) because the HTMLDiagnostiClient requires
that the entire translation unit be processed before emitting diagnostics. This
is done in its destructor (which should also be fixed, but that is another
issue).
This fixes PR 4653.
llvm-svn: 77648
2009-07-31 00:34:52 +00:00
Douglas Gregor
f3f955279b
Build canonical types for dependently-sized array types.
...
llvm-svn: 77647
2009-07-31 00:23:35 +00:00
Ted Kremenek
bfe393fa0a
Add scan-build option '-no-failure-reports' to supress the creation of a 'failures' subdirectory that includes crash reports, preprocessed files, etc.
...
llvm-svn: 77644
2009-07-30 23:55:19 +00:00
Douglas Gregor
a21f6c3c71
Canonicalization of dependent C++0x decltype types.
...
llvm-svn: 77643
2009-07-30 23:36:40 +00:00
Fariborz Jahanian
6f14c73087
Synthesize the default constructor which has not
...
been declared as needed.
llvm-svn: 77641
2009-07-30 23:22:00 +00:00
Douglas Gregor
a5dd9f858f
Canonicalization for dependent typeof(expr) types.
...
llvm-svn: 77639
2009-07-30 23:18:24 +00:00
Owen Anderson
7ec07a573c
Update for LLVM API changes.
...
llvm-svn: 77638
2009-07-30 23:11:26 +00:00
Anders Carlsson
5c5f160c7f
Diagnose unused expression results for all statements, just not compound statements.
...
llvm-svn: 77631
2009-07-30 22:39:03 +00:00
Anders Carlsson
499de4252d
Add casts to avoid a bunch of unused expr warnings. (They aren't reported right now due to a bug that I intend to fix). Ted, please review.
...
llvm-svn: 77630
2009-07-30 22:37:41 +00:00
Mike Stump
658fe02d17
Canonicalize else spacing.
...
llvm-svn: 77629
2009-07-30 22:28:39 +00:00
Anders Carlsson
59a2ab9720
Factor code out into a DiagnoseUnusedExprResult function.
...
llvm-svn: 77628
2009-07-30 22:17:18 +00:00
Mike Stump
a523b2d7a0
Note some other limitations.
...
llvm-svn: 77626
2009-07-30 21:47:44 +00:00
Mike Stump
57724c2f7e
Update based upon comments. Explain why we have an assert.
...
llvm-svn: 77612
2009-07-30 18:01:44 +00:00
Mike Stump
44b8e90369
We'll also need a vtable pointer if we have virtual bases.
...
llvm-svn: 77610
2009-07-30 17:53:53 +00:00
Douglas Gregor
833834fcab
What luck! Clang obtains support for refering to members of the
...
current instantiation when that current instantiation is a class
template partial specialization.
llvm-svn: 77609
2009-07-30 17:50:56 +00:00
Fariborz Jahanian
aa01d2a532
Patch for future ir-gen for destructor calls.
...
llvm-svn: 77608
2009-07-30 17:49:11 +00:00
Ted Kremenek
118cef36b8
Lexically order files.
...
llvm-svn: 77607
2009-07-30 17:41:23 +00:00
Douglas Gregor
1530138fd0
Support out-of-line definitions of the members of class template
...
partial specializations.
llvm-svn: 77606
2009-07-30 17:40:51 +00:00
Douglas Gregor
4e5a974c00
Initialize an otherwise-wild pointer. Fixes a crashy analyzer
...
llvm-svn: 77599
2009-07-30 16:10:26 +00:00
Benjamin Kramer
2a94b3dcdb
fix cmake build
...
llvm-svn: 77589
2009-07-30 10:38:43 +00:00
Zhongxing Xu
4b5d6bc33a
simple fixes.
...
llvm-svn: 77587
2009-07-30 09:14:54 +00:00