- Sep 28, 2012
-
-
Richard Smith authored
record, skip at least one element from the InitListExpr to avoid an infinite loop if we're initializing an array of unknown bound. llvm-svn: 164851
-
Richard Trieu authored
now be printed with highlighting. llvm-svn: 164843
-
Richard Smith authored
llvm-svn: 164841
-
Richard Trieu authored
functions. Reworked one of the conditionals. No functional changes. llvm-svn: 164839
-
Fariborz Jahanian authored
use the integrated pre-processor, preprocess in objective-c++ mode. // rdar://12189793. llvm-svn: 164836
-
Jordan Rose authored
Previously the analyzer treated all inlined constructors like lvalues, setting the value of the CXXConstructExpr to the newly-constructed region. However, some CXXConstructExprs behave like rvalues -- in particular, the implicit copy constructor into a pass-by-value argument. In this case, we want only the /contents/ of a temporary object to be passed, so that we can use the same "copy each argument into the parameter region" algorithm that we use for scalar arguments. This may change when we start modeling destructors of temporaries, but for now this is the last part of <rdar://problem/12137950>. llvm-svn: 164830
-
Jordan Rose authored
An rvalue has no address, but calling a C++ member function requires a 'this' pointer. This commit makes the analyzer create a temporary region in which to store the struct rvalue and use as a 'this' pointer whenever a member function is called on an rvalue, which is essentially what CodeGen does. More of <rdar://problem/12137950>. The last part is tracking down the C++ FIXME in array-struct-region.cpp. llvm-svn: 164829
-
Jordan Rose authored
Struct rvalues are represented in the analyzer by CompoundVals, LazyCompoundVals, or plain ConjuredSymbols -- none of which have associated regions. If the entire structure is going to persist, this is not a problem -- either the rvalue will be assigned to an existing region, or a MaterializeTemporaryExpr will be present to create a temporary region. However, if we just need a field from the struct, we need to create the temporary region ourselves. This is inspired by the way CodeGen handles calls to temporaries; support for that in the analyzer is coming next. Part of <rdar://problem/12137950> llvm-svn: 164828
-
Benjamin Kramer authored
- The size of the packed vector is often small, save mallocs using SmallBitVector. - Copying SmallBitVectors is also cheap, remove a level of indirection. llvm-svn: 164827
-
Daniel Jasper authored
diagnostic count. If a DiagnosticConsumer sub-class overwrites IncludeInDiagnosticCounts, this should change diagnostic counts. However, it currently also influences Diag.ErrorOccurred, which in turn influences the behavior of parsing and semantic analysis (in a way that can make it crash). llvm-svn: 164824
-
Eli Friedman authored
llvm-svn: 164804
-
- Sep 27, 2012
-
-
Anna Zaks authored
llvm-svn: 164803
-
Anna Zaks authored
through property getters. llvm-svn: 164802
-
Anna Zaks authored
(fixup for r164790) llvm-svn: 164791
-
Anna Zaks authored
llvm-svn: 164790
-
Anna Zaks authored
llvm-svn: 164789
-
Anna Zaks authored
llvm-svn: 164788
-
Benjamin Kramer authored
llvm-svn: 164781
-
Douglas Gregor authored
framework location out to a top-level framework. Such frameworks are not really embedded at all. llvm-svn: 164774
-
Sylvestre Ledru authored
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164766 llvm-svn: 164769
-
Sylvestre Ledru authored
llvm-svn: 164766
-
NAKAMURA Takumi authored
llvm-svn: 164745
-
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120917/064551.htmlArgyrios Kyrtzidis authored
have PPCallbacks::InclusionDirective pass the character range for the filename quotes or brackets. rdar://11113134 & http://llvm.org/PR13880 llvm-svn: 164743
-
Argyrios Kyrtzidis authored
results for a macro name, not CXCursor_NotImplemented. llvm-svn: 164740
-
- Sep 26, 2012
-
-
Bill Wendling authored
llvm-svn: 164726
-
Benjamin Kramer authored
Fixes PR13851. Patch by Dimitry Andric! llvm-svn: 164717
-
Anna Zaks authored
This checker is annotation driven. It checks that the annotated invalidation method accesses all ivars of the enclosing objects that are objects of type, which in turn contains an invalidation method. This is driven by __attribute((annotation("objc_instance_variable_invalidator")). llvm-svn: 164716
-
Ted Kremenek authored
This isn't correct, as Jordan correctly points out. llvm-svn: 164711
-
DeLesley Hutchins authored
where an attribute is attached to a forward declaration of a template function, and refers to parameters of that declaration, but is then inherited by the definition of that function. When the definition is instantiated, the parameter references need to be remapped. llvm-svn: 164710
-
Ted Kremenek authored
llvm-svn: 164709
-
Argyrios Kyrtzidis authored
This is to reduce dependency to cursors for the code-completion results. llvm-svn: 164705
-
Argyrios Kyrtzidis authored
Removes a dependency of ASTUnit to clang-c/Index.h. llvm-svn: 164704
-
Nico Weber authored
Add a test for PR13924. Do not revert the test added in r163022, it surprisingly still passes even after reverting the code changes. llvm-svn: 164672
-
Logan Chien authored
In the C programming language, we have to add the "struct" keyword. Otherwise, the compiler will emit error message. llvm-svn: 164665
-
Ted Kremenek authored
llvm-svn: 164661
-
Nico Weber authored
llvm-svn: 164660
-
Eli Friedman authored
typeid (and a couple other non-standard places where we can transform an unevaluated expression into an evaluated expression) is special because it introduces an an expression evaluation context, which conflicts with the mechanism to compute the current lambda mangling context. PR12123. I would appreciate if someone would double-check that we get the mangling correct with this patch. llvm-svn: 164658
-
Eli Friedman authored
enough information so we can mangle them correctly in cases involving dependent parameter types. (This specifically impacts cases involving null pointers and cases involving parameters of reference type.) Fix the mangler to use this information instead of trying to scavenge it out of the parameter declaration. <rdar://problem/12296776>. llvm-svn: 164656
-
Richard Smith authored
for a type alias template can appear as sugar at any level of desugaring, just like a TypedefType. llvm-svn: 164655
-
Michael J. Spencer authored
llvm-svn: 164644
-