- Dec 04, 2010
-
-
Francois Pichet authored
More anonymous struct/union redesign. This one deals with anonymous field used in a constructor initializer list: struct X { X() : au_i1(123) {} union { int au_i1; float au_f1; }; }; clang will now deal with au_i1 explicitly as an IndirectFieldDecl. llvm-svn: 120900
-
John McCall authored
llvm-svn: 120899
-
John McCall authored
Abramo noticed this. llvm-svn: 120898
-
Benjamin Kramer authored
llvm-svn: 120897
-
John McCall authored
be required, and then fix up some missing loads on overloaded-operator paths which that exposed. llvm-svn: 120896
-
John McCall authored
the type of the expression *after* array/function decay. llvm-svn: 120895
-
John McCall authored
not actually frequently used, because ImpCastExprToType only creates a node if the types differ. So explicitly create an ICE in the lvalue-to-rvalue conversion code in DefaultFunctionArrayLvalueConversion() as well as several other new places, and consistently deal with the consequences throughout the compiler. In addition, introduce a new cast kind for loading an ObjCProperty l-value, and make sure we emit those nodes whenever an ObjCProperty l-value appears that's not on the LHS of an assignment operator. This breaks a couple of rewriter tests, which I've x-failed until future development occurs on the rewriter. Ted Kremenek kindly contributed the analyzer workarounds in this patch. llvm-svn: 120890
-
John McCall authored
Also, move the l-value emission code into CGObjC.cpp and teach it, for completeness, to store away self for a super send. Also, inline the super cases for property gets and sets and make them use the correct result type for implicit getter/setter calls. llvm-svn: 120887
-
John McCall authored
the l-value. llvm-svn: 120884
-
Peter Collingbourne authored
llvm-svn: 120882
-
Peter Collingbourne authored
llvm-svn: 120881
-
Peter Collingbourne authored
llvm-svn: 120880
-
Peter Collingbourne authored
llvm-svn: 120879
-
Peter Collingbourne authored
llvm-svn: 120878
-
Peter Collingbourne authored
llvm-svn: 120877
-
Peter Collingbourne authored
llvm-svn: 120876
-
Peter Collingbourne authored
llvm-svn: 120875
-
Peter Collingbourne authored
This patch refactors the CompilerInvocation code to introduce a CompilerInvocation::setLangDefaults function, which can set up a LangOptions with the defaults for a given language and language standard. This function is useful for non-command line based Clang clients which need to set up a CompilerInvocation manually for a specific language. llvm-svn: 120874
-
Argyrios Kyrtzidis authored
llvm-svn: 120873
-
-
Fariborz Jahanian authored
no property accessor class method to be found, instead of crashing in IRGen. // rdar://8703553 llvm-svn: 120855
-
- Dec 03, 2010
-
-
Abramo Bagnara authored
llvm-svn: 120839
-
Abramo Bagnara authored
llvm-svn: 120828
-
Bob Wilson authored
llvm-svn: 120812
-
Douglas Gregor authored
declarations. The motivation for this patch is that linkage/visibility computations are linear in the number of redeclarations of an entity, and we've run into a case where a single translation unit has > 6500 redeclarations of the same (unused!) external variable. Since each redeclaration involves a linkage check, the resulting quadratic behavior makes Clang slow to a crawl. With this change, a simple test with 512 redeclarations of a variable syntax-checks ~20x faster than before. That said, I hate this change, and will probably end up reverting it in a few hours. Reasons to hate it: - It makes NamedDecl larger, since we don't have enough free bits in Decl to squeeze in the extra information about caching. - There are way too many places where we need to invalidate this cache, because the visibility of a declaration can change due to redeclarations (!). Despite self-hosting and passing the testsuite, I have no confidence that I've found all of places where this cache needs to be invalidated. llvm-svn: 120808
-
Bob Wilson authored
to distinguish vsri/vsli. llvm-svn: 120806
-
Eric Christopher authored
llvm-svn: 120799
-
Ted Kremenek authored
a node in the trimmed graph might not always correctly map back to the original error node. This could cause a crash in some cases when flagging memory leaks. llvm-svn: 120795
-
Ted Kremenek authored
when generating DOT output for an ExplodedGraph. llvm-svn: 120794
-
Argyrios Kyrtzidis authored
llvm-svn: 120783
-
Argyrios Kyrtzidis authored
Remove leftover code and use the text path diagnostic client even without a specified output file since it just uses diagnostic notes. llvm-svn: 120773
-
Argyrios Kyrtzidis authored
the sequence of events; useful for testing. llvm-svn: 120770
-
Argyrios Kyrtzidis authored
llvm-svn: 120769
-
Argyrios Kyrtzidis authored
llvm-svn: 120768
-
Ted Kremenek authored
Patch by Paul Curtis! llvm-svn: 120759
-
- Dec 02, 2010
-
-
Chris Lattner authored
llvm-svn: 120746
-
Douglas Gregor authored
about deprecated Objective-C pointer conversions. Plus, make sure to actually set an appropriate AssignmentAction when performing an implicit conversion from an InitializationSequence. Fixes regressions in the GCC DejaGNU testsuite. llvm-svn: 120744
-
Peter Collingbourne authored
llvm-svn: 120736
-
Ted Kremenek authored
llvm-svn: 120735
-
Peter Collingbourne authored
llvm-svn: 120729
-