summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* ObjectiveC migrator. use strong instead of Fariborz Jahanian2013-11-214-71/+71
| | | | | | | retain attribute for inferred properties. // rdar://15519923 llvm-svn: 195292
* ObjectiveC. Allow toll free bridge cast warnings outsideFariborz Jahanian2013-11-214-15/+410
| | | | | | | ARC and in objectiveC/ObjectiveC++ MRR mode as well. // rdar://15454846 llvm-svn: 195288
* [-cxx-abi microsoft] Emit linkonce_odr definitions for declarations of ↵Hans Wennborg2013-11-211-0/+35
| | | | | | | | | | | | | | | static data members with inline initializers (PR17689) This makes Clang emit a linkonce_odr definition for 'val' in the code below, to be compatible with MSVC-compiled code: struct Foo { static const int val = 1; }; Differential Revision: http://llvm-reviews.chandlerc.com/D2233 llvm-svn: 195283
* Fix new check for missing semicolon after struct definition to deal with theRichard Smith2013-11-202-4/+14
| | | | | | | case where the type in the following declaration is specified as a template-id, and refactor for clarity. llvm-svn: 195280
* ObjectiveC ARC. warn in presense of __bridge casting to Fariborz Jahanian2013-11-201-3/+13
| | | | | | or from a toll free bridge cast. // rdar://15454846 llvm-svn: 195278
* There is no such thing as __declspec(ms_struct), this is a GNU attribute. ↵Aaron Ballman2013-11-201-4/+6
| | | | | | Switched the attribute to have the proper spelling, gave it a subject, updated the warning to be more accurate, and updated the test case as appropriate. llvm-svn: 195277
* Removed a duplicate diagnostic related to attribute subjects for thread ↵Aaron Ballman2013-11-201-12/+12
| | | | | | safety annotations, and replaced it with the more general attribute diagnostic. Updated the test case in the one instance where wording changed. No functional change intended. llvm-svn: 195275
* [NVPTX] Update ABI handlingJustin Holewinski2013-11-201-0/+17
| | | | | | For PTX, we want the target to handle struct returns directly. llvm-svn: 195268
* Set default Dwarf Version for -gline-tables-only on Darwin to 2.Manman Ren2013-11-201-0/+8
| | | | | | | | | We are still using Dwarf Version 2 for Darwin systems, make it consistent with -gline-tables-only. This should fix an internal buildbot. llvm-svn: 195267
* ObjectiveC ARC. Better checking of toll free briding Fariborz Jahanian2013-11-201-0/+24
| | | | | | | from qualified-id objects to CF types with objc_bridge annotation. // rdar://15454846 llvm-svn: 195264
* Refine 'deprecated' checking for Objective-C classes/methods.Ted Kremenek2013-11-201-0/+38
| | | | | | | | | - If a deprecated class refers to another deprecated class, do not warn. - @implementations of a deprecated class can refer to other deprecated things. Fixes <rdar://problem/15407366> and <rdar://problem/15466783>. llvm-svn: 195259
* [Mips] Take in account the -mfp64 command line option when build pathsSimon Atanasyan2013-11-20216-0/+946
| | | | | | to the crt*.o files, libraries and headers for the MIPS FSFS toolchain. llvm-svn: 195249
* Removing a custom error diagnostic and replacing it with a stock one. Added ↵Aaron Ballman2013-11-201-0/+1
| | | | | | a test case to ensure the diagnostic was firing properly. llvm-svn: 195188
* Comment parsing tests: introduce a little more structure in testcaseDmitri Gribenko2013-11-201-34/+58
| | | | llvm-svn: 195187
* Revert r195176, it is breaking buildbots for unclear reasonDmitri Gribenko2013-11-201-58/+34
| | | | llvm-svn: 195184
* ObjectiveC ARC. validate toll free bridge castingFariborz Jahanian2013-11-201-4/+43
| | | | | | | to or from 'id' and qualified-id types. // rdar://15454846 llvm-svn: 195178
* Comment parsing tests: introduce a little more structure in testcaseDmitri Gribenko2013-11-201-34/+58
| | | | llvm-svn: 195176
* [analyzer] Fix an infinite recursion in region invalidation by adding block ↵Anna Zaks2013-11-201-0/+16
| | | | | | count to the BlockDataRegion. llvm-svn: 195174
* Add a mangler entry point for TBAA rather than using RTTI directlyReid Kleckner2013-11-191-0/+22
| | | | | | | | | | | | | | | | | | | | Summary: RTTI is not yet implemented for the Microsoft C++ ABI and isn't expected soon. We could easily add the mangling, but the error is what prevents us from silently miscompiling code that expects RTTI. Instead, add a new mangleTypeName entry point that simply forwards to mangleName or mangleType to produce a string that isn't part of the ABI. Itanium can continue to use RTTI names to avoid unecessary test breakage. This also seems like the right design. The fact that TBAA names happen to be RTTI names is now an implementation detail of the mangler, rather than part of TBAA. Differential Revision: http://llvm-reviews.chandlerc.com/D2153 llvm-svn: 195168
* PR9547: If we're parsing a simple-declaration that contains a tag definition,Richard Smith2013-11-192-2/+55
| | | | | | | | and we see an ill-formed declarator that would probably be well-formed if the tag definition were just missing a semicolon, use that as the diagnostic instead of producing some other mysterious error. llvm-svn: 195163
* Microsoft Record Layout: zero sized base after base with vbtbl fixWarren Hunt2013-11-191-0/+216
| | | | | | | | | | Microsoft adds an extra byte of padding before laying out zero sized non-virtual bases if the non-virtual base before it contains a vbptr. This patch adds the same behavior to clang. Differential Revision: http://llvm-reviews.chandlerc.com/D2106 llvm-svn: 195158
* Further fixes when thiscall is the default for methods.Rafael Espindola2013-11-191-0/+7
| | | | | | | | | | | | | | | | | | The previous patches tried to deduce the correct function type. I now realize this is not possible in general. Consider class foo { template <typename T> static void bar(T v); }; extern template void foo::bar(const void *); We will only know that bar is static after a lookup, so we have to handle this in the template instantiation code. This patch reverts my previous two changes (but not the tests) and instead handles the issue in DeduceTemplateArguments. llvm-svn: 195154
* ARM: embedded v7 'darwin' doesn't get min-version defines.Jim Grosbach2013-11-191-3/+4
| | | | | | | | | Make sure armv7 doesn't get the iOS deployment version definitions when it's being used for non-iOS. rdar://15497681 llvm-svn: 195149
* Remove full path from CHECK lineDmitri Gribenko2013-11-191-1/+2
| | | | llvm-svn: 195147
* ObjectiveC ARC. Removes a bogus warning when a weak Fariborz Jahanian2013-11-191-0/+5
| | | | | | | property is redeclared as 'weak' in class extension. // rdar://15465916 llvm-svn: 195146
* Documentation parsing: in HeaderDoc, \abstract is equivalent to \briefDmitri Gribenko2013-11-191-13/+28
| | | | llvm-svn: 195145
* ObjectiveC migrator. Do not migrate categories withFariborz Jahanian2013-11-193-100/+4
| | | | | | 'Deprecated' name suffix. llvm-svn: 195137
* bjectiveC. Use a uniform diagnostic forFariborz Jahanian2013-11-191-7/+7
| | | | | | 'objc_bridge' attribute. // rdar://15454846. llvm-svn: 195135
* Revert r194540, it breaks various C++ programs.Joerg Sonnenberger2013-11-191-6/+0
| | | | llvm-svn: 195126
* [Mips] Do not adjust float-abi flags in case of MIPS16 mode. This codeSimon Atanasyan2013-11-191-10/+8
| | | | | | | | | | should be isolated in the backend (r195123). From the frontend point of view in case of "-mhard-float -mips16" combination of flags the float ABI mode should remain unchanged. The patch reviewed by Reed Kotler. llvm-svn: 195124
* Giving this test a triple since it uses a calling convention attribute.Aaron Ballman2013-11-191-1/+1
| | | | llvm-svn: 195099
* Improving calling convention test coverage by adding tests for things not ↵Aaron Ballman2013-11-193-0/+18
| | | | | | currently handled. Specifically: the diagnostics in SemaDeclAttr.cpp, and ensuring that calling convention attributes are applied to ObjC method declarations. No functional changes. llvm-svn: 195098
* Rename an extension warning to ext_...Richard Smith2013-11-191-1/+1
| | | | llvm-svn: 195095
* Disable this check temporarily.Bill Wendling2013-11-191-1/+1
| | | | | | | | | | | | | | | This is failing for me. When I run the command on my own, I get this: Error reading /usr/local/google/home/morbo/llvm/llvm.obj/tools/clang/test/Format/Output/.clang-format: Invalid argument void f() { int* i; int j; } The formatting is like this because I have the Google format version in my ~/.clang-format file. This test should be made independent of that. llvm-svn: 195080
* Implement AArch64 neon instructions class SIMD lsone and SIMD lone-post.Hao Liu2013-11-191-0/+2047
| | | | llvm-svn: 195079
* Implement AArch64 SISD intrinsics for vget_high and vget_low.Jiangning Liu2013-11-191-0/+176
| | | | llvm-svn: 195073
* Add predicate for AArch64 crypto instructions.Jiangning Liu2013-11-191-1/+4
| | | | llvm-svn: 195069
* Clean up predefined macros for AArch64 to follow ACLE 2.0.Jiangning Liu2013-11-191-14/+19
| | | | llvm-svn: 195068
* ObjectiveC 'objc_bridging'. Assorment of improvements Fariborz Jahanian2013-11-191-10/+10
| | | | | | per Doug/Jordan comments. // rdar://15454846. llvm-svn: 195066
* ObjectiveC ARC. Adopt objc_bridge attributeFariborz Jahanian2013-11-191-16/+23
| | | | | | | on struct/union/class instead of typedef of such types. // rdar://15454846 llvm-svn: 195061
* Change the clang driver with the use of -no-integrated-as for darwin to useKevin Enderby2013-11-181-3/+3
| | | | | | | | | | | | | | | the -Q flag to the as(1) assembler driver. We will soon be switching the darwin as(1) assembler driver to call clang(1) and use the intergated assembler by default. To do this and still support clang(1)'s -no-integrated-as flag, when clang(1) runs the as(1) assembler driver and -no-integrated-as is used it needs to pass the -Q flag to as(1) so it uses its GNU based assembler, and not turn around and call clag(1)'s integrated assembler. rdar://15495921 llvm-svn: 195054
* The attached patch is a follow up from my previous one. The existingRafael Espindola2013-11-181-0/+9
| | | | | | | | | | logic was not handling typedefs as free functions. This was not causing problems with the existing tests, but does with the microsoft abi where they have to get a different calling convention. I will try to refactor this into a method on Declarator in a second. llvm-svn: 195050
* Remove period at end of "optimization level is unsupported" diagnosticHans Wennborg2013-11-182-2/+2
| | | | llvm-svn: 195048
* Make test/Driver/clang_f_opts.c not write to the test dirHans Wennborg2013-11-182-2/+2
| | | | | | | After r195009, the test would write a .o file to the test dir. Send that to /dev/null instead. Also fix the typo in test/Frontend/invalid-o-level.c. llvm-svn: 195047
* Use the default method CC in GetFullTypeForDeclarator.Rafael Espindola2013-11-181-0/+7
| | | | | | | | | | | | | Before this patch explicit template instatiations of member function templates were failing with the microsoft abi and 32 bits. This was happening because the expected and computed function types had different calling conventions. This patch fixes it by considering the default calling convention in GetFullTypeForDeclarator. This fixes pr17973. llvm-svn: 195032
* Using an invalid -O falls back on -O3 instead of an errorSylvestre Ledru2013-11-182-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Currently with clang: $ clang -O20 foo.c error: invalid value '20' in '-O20' With the patch: $ clang -O20 foo.c warning: optimization level '-O20' is unsupported; using '-O3' instead. 1 warning generated. This matches the gcc behavior (with a warning added) Pass all tests: Testing: 0 .. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. Testing Time: 94.14s Expected Passes : 6721 Expected Failures : 20 Unsupported Tests : 17 (which was not the case of http://llvm-reviews.chandlerc.com/D2125) Differential Revision: http://llvm-reviews.chandlerc.com/D2212 llvm-svn: 195009
* clang/test/CXX/drs/dr2xx.cpp: Suppress this for targeting LLP64 due to ↵NAKAMURA Takumi2013-11-181-0/+3
| | | | | | | | | | | | __SIZE_TYPE__. Line 559: 'long long' is a C++11 extension Line 566: 'long long' is a C++11 extension Line 674: 'long long' is a C++11 extension See also PR13819. llvm-svn: 195005
* clang/test/Tooling/multi-jobs.cpp: Mark this as XFAIL:msvc for now. It has ↵NAKAMURA Takumi2013-11-181-0/+3
| | | | | | | | been failing since r194968. MSVC targeted drivers (*-win32) are incapable of invoking external assembler. llvm-svn: 194992
* Implement the newly added AArch64 ACLE functions for ld1/st1 with 2/3/4 vectors.Hao Liu2013-11-182-0/+1133
| | | | | | The functions are like: vst1_s8_x2 ... llvm-svn: 194991
* Tests for core issues 251-270.Richard Smith2013-11-181-0/+193
| | | | llvm-svn: 194989
OpenPOWER on IntegriCloud