| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
qualifiers use the __attribute__((address_space(id))) syntax.
llvm-svn: 46691
|
|
|
|
|
|
|
|
| |
system headers files.
A bizarre, non-standard hook that many compilers appear to implement (sigh:-).
llvm-svn: 46583
|
|
|
|
| |
llvm-svn: 46561
|
|
|
|
|
|
| |
one argument. Lets stuff using pthread.h compile.
llvm-svn: 46559
|
|
|
|
|
|
|
|
| |
re-work to fully handle tentative decls.
This includes a fix to bz1908.
llvm-svn: 46540
|
|
|
|
|
|
| |
doesn't get confused by typedefs.
llvm-svn: 46502
|
|
|
|
| |
llvm-svn: 46464
|
|
|
|
|
|
|
| |
Test case included from bz1948 (thanks Neil!).
Also fixed an 80 column violation...
llvm-svn: 46430
|
|
|
|
| |
llvm-svn: 46371
|
|
|
|
|
|
|
|
|
|
| |
CheckForCharArrayInitializer with CheckInitializerListTypes. The new routine now supports struct/union initializers.
This is a modified version of a patch by Eli Friedman. This version passes all of the clang tests and supports vectors:-)
Note that Eli and I are still unsatisfied the implementation of CheckInitializerListTypes(). We'd like to find a more elegant implementation. Nevertheless, this is a complex part of the standard (and may be hard to simplify). Since the complexity is localized to this routine, we can iterate without too much disruption:-)
llvm-svn: 46339
|
|
|
|
| |
llvm-svn: 46336
|
|
|
|
|
|
| |
- Use previous hooks to simplify Sema::CheckInitializerTypes()...
llvm-svn: 46235
|
|
|
|
| |
llvm-svn: 46234
|
|
|
|
|
|
|
|
| |
when dealing with arrays.
Bug submitted by Eli.
llvm-svn: 46179
|
|
|
|
|
|
| |
tentative definitions with incomplete types. Touch up all test cases that are effected.
llvm-svn: 46152
|
|
|
|
|
|
| |
declarations/definitions). Patch by Carl Lewis!
llvm-svn: 46070
|
|
|
|
| |
llvm-svn: 45977
|
|
|
|
|
|
| |
but it is clearly an improvement. Will discuss with Chris later.
llvm-svn: 45975
|
|
|
|
|
|
| |
extern "C" in C++ mode. Patch by Mike Stump!
llvm-svn: 45904
|
|
|
|
|
|
|
|
|
|
| |
noticed it was missing).
- Rename CheckInitializer() to CheckInitializerTypes().
- Removed the isStatic argument to CheckInitializerTypes() and all of it's subroutines. Checking for constant expressions is now done separately.
- Added CheckForConstantInitializer().
llvm-svn: 45840
|
|
|
|
|
|
| |
that aren't in scope. Since C functions are in a flat namespace, we need to give them special treatment (when compared with variables and typedefs).
llvm-svn: 45789
|
|
|
|
|
|
|
|
| |
6.7.2.2p4).
Fix Sema::MergeFunctionDecl to allow for function type compatibility (by using the predicate on ASTContext). Function types don't have to be identical to be compatible...
llvm-svn: 45784
|
|
|
|
|
|
|
| |
some naming inconsistencies in the names of classes pertaining to Objective-C
support in clang.
llvm-svn: 45715
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it from several places. This merges the diagnostics, making them more
uniform and fewer in number. This also simplifies and cleans up the code.
Some highlights:
1. This removes a bunch of very-similar diagnostics.
2. This renames AssignmentCheckResult -> AssignConvertType
3. This merges PointerFromInt + IntFromPointer which were always treated the same.
4. This updates a bunch of test cases that have minor changes to the produced diagnostics.
llvm-svn: 45589
|
|
|
|
| |
llvm-svn: 45556
|
|
|
|
| |
llvm-svn: 45510
|
|
|
|
|
|
| |
discussion of this change.
llvm-svn: 45410
|
|
|
|
|
|
| |
the tests Steve.
llvm-svn: 45202
|
|
|
|
| |
llvm-svn: 45199
|
|
|
|
|
|
| |
attribute.
llvm-svn: 45195
|
|
|
|
|
|
| |
every attribute.
llvm-svn: 45191
|
|
|
|
| |
llvm-svn: 45189
|
|
|
|
| |
llvm-svn: 45152
|
|
|
|
|
|
| |
FunctionDecl for each method, remove the unconditional initialization to 0 and corresponding comment.
llvm-svn: 45008
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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: 44925
|
|
|
|
|
|
| |
return a loc.
llvm-svn: 44890
|
|
|
|
| |
llvm-svn: 44872
|
|
|
|
|
|
| |
with GCC).
llvm-svn: 44840
|
|
|
|
|
|
|
|
|
|
|
|
| |
char".
At this point, I am fairly certain the front-end is correct. Unfortunately, the back-end is still unhappy.
That said, I've commented out the two lines in globalinit.c that are causing problems.
Chris, please have a look...thanks!
llvm-svn: 44823
|
|
|
|
|
|
| |
Adapted from a patch by Anders Carlsson.
llvm-svn: 44816
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
type is a record (until we implement the FIXME). This removes a bogus error for the following code...
snarofflocal% cat bug.m
#import <Foundation/NSGeometry.h>
#define NUMHELICOPTERRECTS 5
static NSRect helicopterRects[NUMHELICOPTERRECTS] = {
{{27, 0}, {18, 11}}, // Bottom
{{0, 8}, {4, 11}}, // Tail
{{0, 16}, {50, 1}},
{{22, 5}, {18, 12}}, // Body
{{0, 10}, {42, 3}}
};
llvm-svn: 44684
|
|
|
|
|
|
| |
the front-end.
llvm-svn: 44673
|
|
|
|
|
|
| |
every excess element. Maybe later we can add back the limit and make it smarter.
llvm-svn: 44603
|
|
|
|
|
|
| |
Also updated a FIXME in Sema::CheckInitializer()...
llvm-svn: 44602
|
|
|
|
| |
llvm-svn: 44576
|
|
|
|
|
|
| |
there are excess initializers, instead of one per initializer.
llvm-svn: 44525
|
|
|
|
| |
llvm-svn: 44516
|
|
|
|
| |
llvm-svn: 44496
|
|
|
|
|
|
|
| |
After a discussion with Ted, we both came to the conclusion that adding a "HandleTopLevelDeclaration" hook to ASConsumer is far more elegant. The default implementation of HandleTopLevelDeclaration will be responsible for iterating over the ScopedDecl (which has a chain of the decls:-).
TODO: Once Ted adds HandleTopLevelDeclaration, make sure TagDecls are chainged appropriately...
llvm-svn: 44445
|