- Jul 16, 2010
-
-
Nick Lewycky authored
"-Wtautological-compare". llvm-svn: 108546
-
Ted Kremenek authored
llvm-svn: 108542
-
Ted Kremenek authored
llvm-svn: 108541
-
Sebastian Redl authored
llvm-svn: 108537
-
Chandler Carruth authored
llvm-svn: 108534
-
Craig Silverstein authored
getting array indices before -- and for some of the builtin operators: sizeof, offsetof, unaryops like __is_enum. Also fix the function visitor to visit exception types in function parameters. Reviewed by wan and chandlerc. llvm-svn: 108533
-
John McCall authored
llvm-svn: 108532
-
Douglas Gregor authored
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
-
Sebastian Redl authored
llvm-svn: 108528
-
Douglas Gregor authored
diagnostic. Instead, put it and the "declaration does not declare anything" warning into -Wmissing-declarations. llvm-svn: 108527
-
Douglas Gregor authored
llvm-svn: 108526
-
John McCall authored
purpose of access control. Fixes PR7644. I can't actually find anything directly justifying this, but it seems obvious. llvm-svn: 108521
-
Chandler Carruth authored
llvm-svn: 108511
-
Daniel Dunbar authored
is well defined, it resets to the default alignment. llvm-svn: 108508
-
Chandler Carruth authored
llvm-svn: 108505
-
Ted Kremenek authored
llvm-svn: 108503
-
Ted Kremenek authored
llvm-svn: 108502
-
Ted Kremenek authored
llvm-svn: 108501
-
Ted Kremenek authored
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
-
Ted Kremenek authored
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
-
Eli Friedman authored
asm operand twice. llvm-svn: 108489
-
Daniel Dunbar authored
the builtin as void __clear_cache(...) to workaround this, which appears to match what GCC does. llvm-svn: 108487
-
Daniel Dunbar authored
- 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
-
Daniel Dunbar authored
llvm-svn: 108481
-
Daniel Dunbar authored
llvm-svn: 108480
-
John McCall authored
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
-
Devang Patel authored
Set "optimization is ON" and supply other optional parameters. This helps codegenerator preserve info in case the symbol is deleted. llvm-svn: 108471
-
Douglas Gregor authored
llvm-svn: 108470
-
Douglas Gregor authored
with always_inline attribute. Thanks to Howard for the tip. llvm-svn: 108469
-
Devang Patel authored
Tested by namespace.exp and virtfunc.exp from gdb testsuite. llvm-svn: 108468
-
- Jul 15, 2010
-
-
John McCall authored
for string literals. llvm-svn: 108464
-
Douglas Gregor authored
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
-
Daniel Dunbar authored
llvm-svn: 108457
-
Daniel Dunbar authored
llvm-svn: 108445
-
Douglas Gregor authored
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
-
Douglas Gregor authored
that we don't warn when there isn't going to be any computation anyway. llvm-svn: 108442
-
Douglas Gregor authored
broke nightlytest. llvm-svn: 108439
-
Douglas Gregor authored
de-cv-qualification fixes. llvm-svn: 108437
-
Devang Patel authored
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
-
Douglas Gregor authored
llvm-svn: 108433
-