| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
allow invalid token pastes (when in -fms-extensions mode)
with -Wno-invalid-token-paste
llvm-svn: 108624
|
| |
|
|
| |
llvm-svn: 108621
|
| |
|
|
|
|
|
| |
Let AnalysisContext contain a TranslationUnit.
Let CallEnter refer to an AnalysisContext instead of a FunctionDecl.
llvm-svn: 108617
|
| |
|
|
|
|
| |
removing a bogus assertion.
llvm-svn: 108602
|
| |
|
|
|
|
|
| |
part of the new property synthesis by default.
wip.
llvm-svn: 108599
|
| |
|
|
|
|
| |
multiple reasons. Rethrow with _objc_exception_throw instead. Fixes PR7656.
llvm-svn: 108595
|
| |
|
|
|
|
| |
an APFloat with different "float semantics" than the compared float literal.
llvm-svn: 108590
|
| |
|
|
|
|
| |
metadata record. WIP
llvm-svn: 108578
|
| |
|
|
|
|
| |
message send expressions who call methods that return references.
llvm-svn: 108559
|
| |
|
|
|
|
| |
reuse it.
llvm-svn: 108551
|
| |
|
|
|
|
|
|
|
|
| |
it into the default path-sensitive analysis options.
- Added checks for static local variables, self assigned parameters, and truncating/extending self assignments
- Removed command line option (now default with --analyze)
- Updated test cases to pass with idempotent operation warnings
llvm-svn: 108550
|
| |
|
|
| |
llvm-svn: 108542
|
| |
|
|
|
|
| |
files. WIP
llvm-svn: 108537
|
| |
|
|
|
|
|
|
|
| |
expression such as the "foo" in "this->blah.foo<1, 2>", and we can't
look into the type of "this->blah" (e.g., because it is dependent),
look into the local scope of a template of the same name. Fixes
<rdar://problem/8198511>.
llvm-svn: 108531
|
| |
|
|
| |
llvm-svn: 108528
|
| |
|
|
|
|
|
| |
diagnostic. Instead, put it and the "declaration does not declare
anything" warning into -Wmissing-declarations.
llvm-svn: 108527
|
| |
|
|
| |
llvm-svn: 108526
|
| |
|
|
|
|
|
|
| |
purpose of access control. Fixes PR7644.
I can't actually find anything directly justifying this, but it seems obvious.
llvm-svn: 108521
|
| |
|
|
|
|
| |
is well defined, it resets to the default alignment.
llvm-svn: 108508
|
| |
|
|
| |
llvm-svn: 108505
|
| |
|
|
| |
llvm-svn: 108502
|
| |
|
|
| |
llvm-svn: 108501
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
includes
handling the parsing of scanf format strings and hooking the checking into Sema.
Most of this checking logic piggybacks on what was already there for checking printf format
strings, but the checking logic has been refactored to support both.
What is left to be done is to support argument type checking in format strings and of course
fix the usual tail of bugs that will follow.
llvm-svn: 108500
|
| |
|
|
|
|
|
|
|
|
| |
represent builtins that have the "scanf" attribution (via the format attribute) just
like we do with printf functions. Follow-up work is needed to add similar support
for fscanf et al.
This is to support format-string checking for scanf functions.
llvm-svn: 108499
|
| |
|
|
|
|
| |
asm operand twice.
llvm-svn: 108489
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- This issue here is that /usr/include/Blocks.h wants to define some of the
block runtime globals as weak, depending on the target. This doesn't work in
Clang because we aren't using the AST decl for these globals.
- The fix is a pretty gross hack which just watches all the decls for the
specific blocks globals we need to know about; if we see one we use it,
otherwise we use the hand coded type.
In time, I would like to clean this up by changing IRgen to ask Sema/AST for
the decl, which would then be lazily loaded from the builtin table if
necessary. This could be used in a whole host of places in IRgen and would
get rid of a lot of grotty hand coding of LLVM IR; however, we need some
extra Sema support for this as well as support for builtin global variables.
llvm-svn: 108482
|
| |
|
|
| |
llvm-svn: 108481
|
| |
|
|
| |
llvm-svn: 108480
|
| |
|
|
|
|
|
| |
the order they appeared in the translation unit. If they get emitted, put them
in their proper order. Fixes rdar://problem/7458115
llvm-svn: 108477
|
| |
|
|
|
|
| |
codegenerator preserve info in case the symbol is deleted.
llvm-svn: 108471
|
| |
|
|
|
|
| |
with always_inline attribute. Thanks to Howard for the tip.
llvm-svn: 108469
|
| |
|
|
|
|
| |
Tested by namespace.exp and virtfunc.exp from gdb testsuite.
llvm-svn: 108468
|
| |
|
|
|
|
| |
for string literals.
llvm-svn: 108464
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parser is looking at a declaration or an expression, use a '=' to
conclude that we are parsing a declaration.
This is wrong. However, our previous approach of finding a comma after
the '=' is also wrong, because the ',' could be part of a
template-argument-list. So, for now we're going to use the same wrong
heuristic as GCC and Visual C++, because less real-world code is
likely to be broken this way. I've opened PR7655 to keep track of our
wrongness; note also the XFAIL'd test.
Fixes <rdar://problem/8193163>.
llvm-svn: 108459
|
| |
|
|
|
|
|
|
|
| |
with the proper spelling of "non-class prvalue". Silly me, I think
class rvalues were xvalues rather than prvalues!
Hah hah hah.
llvm-svn: 108443
|
| |
|
|
|
|
| |
that we don't warn when there isn't going to be any computation anyway.
llvm-svn: 108442
|
| |
|
|
|
|
| |
broke nightlytest.
llvm-svn: 108439
|
| |
|
|
|
|
| |
This is not required (I am not 100% sure why) but method.exp from gdb testsuite flagged regression due to this patch.
llvm-svn: 108434
|
| |
|
|
| |
llvm-svn: 108433
|
| |
|
|
|
|
|
|
| |
that involve binding a reference to a pure rvalue temporary (e.g., not
a class temporary), by creating a new temporary and copying the result
there. Fixes PR6024.
llvm-svn: 108431
|
| |
|
|
| |
llvm-svn: 108428
|
| |
|
|
|
|
| |
assume we are targetting OS X unless an explicit option is given.
llvm-svn: 108426
|
| |
|
|
| |
llvm-svn: 108423
|
| |
|
|
|
|
|
| |
Don't warn about "logically bool" expressions on the RHS,
even if they fold to a constant.
llvm-svn: 108388
|
| |
|
|
|
|
| |
whenever PCHReader deserializes a type or decl (and possibly other things in the future). Have PCHWriter implement these callbacks as noops and register to receive them if we're chaining PCHs. This will allow PCHWriter to track the IDs of these things, which it needs to write the dependent files. WIP
llvm-svn: 108383
|
| |
|
|
|
|
|
|
| |
whether to use objc_msgSend_fpret; the choice is target dependent, not Obj-C ABI
dependent.
- <rdar://problem/8139758> arm objc _objc_msgSend_fpret bug
llvm-svn: 108379
|
| |
|
|
|
|
| |
the new interface.
llvm-svn: 108377
|
| |
|
|
|
|
|
| |
arguments only resolves to a single specialization, make sure to look
through using declarations. Fixes PR7641.
llvm-svn: 108376
|
| |
|
|
| |
llvm-svn: 108375
|
| |
|
|
|
|
|
|
|
|
| |
definition, we're likely going to end up breaking the invariants of
the template system, e.g., that the depths of template parameter lists
match up with the nesting template of the template. So, make sure we
mark such ill-formed declarations as invalid or don't even build them
at all.
llvm-svn: 108372
|