summaryrefslogtreecommitdiffstats
path: root/clang
Commit message (Collapse)AuthorAgeFilesLines
* Fix a test that was redefining FileCheck variables while referencing old ones.Eli Bendersky2012-12-011-4/+4
| | | | | | In preparation for the FileCheck enhancement to support backreferences. llvm-svn: 169090
* Switch to using -### as mentioned by chandlerc.Joey Gouly2012-12-011-8/+8
| | | | llvm-svn: 169089
* Add -emit-llvm to test/Driver/fsanitize.c to stop this failing on the ARM ↵Joey Gouly2012-12-011-8/+8
| | | | | | bot. Approved by d0k. llvm-svn: 169088
* Add .arcconfig to the repository. Useful if someone wants to use ↵Benjamin Kramer2012-12-011-0/+4
| | | | | | phabricator's command line tool. llvm-svn: 169086
* Fix a typo in comment.Michael Han2012-12-011-1/+1
| | | | llvm-svn: 169078
* Make these functions more clearly express the test they are performing. No ↵Richard Smith2012-12-011-2/+2
| | | | | | functionality change. llvm-svn: 169077
* Consistently use 'needsImplicit<special member>' to determine whether we needRichard Smith2012-12-014-66/+60
| | | | | | | an implicit special member, rather than sometimes using '!hasDeclared<special member>'. No functionality change. llvm-svn: 169075
* Try to make the source location information for token pastes a bit more ↵Eli Friedman2012-12-012-17/+51
| | | | | | | | | consistent. Fixes a crash printing diagnostics on the gcc testsuite, and also makes diagnostic range printing print nicer results for token pastes. llvm-svn: 169068
* Remove restriction on combining ubsan with asan or tsan. This has worked for ↵Richard Smith2012-12-012-9/+8
| | | | | | a while. llvm-svn: 169066
* Fix the determination of whether a capture refers to an enclosingDouglas Gregor2012-12-012-4/+16
| | | | | | scope when dealing with nested blocks. Fixes <rdar://problem/12778708>. llvm-svn: 169065
* Don't emit a warning with an input/output parameter. We assume the user ↵Bill Wendling2012-11-302-1/+7
| | | | | | knows what they're doing here. llvm-svn: 169059
* Fix test for Windows path separatorsDouglas Gregor2012-11-301-3/+3
| | | | llvm-svn: 169058
* Teach the serialized diagnostic writer to clone() itself, sharingDouglas Gregor2012-11-302-67/+124
| | | | | | | | | | 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
* Don't warn if the input size is less than the register size. Also don't warn ifBill Wendling2012-11-303-7/+19
| | | | | | | 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
* Make -Wtautological-constant-out-of-range-compare behave sanely for enums ↵Eli Friedman2012-11-302-5/+11
| | | | | | | | with a signed fixed type. <rdar://problem/12780159>. llvm-svn: 169051
* Rename ModuleBuildPath -> ModuleBuildStack. Thanks, Dmitri!Douglas Gregor2012-11-304-32/+32
| | | | llvm-svn: 169045
* When we're emitting a diagnostic with a source location in an importedDouglas Gregor2012-11-308-10/+151
| | | | | | | | | | | | | | 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
* Fixing a precedence issue with my previous commit.Aaron Ballman2012-11-301-1/+1
| | | | llvm-svn: 169041
* Fixing an MSVC warning about an unsafe mixture of Boolean and unsigned types ↵Aaron Ballman2012-11-301-1/+1
| | | | | | in a logical operator. llvm-svn: 169037
* Comments: no need to escape any characters in \code ... \endcode.Dmitri Gribenko2012-11-301-6/+6
| | | | llvm-svn: 169030
* Support for #pragma region/endregion for MSVC compatibility. Patch thanks ↵Aaron Ballman2012-11-302-0/+58
| | | | | | to pravic! llvm-svn: 169028
* Actually keep track of the source locations at which particular moduleDouglas Gregor2012-11-303-8/+16
| | | | | | files are loaded. llvm-svn: 169027
* When an error occurs while building a module on demand, provide "WhileDouglas Gregor2012-11-3010-28/+132
| | | | | | | | | 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
* Allow matchers to access the ASTContext.Manuel Klimek2012-11-302-0/+5
| | | | | | Patch by Edwin Vane. llvm-svn: 169000
* Update to reflect the change of macro name in r168993.Chandler Carruth2012-11-302-2/+2
| | | | llvm-svn: 168994
* Fix the computation of highlight ranges so we produce something sane whenEli Friedman2012-11-302-10/+44
| | | | | | | the beginning and end of the range are in different macro arguments. PR14399. llvm-svn: 168984
* Refactor to reduce duplication in handling of special member functions. No ↵Richard Smith2012-11-305-367/+155
| | | | | | functionality change. llvm-svn: 168977
* Add a test case for the new cortex-a5 switchQuentin Colombet2012-11-301-0/+5
| | | | llvm-svn: 168968
* Use the new LLVM_LVALUE_FUNCTION to ban two getAs() calls on rvalues.Jordan Rose2012-11-302-5/+14
| | | | | | | | | | | | | | | | | | 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
* Fix unit tests for ModuleLoader change in r168961.Douglas Gregor2012-11-304-16/+20
| | | | llvm-svn: 168962
* Keep track of modules that have failed to build. If we encounter anDouglas Gregor2012-11-297-33/+135
| | | | | | | | | | | | 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
* Fix a small calling-convention bug for x86-32. PR14453.Eli Friedman2012-11-292-2/+13
| | | | llvm-svn: 168959
* Add ARM cortex-a5 subtargetQuentin Colombet2012-11-292-3/+3
| | | | llvm-svn: 168958
* Remove out-of-date comment.Richard Smith2012-11-291-3/+0
| | | | llvm-svn: 168957
* Revert commit revision r168953, to change the commit message, which was emptyQuentin Colombet2012-11-292-3/+3
| | | | llvm-svn: 168956
* (no commit message)Quentin Colombet2012-11-292-3/+3
| | | | llvm-svn: 168953
* This patch exposes to Clang users three more sanitizers are experimental ↵Alexey Samsonov2012-11-296-10/+62
| | | | | | | | | | | | | | features of ASan: 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
* Make the test less sensitive to DWARF emission implementation details.Eli Bendersky2012-11-291-2/+2
| | | | | | | Note: the ":" goes into the regex because FileCheck wrongly complains about unbalanced brackets otherwise. llvm-svn: 168934
* Make sure that we put the rest of the sanitizer libraries on the link lineEric Christopher2012-11-292-7/+18
| | | | | | before libstdc++ like we do with ubsan. llvm-svn: 168918
* Use newer command line option here.Eric Christopher2012-11-291-1/+1
| | | | llvm-svn: 168908
* Remove duplicate test run lines.Eric Christopher2012-11-291-16/+0
| | | | llvm-svn: 168907
* Now that the underlying problem has been fixed, add r168411 back.Rafael Espindola2012-11-291-6/+4
| | | | | | | | Original commit message: Remove redundant code. llvm-svn: 168900
* Merge function types in C.Rafael Espindola2012-11-296-13/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Remove i128 ↵NAKAMURA Takumi2012-11-291-14/+2
| | | | | | stuff. Conditioning-out in macro argument was not accepted on MS cl.exe. llvm-svn: 168867
* ASTTests/StmtPrinterTest/StmtPrinter.TestMSIntegerLiteral: Suppress i128 ↵NAKAMURA Takumi2012-11-291-4/+12
| | | | | | | | | 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
* [-cxx-abi microsoft] Also spill the argument-back-references context when ↵Timur Iskhodzhanov2012-11-292-3/+9
| | | | | | mangling templates llvm-svn: 168862
* Reject uses of __int128 on platforms that don't support it. Also move the uglyRichard Smith2012-11-298-5/+30
| | | | | | | 'getPointerWidth(0) >= 64' test to be a method on TargetInfo, ready to be properly cleaned up. llvm-svn: 168856
* Fix sentence construction-o.Nico Weber2012-11-291-1/+1
| | | | llvm-svn: 168855
* Fix crash-on-invalid. <rdar://problem/12765391>.Eli Friedman2012-11-295-12/+34
| | | | llvm-svn: 168851
* The declaration of a special member can require overload resolution to beRichard Smith2012-11-293-10/+140
| | | | | | | | | | | performed, to determine whether that special member is deleted or constexpr. That overload resolution process can in turn trigger the instantiation of a template, which can do anything, including triggering the declaration of that very same special member function. When this happens, do not try to recursively declare the special member -- that's impossible. Instead, only try to realise the truth. There is no special member. llvm-svn: 168847
OpenPOWER on IntegriCloud