summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix OpenMP recovery with trailing tokens following the pragmaAlp Toker2013-12-182-0/+18
| | | | | | | | The recovery was failing due to a missing case in SkipUntil(). Also add back tests from r197553 that were reverted in the previous commit. llvm-svn: 197598
* Revert "[OPENMP] Fix for parsing OpenMP directives with extra braces, ↵Alp Toker2013-12-182-18/+0
| | | | | | | | | | | brackets and parens" These parser changes were redundant. The same or better recovery can be achieved with a one-line fix to SkipUntil() due to land in the next commit. This reverts commit r197553. llvm-svn: 197597
* Adding a win32-targeted test into Tooling/multi-jobs.cpp, to make sure it ↵Artyom Skrobov2013-12-181-0/+1
| | | | | | | | doesn't get broken again (prompted by NAKAMURA Takumi) llvm-svn: 197596
* check-clang: Fixup r197576, to replace CMAKE_CFG_INTDIR on clang_tools_dir.NAKAMURA Takumi2013-12-181-0/+1
| | | | llvm-svn: 197593
* ObjectiveC. Fixes the sentence in a diagnostic.Fariborz Jahanian2013-12-181-1/+1
| | | | | | // rdar://15397430 llvm-svn: 197586
* Implement the MSABI and SysVABI calling conventions for Objective-C method ↵Aaron Ballman2013-12-181-2/+4
| | | | | | declarations. This appears to be an omission from r189644. llvm-svn: 197584
* Add -f64:32:64 to the darwin ppc32 DataLayout.Rafael Espindola2013-12-181-1/+1
| | | | | | A f64 inside a struct can be 32 bit aligned on darwin. llvm-svn: 197577
* check-clang: Introduce clang_tools_dir in lit.site.cfg, for clang separated ↵NAKAMURA Takumi2013-12-184-1/+8
| | | | | | from llvm. llvm-svn: 197576
* clang/test/CMakeLists.txt: Prune CLANG_SOURCE_DIR and CLANG_BINARY_DIR. They ↵NAKAMURA Takumi2013-12-181-3/+0
| | | | | | are set at top. llvm-svn: 197575
* [OPENMP] Fix for parsing OpenMP directives with extra braces, brackets and ↵Alexey Bataev2013-12-182-0/+18
| | | | | | parens llvm-svn: 197553
* Use arm-nacl-gnueabi instead of arm-nacl to match the previous tests.Rafael Espindola2013-12-181-1/+1
| | | | llvm-svn: 197550
* Split this test into one per supporter nacl arch.Rafael Espindola2013-12-181-3/+13
| | | | | | | | | Right now clang produces the same DataLayout for all of them, but it could, for example, add 'n' specifications when the end architecture is given. No functionality change, this should just make future changes easier to read. llvm-svn: 197549
* Print the 'p' specification before the 'i' specification.Rafael Espindola2013-12-181-1/+1
| | | | | | No functionality change. llvm-svn: 197548
* ObjectiveC. typo fix in my last patch,Fariborz Jahanian2013-12-181-2/+2
| | | | | | per Jordan's review. llvm-svn: 197540
* Add a 's' specifications to AArch64.Rafael Espindola2013-12-171-1/+1
| | | | | | | | This has no functionality change as clang adds explicit alignment info for byval arguments. The only difference is that now the clang produced DataLayout string for AArch64 is identical to the LLVM produced one. llvm-svn: 197538
* Objctive-C. warn if dealloc is being overridden inFariborz Jahanian2013-12-171-2/+18
| | | | | | a category implementation. // rdar://15397430 llvm-svn: 197534
* Documentation comment parsing: when checking if we have typedef to somethingDmitri Gribenko2013-12-171-0/+12
| | | | | | | that we consider a function for the purposes of checking \param and \returns, look through reference types. llvm-svn: 197530
* Documentation comment parsing: allow \param and \returns on std::function,Dmitri Gribenko2013-12-171-0/+31
| | | | | | boost::function and similar function-like objects llvm-svn: 197528
* Use triples that match the -target-abi option.Rafael Espindola2013-12-171-2/+2
| | | | llvm-svn: 197522
* [ms-cxxabi] The 'most derived' ctor parameter usually comes lastReid Kleckner2013-12-171-0/+31
| | | | | | | | | | | | | | Unlike Itanium's VTTs, the 'most derived' boolean or bitfield is the last parameter for non-variadic constructors, rather than the second. For variadic constructors, the 'most derived' parameter comes after the 'this' parameter. This affects constructor calls and constructor decls in a variety of places. Reviewers: timurrrr Differential Revision: http://llvm-reviews.chandlerc.com/D2405 llvm-svn: 197518
* Documentation comment parsing: rearrange tests to clarify the intent of ↵Dmitri Gribenko2013-12-171-14/+22
| | | | | | these tests llvm-svn: 197517
* Fix line endings in microsoft-dtor-lookup-cxx11.cppHans Wennborg2013-12-171-13/+13
| | | | llvm-svn: 197516
* Objective-C. Make diagnostics and fix-its consistent Fariborz Jahanian2013-12-172-4/+28
| | | | | | | | when diagnosing casting of a cstring literal to NSString in default and -fobjc-arc mode. // rdar://14106083 llvm-svn: 197515
* [ms-cxxabi] Don't do destructor check on declarations if the dtor is deletedHans Wennborg2013-12-171-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | We would previously emit redundant diagnostics for the following code: struct S { virtual ~S() = delete; void operator delete(void*, int); void operator delete(void*, double); } s; First we would check on ~S() and error about the ambigous delete functions, and then we would error about using the deleted destructor. If the destructor is deleted, there's no need to check it. Also, move the check from Sema::ActOnFields to CheckCompleteCXXClass. These are run at almost the same time, called from ActOnFinishCXXMemberSpecification. However, CHeckCompleteCXXClass may mark a defaulted destructor as deleted, and if that's the case we don't want to check it. Differential Revision: http://llvm-reviews.chandlerc.com/D2421 llvm-svn: 197509
* Remove -f128:128 from the DataLayout strings. It is the default.Rafael Espindola2013-12-171-6/+6
| | | | llvm-svn: 197504
* The PS3 is a ppc64 and has 64 bit registers. Update DataLayout accordingly.Rafael Espindola2013-12-171-1/+1
| | | | llvm-svn: 197502
* Remove -f16:16:32 from the XCore DataLayout string.Rafael Espindola2013-12-171-1/+1
| | | | | | This makes it identical to the string llvm produces. llvm-svn: 197500
* LIBRARY_PATH environment variable should only be supported on a native compiler.Richard Barton2013-12-171-0/+1
| | | | llvm-svn: 197490
* Add missing file from r197485.Daniel Jasper2013-12-171-0/+2
| | | | | | (Yes, the irony is not lost on me :-) ). llvm-svn: 197486
* Modules: Don't warn upon missing headers while reading the module map.Daniel Jasper2013-12-174-2/+12
| | | | | | | | | | | | | | | Instead, mark the module as unavailable so that clang errors as soon as someone tries to build this module. This works towards the long-term goal of not stat'ing the header files at all while reading the module map and instead read them only when the module is being built (there is a corresponding FIXME in parseHeaderDecl()). However, it seems non-trivial to get there and this unblock us and moves us into the right direction. Also changed the implementation to reuse the same DiagnosticsEngine. llvm-svn: 197485
* [CMake][Standalone] Fixup r197395 for standalone build.NAKAMURA Takumi2013-12-171-0/+9
| | | | | | Standalone scripts shall be rewritten. llvm-svn: 197459
* Add a test for -fno-diagnostics-fixit-infoDmitri Gribenko2013-12-171-0/+16
| | | | llvm-svn: 197450
* ObjectiveC migrator. Fixes a bug when protocolFariborz Jahanian2013-12-172-0/+32
| | | | | | conformance is inferred. // rdar://15515206 llvm-svn: 197448
* For -Wconsumed, walk the namespaces to find if the top most namespace is "std"Richard Trieu2013-12-171-0/+8
| | | | | | | to determine if a move function is the std::move function. This allows functions like std::__1::move to also be treated a the move function. llvm-svn: 197445
* Reorder these DataLayout entries to match the order LLVM uses.Rafael Espindola2013-12-171-3/+3
| | | | | | | This completes the cleanup/refactoring of DataLayout on the clang side. Next is figuring out the differences between the llvm and clang produced strings llvm-svn: 197442
* The preferred alignment defaults to the ABI one. Omit it if it is the same.Rafael Espindola2013-12-161-36/+36
| | | | llvm-svn: 197440
* Remove another default I missed before.Rafael Espindola2013-12-161-1/+1
| | | | llvm-svn: 197437
* ObjectiveC. Further improvements of useFariborz Jahanian2013-12-163-26/+22
| | | | | | | | | | of objc_bridge_related attribute; eliminate unnecessary diagnostics which is issued elsewhere, fixit now produces a valid AST tree per convention. This results in some simplification in handling of this attribute as well. // rdar://15499111 llvm-svn: 197436
* Clang DataLayout string cleanup: don't print other defaults.Rafael Espindola2013-12-161-1/+1
| | | | | | I missed these in previous commits. llvm-svn: 197435
* Remove dead data.Rafael Espindola2013-12-161-1/+1
| | | | | | | The f80:128:128 was followed by a f80:32:32 and so never used. Looks like this was there since r91746. llvm-svn: 197433
* Clang DataLayout string cleanup: don't print the pointer defaults.Rafael Espindola2013-12-161-11/+11
| | | | llvm-svn: 197430
* Clang DataLayout string cleanup: don't print the aggregate defaults.Rafael Espindola2013-12-161-6/+6
| | | | llvm-svn: 197429
* Fix PR18260 - Make std::move handling in -Wconsumed only trigger on std::moveRichard Trieu2013-12-161-0/+19
| | | | llvm-svn: 197428
* Clang DataLayout string cleanup: don't print the vector defaults.Rafael Espindola2013-12-161-28/+28
| | | | llvm-svn: 197427
* Clang DataLayout string cleanup: don't print the FP defaults.Rafael Espindola2013-12-161-35/+35
| | | | llvm-svn: 197422
* Clang DataLayout string cleanup: don't print the integer defaults.Rafael Espindola2013-12-161-36/+36
| | | | llvm-svn: 197421
* Misc test cleanups.Rafael Espindola2013-12-163-11/+6
| | | | | | | | * tbaa-struct.cpp always has a 64 bit pointer. * f32:32:32, f64:64:64 and f128:128:128 are defaults, don't assume they are printed. llvm-svn: 197415
* Make Sema::BuildCXXNestedNameSpecifier correctly clear the previousKaelyn Uhrain2013-12-161-0/+18
| | | | | | | | CXXScopeSpec when necessary while performing typo correction. This fixes the crash reported in PR18213 (the problem existed since r185487, and r193020 made it easier to hit). llvm-svn: 197409
* [AArch64] Fix v1fx patterns for Floating-point Multiply Extend and ↵Chad Rosier2013-12-162-1/+30
| | | | | | Floating-point Compare to Zero. llvm-svn: 197403
* Revert "Modules: Make missing headers in a module.map a warning not an error."Daniel Jasper2013-12-163-5/+1
| | | | | | This was committed accidentally. llvm-svn: 197389
OpenPOWER on IntegriCloud