- Dec 01, 2012
-
-
Douglas Gregor authored
scope when dealing with nested blocks. Fixes <rdar://problem/12778708>. llvm-svn: 169065
-
Bill Wendling authored
Don't emit a warning with an input/output parameter. We assume the user knows what they're doing here. llvm-svn: 169059
-
Douglas Gregor authored
llvm-svn: 169058
-
Douglas Gregor authored
state so that all of the various clones end up rendering their diagnostics into the same serialized-diagnostics file. This is important when we actually want failures during module build to be reported back to the translation unit that tried to import the not-yet-built or out-of-date module. <rdar://problem/12565727> llvm-svn: 169057
-
Bill Wendling authored
the output size is greater than the register size. No truncation occurs with those. Reword warning to make it clearer what's the problem is. llvm-svn: 169054
-
Eli Friedman authored
<rdar://problem/12780159>. llvm-svn: 169051
-
- Nov 30, 2012
-
-
Douglas Gregor authored
llvm-svn: 169045
-
Douglas Gregor authored
module, provide a module import stack similar to what we would get for an include stack, e.g., In module 'DependsOnModule' imported from build-fail-notes.m:4: In module 'Module' imported from DependsOnModule.framework/Headers/DependsOnModule.h:1: Inputs/Module.framework/Headers/Module.h:15:12: note: previous definition is here @interface Module <rdar://problem/12696425> llvm-svn: 169042
-
Aaron Ballman authored
llvm-svn: 169041
-
Aaron Ballman authored
llvm-svn: 169037
-
Dmitri Gribenko authored
llvm-svn: 169030
-
Aaron Ballman authored
llvm-svn: 169028
-
Douglas Gregor authored
files are loaded. llvm-svn: 169027
-
Douglas Gregor authored
building module 'Foo' imported from..." notes (the same we we provide "In file included from..." notes) in the diagnostic, so that we know how this module got included in the first place. This is part of <rdar://problem/12696425>. llvm-svn: 169021
-
Manuel Klimek authored
Patch by Edwin Vane. llvm-svn: 169000
-
Chandler Carruth authored
llvm-svn: 168994
-
Eli Friedman authored
the beginning and end of the range are in different macro arguments. PR14399. llvm-svn: 168984
-
Richard Smith authored
llvm-svn: 168977
-
Quentin Colombet authored
llvm-svn: 168968
-
Jordan Rose authored
If 'x' is a temporary, x.getAs<Foo>() may not be safe if the result is supposed to persist (if its address is stored somewhere). Since getAs() can return a null value, the result is almost always stored into a variable, which of course is not safe when the original value dies. This has caused several bugs with GCC's "Temporaries May Vanish Sooner Than You Expect" optimization; in C++11 builds, at least, we'll be able to catch these problems now. I would suggest applying these to other getAs() and get*As() methods (castAs is "better" because sometimes the result is used directly, which means the temporary will still be live), but these two have both caused trouble in the analyzer in the past. llvm-svn: 168967
-
Douglas Gregor authored
llvm-svn: 168962
-
Douglas Gregor authored
import of that module elsewhere, don't try to build the module again: it won't work, and the experience is quite dreadful. We track this information somewhat globally, shared among all of the related CompilerInvocations used to build modules on-the-fly, so that a particular Clang instance will only try to build a given module once. Fixes <rdar://problem/12552849>. llvm-svn: 168961
-
Eli Friedman authored
llvm-svn: 168959
-
Quentin Colombet authored
llvm-svn: 168958
-
Richard Smith authored
llvm-svn: 168957
-
Quentin Colombet authored
llvm-svn: 168956
-
- Nov 29, 2012
-
-
Quentin Colombet authored
llvm-svn: 168953
-
Alexey Samsonov authored
1) init-order sanitizer: initialization-order checker. Status: usable, but may produce false positives w/o proper blacklisting. 2) use-after-return sanitizer Status: implemented, but heavily understed. Should be optional, as it significanlty slows program down. 3) use-after-scope sanitizer Status: in progress. llvm-svn: 168950
-
Eli Bendersky authored
Note: the ":" goes into the regex because FileCheck wrongly complains about unbalanced brackets otherwise. llvm-svn: 168934
-
Eric Christopher authored
before libstdc++ like we do with ubsan. llvm-svn: 168918
-
Eric Christopher authored
llvm-svn: 168908
-
Eric Christopher authored
llvm-svn: 168907
-
Rafael Espindola authored
Original commit message: Remove redundant code. llvm-svn: 168900
-
Rafael Espindola authored
Among other differences, GCC accepts typedef int IA[]; typedef int A10[10]; static A10 *f(void); static IA *f(void); void g(void) { (void)sizeof(*f()); } but clang used to reject it with: invalid application of 'sizeof' to an incomplete type 'IA' (aka 'int []') The intention of c99's 6.2.7 seems to be that we should use the composite type and accept as gcc does. Doing the type merging required some extra fixes: * Use the type from the function type in initializations, even if an parameter is available. * Fix the merging of the noreturn attribute in function types. * Make CodeGen handle the fact that an parameter type can be different from the corresponding type in the function type. llvm-svn: 168895
-
NAKAMURA Takumi authored
ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Remove i128 stuff. Conditioning-out in macro argument was not accepted on MS cl.exe. llvm-svn: 168867
-
NAKAMURA Takumi authored
ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Suppress i128 according to r168856, for now. I think "i128", that I conditioned out, could be completely removed. MS Compiler doesn't accept i128. We can assume no one would use i128. llvm-svn: 168865
-
Timur Iskhodzhanov authored
llvm-svn: 168862
-
Richard Smith authored
'getPointerWidth(0) >= 64' test to be a method on TargetInfo, ready to be properly cleaned up. llvm-svn: 168856
-
Nico Weber authored
llvm-svn: 168855
-
-