- Feb 27, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 65656
-
Chris Lattner authored
llvm-svn: 65653
-
Douglas Gregor authored
llvm-svn: 65652
-
Ted Kremenek authored
'.' or '->'. llvm-svn: 65651
-
Ted Kremenek authored
building nested member expressions. This location is used to determine the range of the entire expression, and the expression itself already has its location inherited from its Base. This fixes <rdar://problem/6629829>. llvm-svn: 65650
-
Douglas Gregor authored
stubs for those types we don't yet know how to instantiate (everything that isn't a template parameter!). We now instantiate default arguments for template type parameters when needed. This will be our testbed while I fill out the remaining type-instantiation logic. llvm-svn: 65649
-
Chris Lattner authored
in C89 mode. This makes it enabled by default instead of only enabled with -pedantic. Clang defaults to c99 mode, so people will see this more often than with GCC, but they can always use -std=c89 if they really want c89. llvm-svn: 65647
-
Chris Lattner authored
llvm-svn: 65646
-
Chris Lattner authored
llvm-svn: 65645
-
Mike Stump authored
llvm-svn: 65644
-
Ted Kremenek authored
set HasVAListArg to true when 'Y' is 0 (i.e., ignore the data arguments). This fixes <rdar://problem/6623513>. llvm-svn: 65642
-
Douglas Gregor authored
llvm-svn: 65641
-
Chris Lattner authored
useless to something more vague but hopefully more clear. rdar://6624173 llvm-svn: 65639
-
Eli Friedman authored
normal expression, and change Evaluate and IRGen to evaluate it like a normal expression. This simplifies the code significantly, and fixes PR3396. llvm-svn: 65622
-
Eli Friedman authored
with the LLVM C backend. llvm-svn: 65615
-
Eli Friedman authored
llvm-svn: 65613
-
Eli Friedman authored
strict constant initializer checking. llvm-svn: 65612
-
Eli Friedman authored
llvm-svn: 65611
-
Eli Friedman authored
Daniel. Some minor fixes/cleanup. Allow __builtin_choose_expr, __real__, and __imag__ in ICEs, following gcc's example. llvm-svn: 65610
-
Mike Stump authored
llvm-svn: 65609
-
Douglas Gregor authored
giving them rough classifications (normal types, never-canonical types, always-dependent types, abstract type representations) and making it far easier to make sure that we've hit all of the cases when decoding types. Switched some switch() statements on the type class over to using this mechanism, and filtering out those things we don't care about. For example, CodeGen should never see always-dependent or non-canonical types, while debug info generation should never see always-dependent types. More switch() statements on the type class need to be moved over to using this approach, so that we'll get warnings when we add a new type then fail to account for it somewhere in the compiler. As part of this, some types have been renamed: TypeOfExpr -> TypeOfExprType FunctionTypeProto -> FunctionProtoType FunctionTypeNoProto -> FunctionNoProtoType There shouldn't be any functionality change... llvm-svn: 65591
-
Chris Lattner authored
but in C99 it is just another int type. llvm-svn: 65590
-
Chris Lattner authored
llvm-svn: 65589
-
Chris Lattner authored
initialization of wchar_t arrays with wide strings, and generalizes wchar_size.c to work on all targets. llvm-svn: 65586
-
Chris Lattner authored
Unfortunately this doesn't work yet because wchar_t is completely broken in C. llvm-svn: 65585
-
Fariborz Jahanian authored
llvm-svn: 65583
-
Chris Lattner authored
llvm-svn: 65582
-
- Feb 26, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 65578
-
Douglas Gregor authored
nicely sugared type that shows how the user wrote the actual specialization. This sugared type won't actually show up until we start doing instantiations. llvm-svn: 65577
-
Ted Kremenek authored
llvm-svn: 65574
-
Devang Patel authored
(This is not yet used.) llvm-svn: 65573
-
Ted Kremenek authored
llvm-svn: 65571
-
Douglas Gregor authored
know how to recover from an error, we can attach a hint to the diagnostic that states how to modify the code, which can be one of: - Insert some new code (a text string) at a particular source location - Remove the code within a given range - Replace the code within a given range with some new code (a text string) Right now, we use these hints to annotate diagnostic information. For example, if one uses the '>>' in a template argument in C++98, as in this code: template<int I> class B { }; B<1000 >> 2> *b1; we'll warn that the behavior will change in C++0x. The fix is to insert parenthese, so we use code insertion annotations to illustrate where the parentheses go: test.cpp:10:10: warning: use of right-shift operator ('>>') in template argument will require parentheses in C++0x B<1000 >> 2> *b1; ^ ( ) Use of these annotations is partially implemented for HTML diagnostics, but it's not (yet) producing valid HTML, which may be related to PR2386, so it has been #if 0'd out. In this future, we could consider hooking this mechanism up to the rewriter to actually try to fix these problems during compilation (or, after a compilation whose only errors have fixes). For now, however, I suggest that we use these code modification hints whenever we can, so that we get better diagnostics now and will have better coverage when we find better ways to use this information. This also fixes PR3410 by placing the complaint about missing tokens just after the previous token (rather than at the location of the next token). llvm-svn: 65570
-
Daniel Dunbar authored
- For types whose native representation is a pointer. - Use to replace ExprConstant.cpp:HasPointerEvalType, CodeGenFunction::isObjCPointerType. llvm-svn: 65569
-
Ted Kremenek authored
llvm-svn: 65568
-
Daniel Dunbar authored
- Having pointers and references share a base was not a useful notion. llvm-svn: 65567
-
Daniel Dunbar authored
pointer type. - Drops use of PointerLikeType. - No intended functionality change. llvm-svn: 65566
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 65563
-
rdar://problem/6574319Steve Naroff authored
Fix <rdar://problem/6574319> clang issues error on 'readonly' property with a defaul setter attribute. Needed to make isPropertyReadonly() non-const (for this fix to compile). I imagine there's a way to retain the const-ness, however I have more important fish to fry. llvm-svn: 65562
-
Daniel Dunbar authored
- No functionality change. llvm-svn: 65560
-