- Nov 22, 2010
-
-
NAKAMURA Takumi authored
llvm-svn: 119961
-
Zhanyong Wan authored
llvm-svn: 119960
-
Chandler Carruth authored
stdlib.h. There were numerous problems with forward declaring 'malloc' and 'free', but the most important is that these are reserved by POSIX and may be implemented via a function-like macro. As suggested by Dale Johannesen, I'm instead guarding the only include of this in our builtin headers with __STDC_HOSTED__, and I've removed the include of the header from the test suite. I'll discuss with folks whether we want to have a hosted section of the test suite or not, and add it (and perhaps other tests) back there if that's the direction. llvm-svn: 119958
-
- Nov 21, 2010
-
-
Anders Carlsson authored
llvm-svn: 119946
-
- Nov 20, 2010
-
-
Zhongxing Xu authored
llvm-svn: 119897
-
- Nov 19, 2010
-
-
Argyrios Kyrtzidis authored
if (condition) CALL(0); // empty macro but don't warn for empty body. Fixes rdar://8436021. llvm-svn: 119838
-
Fariborz Jahanian authored
Fixes //rdar://8686888 llvm-svn: 119813
-
Douglas Gregor authored
protocol-qualifier list without a leading type (e.g., <#blah#>), don't complain about it being an archaic protocol-qualifier list unless it actually parses as one. llvm-svn: 119805
-
Douglas Gregor authored
option name, category ID, and category name corresponding to a diagnostic. llvm-svn: 119802
-
- Nov 18, 2010
-
-
Fariborz Jahanian authored
types was not being generated for objc pointers. // rdar://8681766. llvm-svn: 119751
-
John McCall authored
out because there are still bugs left. llvm-svn: 119722
-
John McCall authored
store it on the expression node. Also store an "object kind", which distinguishes ordinary "addressed" l-values (like variable references and pointer dereferences) and bitfield, @property, and vector-component l-values. Currently we're not using these for much, but I aim to switch pretty much everything calculating l-valueness over to them. For now they shouldn't necessarily be trusted. llvm-svn: 119685
-
Anton Yartsev authored
llvm-svn: 119678
-
Argyrios Kyrtzidis authored
-Improve the diagnostic message -Add some comments Suggestions by Chris. llvm-svn: 119594
-
Argyrios Kyrtzidis authored
Introduce option -Wargument-larger-than[=N] which warns about function definitions if they take by-value or return by-value any POD that is larger than some threshold (default is 64 bytes). Implements rdar://8548050. llvm-svn: 119583
-
- Nov 17, 2010
-
-
Douglas Gregor authored
Objective-C message sends, which have only whitespace in their TypedText chunk. Such results have no purpose. llvm-svn: 119569
-
Fariborz Jahanian authored
nonofragile-abi2. Fixes //rdar://8673791 llvm-svn: 119543
-
Argyrios Kyrtzidis authored
llvm-svn: 119540
-
Argyrios Kyrtzidis authored
assert(a || b && "bad"); since this is safe. This way we avoid a big source of such warnings which in this case are practically useless. Note that we don't handle *all* cases where precedence wouldn't matter because of constants since this is a bit costly to check, and IMO clarifying precedence with parentheses is good for readability in general. llvm-svn: 119533
-
Douglas Gregor authored
an implicit "this"; it causes clang_getCursor() to find the implicit "this" expression (which isn't written in the source!) rather than the actual member. llvm-svn: 119516
-
Douglas Gregor authored
interest (e.g., as used by clang_getCursor()), count the decl-specifier-seq as part of the source range, as we do for clang_annotateTokens(). Makes clang_getCursor() work properly for the result types of functions, for example. llvm-svn: 119514
-
Douglas Gregor authored
@synthesize foo = _foo; keep track of the location of the ivar ("_foo"). Teach libclang to visit the ivar as a member reference. llvm-svn: 119447
-
Bob Wilson authored
I mistakenly thought that this was checking for vector name mangling, but it is not. Since we're no longer wrapping Neon vectors in structs, this test can just return a vector directly. There are already other tests for that, so just to make this interesting, change the test to return a struct of two vectors. llvm-svn: 119434
-
Douglas Gregor authored
we were just getting a range covering only the property name, which is certainly not correct (and broke token annotation, among other things). Also, teach libclang about the relationship between @synthesize/@dynamic and @property, so we get property name and cursor-reference information for @synthesize and @dynamic. llvm-svn: 119409
-
John McCall authored
branches. Fixes PR8623. llvm-svn: 119408
-
John McCall authored
case based on CodeGen/volatile-1.c which tests the current C++ semantics, and note the many, many places we fall short of them. llvm-svn: 119402
-
- Nov 16, 2010
-
-
-
Bob Wilson authored
I'll reenable it soon when I'm done reworking <arm_neon.h>. llvm-svn: 119366
-
Ted Kremenek authored
allocation sizes of 0 bytes. Fixes PR 2899. llvm-svn: 119364
-
Argyrios Kyrtzidis authored
Fixes rdar://8365458 llvm-svn: 119359
-
Chandler Carruth authored
independent of the underlying system. Let me know if any of these are too aggressive. llvm-svn: 119345
-
John McCall authored
assignment to volatiles in C. This in effect reverts some of mjs's work in and around r72572. Basically, the C++ standard is quite clear, except that it lies about volatile behavior approximating C's, whereas the C standard is almost actively misleading. llvm-svn: 119344
-
Chandler Carruth authored
producing warnings. This feels really fragile, and I've not audited all other argument index-based warnings. I suspect we'll grow this bug on another warning eventually. It might be nice to adjust the argument indices when building up the attribute AST node, as we already have to remember about the 'this' argument within that code to produce correct errors. llvm-svn: 119340
-
Chandler Carruth authored
argument indexes. This handles the offsets in a consistent manner for all of the attributes which I saw working with these concepts. I've also added tests for the attribute that motivated this: nonnull. I consolidated the tests for format attributes into one file, and fleshed them out a bit to trigger more of the warning cases. Also improved the quality of some of the diagnostics that occur with invalid argument indices. The only really questionable change here is supporting the implicit this argument for the ownership attribute. I'm not sure it's really a sensible concept there, but implemented the logic for consistency. llvm-svn: 119339
-
-
Zhongxing Xu authored
- Add a new Kind of ProgramPoint: PostInitializer. - Still use GRStmtNodeBuilder. But special handling PostInitializer in GRStmtNodeBuilder::GenerateAutoTransition(). - Someday we should clean up the interface of GRStmtNodeBuilder. llvm-svn: 119335
-
Bob Wilson authored
llvm-svn: 119304
-
Bob Wilson authored
llvm-svn: 119303
-
John McCall authored
Fixes PR8608. llvm-svn: 119293
-
- Nov 15, 2010
-
-
Ted Kremenek authored
Remove invalid assertion from CFG builder. When building the CFG pieces for a ternary '?' expression, it is possible for the confluence block to only have a single predecessor due to calls to 'noreturn' functions. Fixes assertion failure reported in PR 8619. llvm-svn: 119284
-