| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 51361
|
|
|
|
| |
llvm-svn: 51326
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in Sema, per discussion on mailing list. This doesn't cause any changes
in the test results. I'll probably add some more tests at some point,
but it's an open question what we need to accept to be compatible with
real code.
This doesn't touch the existing isConstantExpr method on Expr; that
should be addressed somehow eventually (either removed or refined to
whatever is appropriate).
llvm-svn: 51318
|
|
|
|
|
|
| |
Sema. No codegen yet.
llvm-svn: 51307
|
|
|
|
| |
llvm-svn: 51301
|
|
|
|
| |
llvm-svn: 51300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Sema::ParseAST now constructs a TranslationUnit object to own the top-level Decls, which releases the top-level Decls upon exiting ParseAST.
2) Bug fix: TranslationUnit::~TranslationUnit handles the case where a Decl is added more than once as a top-level Decl.
3) Decl::Destroy is now a virtual method, obviating the need for a special dispatch based on DeclKind.
3) FunctionDecl::Destroy now releases its Body using its Destroy method.
4) Added Stmt::Destroy and Stmt::DestroyChildren, which recursively delete the child ASTs of a Stmt and call their dstors. We may need to special case dstor/Destroy methods for particular Stmt subclasses that own other dynamically allocated objects besides AST nodes.
5) REGRESSION: We temporarily are not deallocating attributes; a FIXME is provided.
llvm-svn: 51286
|
|
|
|
|
|
| |
it a few days to make sure there aren't any significant regressions.
llvm-svn: 51273
|
|
|
|
| |
llvm-svn: 51269
|
|
|
|
|
|
| |
and "int a = {};"). I'll adjust the tests in a bit.
llvm-svn: 51265
|
|
|
|
| |
llvm-svn: 51262
|
|
|
|
|
|
| |
caused by enabling SemaInit.
llvm-svn: 51261
|
|
|
|
|
|
| |
addition with a pointer and an integer even when it didn't make sense.
llvm-svn: 51228
|
|
|
|
|
|
|
|
|
|
| |
the condidtional have compatible types, they are not necessarily the
same type. Therefore, we cast to the composite type. As a hack, for
the moment we assume that the composite type is the type of the
left-hand expression; this isn't correct, but it's good enough for most
purposes.
llvm-svn: 51202
|
|
|
|
| |
llvm-svn: 51196
|
|
|
|
| |
llvm-svn: 51195
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in Sema::CheckFunctionCall:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080512/005706.html
The bug was that the logic from the helper methods used by CheckFunctionCall
were being inverted (a subtle bug). This would cause the parser to discard
any valid AST nodes involving several builtins (see patch).
This removes the last regression failure I'm seeing in the test suite: Analysis-Apple/NoReturn.
llvm-svn: 51168
|
|
|
|
| |
llvm-svn: 51151
|
|
|
|
|
|
|
|
|
| |
expressing the full flexibility of the LLVM shufflevector instruction.
The expected immediate usage is in *mmintrin.h, so that they don't
depend on the mess of gcc-inherited (and not completely implemented)
shuffle builtins.
llvm-svn: 51113
|
|
|
|
| |
llvm-svn: 51103
|
|
|
|
|
|
|
| |
the moment, but it what you'd expect in the AST from reading the
standard, and it should make VLA codegen a bit more strightforward.
llvm-svn: 51086
|
|
|
|
| |
llvm-svn: 51065
|
|
|
|
|
|
|
|
| |
errors when parsing AppKit that gcc does not.
Teach Sema::MergeVarDecl() about __private_extern__.
llvm-svn: 51005
|
|
|
|
|
|
| |
types ('int' and 'void')" on input that 'gcc -fsyntax-only' eats
llvm-svn: 51002
|
|
|
|
|
|
|
| |
-identifierResolver exposes an iterator interface to get all decls through the scope chain.
-The semantic staff (checking IdentifierNamespace and Doug's checking for shadowed tags were moved out of IdentifierResolver and back into Sema. IdentifierResolver just gives an iterator for all reachable decls of an identifier.
llvm-svn: 50923
|
|
|
|
| |
llvm-svn: 50906
|
|
|
|
| |
llvm-svn: 50903
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
vector of the same element type and half the width, with the high, low, even,
and odd elements respectively.
Allow member references to member references, so that .hi.hi gives you the high
quarter of a vector. This is fairly convenient syntax for some insert/extract
operations.
Remove some unnecessary methods/types in the ExtVectorElementExpr class.
llvm-svn: 50892
|
|
|
|
| |
llvm-svn: 50888
|
|
|
|
| |
llvm-svn: 50885
|
|
|
|
|
|
|
| |
Still need to iron out some of the semantics (fixmes are present).
This addresses <rdar://problem/5916348>
llvm-svn: 50866
|
|
|
|
|
|
|
| |
an implementation. This fixes couple of failing prperty tests
caused by my previous patch.
llvm-svn: 50830
|
|
|
|
|
|
|
| |
properties. Couple of property tests will fail with this patch.
Will fix them next.
llvm-svn: 50818
|
|
|
|
| |
llvm-svn: 50799
|
|
|
|
|
|
|
| |
(was IdentifierInfo * before). This will make method declartations whole
lot easier.
llvm-svn: 50747
|
|
|
|
|
|
| |
tests). Expect to enable it very soon.
llvm-svn: 50688
|
|
|
|
|
|
| |
params not getting installed for builtins when synthesized.
llvm-svn: 50676
|
|
|
|
| |
llvm-svn: 50672
|
|
|
|
|
|
| |
properties declared in the protocol.
llvm-svn: 50662
|
|
|
|
|
|
|
| |
protocols into class's property list and performing semantics
on them for while doing so.
llvm-svn: 50587
|
|
|
|
|
|
|
| |
(InitListChecker) that synthesizes implicit InitListExpr's when appropriate (see InitListExpr comments in Expr.h for more details). I also moved the code to SemaInit.cpp, to help reduce clutter in SemaDecl.cpp.
NOTE: This work is incomplete and still fails many tests (as a result, it isn't enabled yet). Nevertheless, I wanted to check it in so I can work on it from home.
llvm-svn: 50544
|
|
|
|
|
|
|
|
| |
where they appeared, causing the bug: http://llvm.org/bugs/show_bug.cgi?id=2266.
Fix it by making implicitly defined functions get the DeclContext of translation unit.
llvm-svn: 50538
|
|
|
|
| |
llvm-svn: 50532
|
|
|
|
| |
llvm-svn: 50508
|
|
|
|
| |
llvm-svn: 50484
|
|
|
|
|
|
|
|
|
| |
-NamespaceDecl for the AST
-Checks for name clashes between namespaces and tag/normal declarations.
This commit doesn't implement proper name lookup for namespaces.
llvm-svn: 50321
|
|
|
|
| |
llvm-svn: 50320
|
|
|
|
|
|
| |
comments on the ML will follow
llvm-svn: 50262
|
|
|
|
|
|
| |
its super class. This patch is incomplete.
llvm-svn: 50228
|
|
|
|
|
|
| |
to print declaration from its AST.
llvm-svn: 50117
|