]>
granicus.if.org Git - clang/log
Chris Lattner [Tue, 29 Jul 2008 03:46:33 +0000 (03:46 +0000)]
add a crazy idea
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54151
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Jul 2008 06:13:09 +0000 (06:13 +0000)]
fix tag
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54121
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Jul 2008 06:10:19 +0000 (06:10 +0000)]
list delta and distcc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54120
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sun, 27 Jul 2008 05:46:18 +0000 (05:46 +0000)]
Minor tweak plus a couple of FIXMEs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54119
91177308 -0d34-0410-b5e6-
96231b3b80d8
Eli Friedman [Sun, 27 Jul 2008 05:05:07 +0000 (05:05 +0000)]
Remove bashism; sh != bash on Ubuntu.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54118
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sun, 27 Jul 2008 03:47:53 +0000 (03:47 +0000)]
Fix serialization for TypedefType by allowing TypedefType to access the internal CanonicalType stored in Type.
The test case Serialization/stmt_exprs.c now passes.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54117
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Jul 2008 00:48:22 +0000 (00:48 +0000)]
make "call foo.dump()" and "call foo->dump()" work in GDB,
with QualTypes and Types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54116
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Jul 2008 00:06:09 +0000 (00:06 +0000)]
remove QualType::getCanonicalType. Also make
QualType::ReadBackpatch public so that FieldDecl doesn't need
to be a friend of QualType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54115
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 27 Jul 2008 00:05:05 +0000 (00:05 +0000)]
remove two uses of getCanonicalType I missed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54114
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 23:54:49 +0000 (23:54 +0000)]
clean up the footer a bit more.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54113
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 23:52:26 +0000 (23:52 +0000)]
remove SSIs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54112
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 23:51:08 +0000 (23:51 +0000)]
Add the right path to the lines image.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54111
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 23:45:57 +0000 (23:45 +0000)]
link to doxygen dox
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54110
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:40:28 +0000 (22:40 +0000)]
Comment out the last call to QualType::getCanonicalType. This *breaks*
Serialization/stmt_exprs.c, but I don't know the right solution. Will fix
when I get a chance to talk to Ted about it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54109
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:39:33 +0000 (22:39 +0000)]
Fix a bug in my previous patch, CGF is not valid for constants outside a function
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54108
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:37:01 +0000 (22:37 +0000)]
remove uses of QualType::getCanonicalType() from codegen for PR2189
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54107
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:36:27 +0000 (22:36 +0000)]
remove some unneeded calls to getCanonicalType
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54106
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:17:49 +0000 (22:17 +0000)]
change more instances of QualType::getCanonicalType to call
ASTContext::getCanonicalType instead (PR2189)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54105
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 22:09:09 +0000 (22:09 +0000)]
alphabeticalize a bit better.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54104
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Sat, 26 Jul 2008 21:32:24 +0000 (21:32 +0000)]
Add doxygen support
- Stolen from LLVM with minor modifications
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54103
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 21:30:36 +0000 (21:30 +0000)]
convert more code to use ASTContext to get canonical types instead
of doing it directly. This is required for PR2189.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54102
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 20:50:02 +0000 (20:50 +0000)]
remove a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54101
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 20:23:23 +0000 (20:23 +0000)]
implement codegen support for labels at the end of stmtexprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54100
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 20:15:14 +0000 (20:15 +0000)]
minor tidying, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54099
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 19:51:01 +0000 (19:51 +0000)]
fix some problems handling stmtexprs with labels (PR2374), and
improve 'expression unused' diagnostics for stmtexprs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54098
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 19:24:43 +0000 (19:24 +0000)]
fix an extraneous blank line in -ast-dump output.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54097
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 19:15:11 +0000 (19:15 +0000)]
testcase for PR2416, which we already handle correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54096
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Sat, 26 Jul 2008 05:21:44 +0000 (05:21 +0000)]
Remove some old text.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54095
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 04:13:19 +0000 (04:13 +0000)]
Pull protocol resolution of out ActOnStartClassInterface, this is also the
last client of the old ParseObjCProtocolReferences, so it also removes it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54094
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 04:07:02 +0000 (04:07 +0000)]
refactor protocol resolution out of ActOnStartCategoryInterface
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54093
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 04:03:38 +0000 (04:03 +0000)]
pull protocol resolution out into ActOnStartProtocolInterface.
This temporarily duplicates ParseObjCProtocolReferences, but it
will be removed in the future.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54092
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 03:47:43 +0000 (03:47 +0000)]
simplify some code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54091
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 03:40:25 +0000 (03:40 +0000)]
remove duplicate error message.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54090
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 03:38:44 +0000 (03:38 +0000)]
< only starts a declspec in objc mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54089
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 01:56:46 +0000 (01:56 +0000)]
remove fixed fixme
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54088
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 01:53:50 +0000 (01:53 +0000)]
make DeclSpec manage its own protocol qualifier list memory instead of having
clients allocate the memory and it delete it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54087
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 01:18:38 +0000 (01:18 +0000)]
Fix hte next wave of problems with protocol qualified ID:
1) reject stuff like "id<foo> short" and "<foo> short". 2) set
the declspec range correctly 3) only parse protocol qualifiers
when in objc mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54086
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 01:04:40 +0000 (01:04 +0000)]
remove objc prefixes from these tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54085
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 00:57:24 +0000 (00:57 +0000)]
move all objc sema tests into a new SemaObjC directory. Next step is to
remove the objc- prefix from the tests that use it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54084
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 00:46:50 +0000 (00:46 +0000)]
fix several problems with the protocol qualified id handling where id was implicit.
First, fix canonical type handling of these, since protocol qualified id's are always
canonical. Next, enhance SemaType to actually make these when used (instead of int)
allowing them to actually be used when appropriate. Finally remove a bunch of logic
relating to the mishandling of canonical types with protocol-qual id's. This fixes
rdar://
5986251
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54083
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 00:20:22 +0000 (00:20 +0000)]
improve handling of the horrible GCC objc extension that treats "<foo>"
like "id<foo>". This 1) fixes an infinite loop in the parser on things
like "short<foo>" 2) emits a warning about this bogus construct and 3)
changes the testcase to be substantially reduced.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54082
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 26 Jul 2008 00:16:04 +0000 (00:16 +0000)]
add a new diag helper that takes a range.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54081
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:52:49 +0000 (23:52 +0000)]
GCC supports the complex conjugate operator (an extension) on complex int
as well as complex float. rdar://
6097730
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54080
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:41:08 +0000 (23:41 +0000)]
fix diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54079
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:40:10 +0000 (23:40 +0000)]
Fix rdar://
6103124 , the only dummy blocks are ones without names. Named blocks
are important part of control flow structures.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54078
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 23:34:29 +0000 (23:34 +0000)]
Added project idea for a doxygen-like tool built using clang
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54076
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:30:42 +0000 (23:30 +0000)]
fix 80 col violation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54075
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:18:17 +0000 (23:18 +0000)]
Fix rdar://
6095136 , various crashes with incomplete enum types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54074
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 23:07:18 +0000 (23:07 +0000)]
minor cleanup
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54073
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 25 Jul 2008 22:39:30 +0000 (22:39 +0000)]
Remove unused ASTConsumer::HandleTopLevelDeclaration
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54071
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 22:25:12 +0000 (22:25 +0000)]
move a method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54069
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 22:06:10 +0000 (22:06 +0000)]
Fix a couple bugs in aggregate cast processing: 1) fix precedecence
problem with &&/||. 2) use canonical types for comparison instead
of raw types. 3) emit an ext-warn for a gnu extension.
Also simplify the code to make it less nested.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54068
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 22:03:03 +0000 (22:03 +0000)]
Format string errors should underling the format string, not the function name.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54067
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 21:45:37 +0000 (21:45 +0000)]
make sizeof/alignof diagnostics highlight their operand with a sourcerange.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54066
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 21:33:13 +0000 (21:33 +0000)]
c89 does not perform array -> pointer promotion unless the array is an lvalue. This
is different than C99. This fixes the rest of rdar://
6095180 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54064
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 21:10:04 +0000 (21:10 +0000)]
move some code, no other change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54063
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 21:05:04 +0000 (21:05 +0000)]
Updated latest checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54060
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 25 Jul 2008 20:54:30 +0000 (20:54 +0000)]
Fix long double test case
- Had wrong sizeof(long double) encoded into test case
- Results now agree with llvm-gcc
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54059
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 20:54:07 +0000 (20:54 +0000)]
In c99 mode, comma does do function/array promotion even though
it does not do unary promotions (like short->int).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54058
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 20:43:38 +0000 (20:43 +0000)]
Refine ObjCPropertyImplDecl:
- Remove a bunch of setXXX methods until we actually need them. This cleans up the
interface, and makes the object immutable until we have a reason to be mutable.
- Remove enum value OBJC_PR_IMPL_None since it was never used.
- Remove instance variable 'PropertyImplKind PropertyImplementation;'. This is
not needed because we can tell if ObjCPropertyImplDecl represents @synthesize
if 'ObjCPropertyDecl *PropertyDecl' is not null.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54055
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 20:35:01 +0000 (20:35 +0000)]
Enabled 'unused ivars' check by default.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54052
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 20:30:34 +0000 (20:30 +0000)]
Remove '.' in expected warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54051
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 20:28:02 +0000 (20:28 +0000)]
Have the UnusedIvar check skip ivars with setters/getters created by @synthesize.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54050
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 20:17:24 +0000 (20:17 +0000)]
X86 builtin fixes
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54049
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 20:16:05 +0000 (20:16 +0000)]
Generate vector compares in codegen
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54048
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 20:15:41 +0000 (20:15 +0000)]
Move comment to match style
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54047
91177308 -0d34-0410-b5e6-
96231b3b80d8
Nate Begeman [Fri, 25 Jul 2008 20:15:14 +0000 (20:15 +0000)]
De-tabify
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54046
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 20:02:29 +0000 (20:02 +0000)]
Comma does not perform unary promotions, rdar://
6095180
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54045
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 19:54:55 +0000 (19:54 +0000)]
gcc requires a semicolon at the end of an interface, unlike its extension for structs.
rdar://
6095245 .
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54044
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Fri, 25 Jul 2008 19:39:00 +0000 (19:39 +0000)]
Cleaunup Sema::ActOnClassMessage(). This commit:
(a) removes a bogus warning.
(b) removes an undesirable usage of the ObjCMessageExpr constructor that takes an IdentifierInfo * (which I will abolish).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54042
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 18:44:27 +0000 (18:44 +0000)]
Reject typedef redefinitions when the underlying types are not identical,
even if in a system header etc. rdar://
6079937
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54038
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 18:42:46 +0000 (18:42 +0000)]
update this testcase.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54037
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 25 Jul 2008 18:41:57 +0000 (18:41 +0000)]
Add test case for hex floating point constants in < C99 mode
- For: rdar://
6096838
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54036
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 18:18:34 +0000 (18:18 +0000)]
In c89 mode accept hex fp constants as an extension:
t2.c:1:17: warning: hexadecimal floating constants are a C99 feature
long double d = 0x0.0000003ffffffff00000p-16357L;
^
instead of emitting a weird error message that doesn't make sense:
t2.c:1:41: error: hexadecimal floating constants require an exponent
long double d = 0x0.0000003ffffffff00000p-16357L;
^
rdar://
6096838
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54035
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 18:17:35 +0000 (18:17 +0000)]
Remove call to isSEL and isSEL itself since the call is dead (isObjCObjectPointerType() will never return true for selectors).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54034
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 18:07:19 +0000 (18:07 +0000)]
Add support for __extension__ as an lvalue. rdar://
6097308
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54033
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Fri, 25 Jul 2008 17:57:26 +0000 (17:57 +0000)]
Move fix in r54013 from the parser to sema.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54032
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 17:04:49 +0000 (17:04 +0000)]
Only warn about missing/incomplete -dealloc implementations when a class contains a non-SEL, non-IBOutlet ivar that references an ObjC object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54024
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 16:37:06 +0000 (16:37 +0000)]
comment out #pragma mark and #warning directives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54020
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 16:29:12 +0000 (16:29 +0000)]
rewrite handling of the raw token stream in -rewrite-macros to lex
everything up front into a vector. This makes it easier to scan around
the stream when needed.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54019
91177308 -0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Fri, 25 Jul 2008 16:06:51 +0000 (16:06 +0000)]
alphabeticalize
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54018
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Fri, 25 Jul 2008 15:41:30 +0000 (15:41 +0000)]
Fix RewriteObjC::RewriteObjCThrowStmt() to respect whitespace between the @ and throw.
This fixes <rdar://problem/
5988388 > clang ObjC rewriter: mystery 'w' inserted in exception throw.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54017
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Fri, 25 Jul 2008 14:30:25 +0000 (14:30 +0000)]
Fix Parser::ParseObjCMethodDefinition(). Only call the actions module for valid MDecl's.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54013
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 05:21:03 +0000 (05:21 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54012
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 04:47:34 +0000 (04:47 +0000)]
Don't emit 'dead initialization' warnings for variables marked 'unused'.
This fixes PR 2573: http://llvm.org/bugs/show_bug.cgi?id=2573
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54009
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Fri, 25 Jul 2008 04:39:19 +0000 (04:39 +0000)]
Implemented Sema support for attribute "unused".
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54008
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 25 Jul 2008 01:11:38 +0000 (01:11 +0000)]
Rework codegen of case ranges
- Fix multiple issues with the way case ranges were emitted, see test
cases details about the specific issues.
- The root issue was not being careful about how basic blocks were
emitted which led to them being chained together incorrectly,
resulting in improper control flow.
- Fixes <rdar://problem/
6098585 >
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54006
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Fri, 25 Jul 2008 01:05:44 +0000 (01:05 +0000)]
Allow CLANG env variable to override "clang" command in TestRunner.sh
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54005
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 23:59:07 +0000 (23:59 +0000)]
Use ASTContext::isObjCObjectPointerType() to check if an ivar is a reference to an Objective-C object.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53999
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 23:58:27 +0000 (23:58 +0000)]
Move isObjCObjectPointerType() from Sema to ASTContext.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53998
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 22:20:01 +0000 (22:20 +0000)]
Update VS project.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53995
91177308 -0d34-0410-b5e6-
96231b3b80d8
Steve Naroff [Thu, 24 Jul 2008 19:44:33 +0000 (19:44 +0000)]
Fix Sema::ActOnClassMessage() to pass through the identifier for "super".
This fixes a critical rewriter bug (<rdar://problem/
6096760 > clang ObjC rewriter: 'self' not expected value in class method called with 'super').
Also added a couple FIXME's since I'm not happy with my fix to Sema. It would be nicer if the super handling for class/instance messages was the same (based on PreDefinedExpr).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53994
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 18:47:16 +0000 (18:47 +0000)]
Correctly handle NSAssertionHandle -handleFailureInMethod:object:file:lineNumber:description:
This fixes: http://llvm.org/bugs/show_bug.cgi?id=2593
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53993
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 18:15:01 +0000 (18:15 +0000)]
Updated checker build.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53992
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 17:45:56 +0000 (17:45 +0000)]
Don't issue a missing +dealloc warning for classes that just contain SEL ivars.
This fixes PR 2592: http://llvm.org/bugs/show_bug.cgi?id=2592
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53987
91177308 -0d34-0410-b5e6-
96231b3b80d8
Daniel Dunbar [Thu, 24 Jul 2008 17:38:50 +0000 (17:38 +0000)]
Fix comment
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53986
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 17:02:18 +0000 (17:02 +0000)]
Rename test case file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53984
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 17:01:17 +0000 (17:01 +0000)]
Issue dead store warnings for preincrements involved in a subexpression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53983
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 03:52:21 +0000 (03:52 +0000)]
Ignore -MT and -MF.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53977
91177308 -0d34-0410-b5e6-
96231b3b80d8
Ted Kremenek [Thu, 24 Jul 2008 03:49:15 +0000 (03:49 +0000)]
"This patch adds paths for Fedora 9 in clang.cpp and support for two preprocessor options in ccc."
Patch by Zhongxing Xu!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53976
91177308 -0d34-0410-b5e6-
96231b3b80d8