| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 45116
|
|
|
|
|
|
|
|
|
|
|
| |
This parallels a previous patch (duplicate logic caused the bug to appear
in multiple locations):
r44316 (http://llvm.org/viewvc/llvm-project?rev=44316&view=rev).
Patch provided by Nuno Lopes.
llvm-svn: 45098
|
|
|
|
|
|
| |
so useful and introduced a few bugs.
llvm-svn: 45051
|
|
|
|
|
|
|
|
|
| |
over is the subexpression of a sizeof(expression). Different clients
will wish to handle iteration over such subexpressions differently, and can
now easily query if they are iterating over such statements using the
StmtIterator's inSizeOfExpr().
llvm-svn: 45047
|
|
|
|
|
|
|
|
|
|
| |
ObjcProtocolDecl, and ObjcCategoryDecl. These methods are replaced by the respective iterators on each class.
- Add getInstanceMethodForSelector to ObjcInterfaceDecl, ObjcProtocolDecl, and ObjcCatgoryDecl. This hook will do a "shallow" lookup. This is a convenience method that reducing some of the iterator usage.
- Various changes to convert all clients to the above API's...
llvm-svn: 45046
|
|
|
|
|
|
|
|
|
|
|
| |
declared in a sizeof. For example:
sizeof(int[foo()]);
the expression "foo()" is an expression that is executed during the evaluation
of sizeof.
llvm-svn: 45043
|
|
|
|
|
|
| |
of "expressions", since they are not really evaluated.
llvm-svn: 45015
|
|
|
|
| |
llvm-svn: 45014
|
|
|
|
|
|
|
| |
Previously this field was serialized out in VarDecl (a parent class), but
now the field belongs to ParmVarDecl.
llvm-svn: 44989
|
|
|
|
|
|
| |
Ted, this change necessitates (de)/serialization of ParmVarDecl.
llvm-svn: 44972
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moved all clients of Diagnostics to use FullSourceLoc instead of SourceLocation.
Added many utility methods to FullSourceLoc to provide shorthand for:
FullLoc.getManager().someMethod(FullLoc.getLocation());
instead we have:
FullLoc.someMethod();
Modified TextDiagnostics (and related classes) to use this short-hand.
llvm-svn: 44957
|
|
|
|
| |
llvm-svn: 44956
|
|
|
|
| |
llvm-svn: 44932
|
|
|
|
| |
llvm-svn: 44930
|
|
|
|
|
|
| |
to some classes and use iterators instead.
llvm-svn: 44927
|
|
|
|
|
|
| |
iterator interface.
llvm-svn: 44926
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?rev=44920&view=rev
Putting VisitDeclStmt() was motivated because it called DumpDeclarator(),
which printed out a little bit more information than just using the
child_iterator interface to visit the subexpressions of DeclStmt. To avoid
printing the initializers twice, DumpSubTree() now specially checks for
DeclStmts; in such cases it calls VisitDeclStmt() without using the
child_iterators to visit the subexpressions.
llvm-svn: 44924
|
|
|
|
|
|
|
| |
printed out by DumpSubTree() via the child_iterator interface. This fixes a
bug where the initializers were being dumped twice.
llvm-svn: 44920
|
|
|
|
| |
llvm-svn: 44919
|
|
|
|
|
|
|
|
| |
Note that incompatible-protocol-qualified-types.m is currently failing. This is
unrelated to this patch and Steve is looking at the general problem of not reporting
incompitible pointer types in return stetement..
llvm-svn: 44897
|
|
|
|
|
|
| |
return a location.
llvm-svn: 44889
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
between fetching the size of the expression map (for use as
the next integer id for an Expr*) and the creation of the
entry in the map could be non-deterministic. This could
cause the size of the map to be incremented prior to the
index being determine.
On Linux the map entry would be created first, causing the
map to the "size" to be incremented prior to it being
queried. On Mac OS X we had the reverse behavior. Now the
size is always queried prior to the new id being inserted
into the map.
This was the real cause of the bit-overrun triggered in
PR 1847:
http://llvm.org/bugs/show_bug.cgi?id=1847
Also reverted the change in patch 44813, which was a bogus
fix to this problem:
http://llvm.org/viewvc/llvm-project?rev=44813&view=rev
llvm-svn: 44822
|
|
|
|
|
|
| |
type.
llvm-svn: 44685
|
|
|
|
|
|
| |
"@class Protocol;"
llvm-svn: 44670
|
|
|
|
| |
llvm-svn: 44661
|
|
|
|
| |
llvm-svn: 44653
|
|
|
|
|
|
| |
Also updated a FIXME in Sema::CheckInitializer()...
llvm-svn: 44602
|
|
|
|
| |
llvm-svn: 44593
|
|
|
|
| |
llvm-svn: 44568
|
|
|
|
| |
llvm-svn: 44567
|
|
|
|
| |
llvm-svn: 44566
|
|
|
|
| |
llvm-svn: 44564
|
|
|
|
| |
llvm-svn: 44563
|
|
|
|
|
|
|
| |
standard says that we should adjust the "reference to T" type to "T"
before analysis.
llvm-svn: 44530
|
|
|
|
|
|
| |
in the header. Patch by Cédric Venet.
llvm-svn: 44519
|
|
|
|
| |
llvm-svn: 44492
|
|
|
|
|
|
|
|
| |
exprs whose
LHS and RHS both have side effects.
llvm-svn: 44486
|
|
|
|
| |
llvm-svn: 44485
|
|
|
|
| |
llvm-svn: 44472
|
|
|
|
|
|
| |
omitted. Handle this in a few more places.
llvm-svn: 44462
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
be the new hook that ASTStreamer calls to feed top-level Decls to
ASTConsumers.
The difference between "HandleTopLevelDeclaration" and "HandleTopLevelDecl" is
that "HandleTopLevelDecl" is currently called by ASTStreamer for every
top-level declaration, including those that appear within a Decl chain. Using
the new interface, ASTStreamer would only call HandleTopLevelDeclaration for
Decls that appear that the beginning of a Decl chain (i.e., a group of related
decls).
To preserve the behavior that all subclasses of ASTConsumer currently expect,
the default implementation of HandleTopLevelDeclaration simply calls
HandleTopLevelDecl, and for decl chains it calls HandleTopLevelDecl for each
Decl* in a chain of Decls.
The advantage of this interface is that some subclasses of ASTConsumer only
really want the Decl chain, and not each individual Decl passed to them. This
extra level of indirection allows subclasses to override the default behavior
if they so desire.
llvm-svn: 44444
|
|
|
|
|
|
|
|
| |
the APFloat representing the parsed literal can represent the literal value
exactly. This is useful when performing various semantic checks on the code,
and issuing appropriate warnings to users.
llvm-svn: 44423
|
|
|
|
|
|
| |
without having to do -arch ppc.
llvm-svn: 44392
|
|
|
|
| |
llvm-svn: 44388
|
|
|
|
| |
llvm-svn: 44376
|
|
|
|
| |
llvm-svn: 44369
|
|
|
|
| |
llvm-svn: 44358
|
|
|
|
|
|
| |
signatures for a bunch of MMX builtins. We now parse all the intrinsics in mmintrin.h
llvm-svn: 44357
|
|
|
|
| |
llvm-svn: 44338
|
|
|
|
|
|
|
|
| |
http://llvm.org/viewvc/llvm-project?view=rev&revision=44089
"Decl" once again can no longer be NULL, so the NULL checks are not needed.
llvm-svn: 44336
|