summaryrefslogtreecommitdiffstats
path: root/clang/test
Commit message (Collapse)AuthorAgeFilesLines
* change ParseStatementOrDeclaration to emit the 'missing ;' withChris Lattner2009-06-141-0/+3
| | | | | | | | | | | | | | | | | | | ExpectAndConsume instead of custom diag logic. This gets us an insertion hint and positions the ; at the end of the line instead of on the next token. Before: t.c:5:1: error: expected ';' after return statement } ^ after: t.c:4:11: error: expected ';' after return statement return 4 ^ ; llvm-svn: 73315
* Fix the calling convention for structs/unions containing SSE vectors on Eli Friedman2009-06-131-0/+5
| | | | | | x86-32. This is slightly messy, but I think it's consistent with gcc. llvm-svn: 73306
* Don't include system headers when overriding triple.Daniel Dunbar2009-06-131-4/+2
| | | | llvm-svn: 73301
* Force Obj-C runtime version for this testDaniel Dunbar2009-06-131-2/+2
| | | | llvm-svn: 73300
* Switch to the new test runner.Daniel Dunbar2009-06-131-29/+4
| | | | | | | | - TestRunner.sh still needs to be moved over. - Please let me know if you find problems / missing features. llvm-svn: 73298
* Allow initializing a vector with a vector in addition to allowing a list Eli Friedman2009-06-131-0/+17
| | | | | | of the elements. Issue reported on cfe-dev by Mattias Holm. llvm-svn: 73292
* implement and document a new __has_feature and __has_builtin magic Chris Lattner2009-06-131-0/+30
| | | | | | | | | builtin preprocessor macro. This appears to work with two caveats: 1) builtins are registered in -E mode, and 2) target-specific builtins are unconditionally registered even if they aren't supported by the target (e.g. SSE4 builtin when only SSE1 is enabled). llvm-svn: 73289
* Move a bunch of tests into temp.param, and write a few tests for paragraphs ↵Douglas Gregor2009-06-1314-90/+169
| | | | | | that hadn't been touched before llvm-svn: 73288
* Add some random C++ standard tests.Daniel Dunbar2009-06-137-0/+74
| | | | llvm-svn: 73287
* Add the structure for a C++ test suite that mimics the structure of the C++ ↵Douglas Gregor2009-06-132-0/+1981
| | | | | | standard llvm-svn: 73286
* Fix for PR4382: allow instantiating dependent nested name specifiers. Eli Friedman2009-06-132-4/+9
| | | | | | | | I'm not completely sure this is the right way to fix this issue, but it seems reasonable, and it's consistent with the non-template code for this construct. llvm-svn: 73285
* If a CXXRecordDecl is a class template, the 'this' type should be the ↵Anders Carlsson2009-06-131-1/+7
| | | | | | injected class name type. Fixes pr4383. llvm-svn: 73284
* More work on type parameter packs.Anders Carlsson2009-06-131-0/+19
| | | | llvm-svn: 73281
* When some template parameters of a class template partialDouglas Gregor2009-06-131-0/+4
| | | | | | | specialization cannot be deduced, produce a warning noting that the affected class template partial specialization will never be used. llvm-svn: 73274
* Fix PR4372, another case where non-prototyped functions can prevent Chris Lattner2009-06-131-1/+8
| | | | | | always_inline from working. llvm-svn: 73273
* A parameter pack must always come last in a class template.Anders Carlsson2009-06-121-1/+2
| | | | llvm-svn: 73269
* Address more comments from Doug.Anders Carlsson2009-06-121-0/+5
| | | | llvm-svn: 73267
* Parameter packs can't have default arguments.Anders Carlsson2009-06-121-0/+3
| | | | llvm-svn: 73262
* Finish implementing checking of class template partial specializationsDouglas Gregor2009-06-122-1/+17
| | | | llvm-svn: 73260
* Diagnose C++ [temp.class.spec]p9b3, where a class template partialDouglas Gregor2009-06-121-2/+5
| | | | | | | | | specialization's arguments are identical to the implicit template arguments of the primary template. Typically, this is meant to be a declaration/definition of the primary template, so we give that advice. llvm-svn: 73259
* Diagnose the incorrect use of non-type template arguments for classDouglas Gregor2009-06-122-45/+18
| | | | | | template partial specializations. llvm-svn: 73254
* Parse support for C++0x type parameter packs.Anders Carlsson2009-06-121-0/+6
| | | | llvm-svn: 73247
* Verify that the template parameters of a class template partialDouglas Gregor2009-06-121-0/+11
| | | | | | | specialization do not have default arguments (C++ [temp.class.spec]p10). llvm-svn: 73245
* Fix PR4365.Anders Carlsson2009-06-121-0/+16
| | | | llvm-svn: 73240
* It's an error to use a function declared in a class definition as a default ↵Anders Carlsson2009-06-121-2/+8
| | | | | | argument before the function has been declared. llvm-svn: 73234
* Deducation and instantiation of block types.Anders Carlsson2009-06-121-0/+34
| | | | llvm-svn: 73232
* Don't assert when generating code with static_asserts.Anders Carlsson2009-06-111-0/+3
| | | | llvm-svn: 73208
* Once we have deduced the template arguments of a class templateDouglas Gregor2009-06-111-4/+51
| | | | | | | | | | | | partial specialization, substitute those template arguments back into the template arguments of the class template partial specialization to see if the results still match the original template arguments. This code is more general than it needs to be, since we don't yet diagnose C++ [temp.class.spec]p9. However, it's likely to be needed for function templates. llvm-svn: 73196
* Add a null check that fixes the crash in PR4362, and make sure to ↵Anders Carlsson2009-06-111-0/+9
| | | | | | instantiate non-type template arguments. llvm-svn: 73193
* Bind the mistakenly generated nonloc::SymbolVal to struct correctly. See theZhongxing Xu2009-06-111-0/+10
| | | | | | comments for added test case for details. llvm-svn: 73189
* Make sure to calculate value-dependence correctly when deal with ICEs. Eli Friedman2009-06-111-0/+7
| | | | | | | | (Actually, this isn't precisely correct, but it doesn't make sense to query whether an expression that isn't an ICE is value-dependent anyway.) llvm-svn: 73179
* Move test to be with the other typename tests.Eli Friedman2009-06-111-0/+0
| | | | llvm-svn: 73178
* PR4364: fix parsing 'typename' in an expression.Eli Friedman2009-06-111-0/+19
| | | | llvm-svn: 73177
* Template argument deduction for member pointers.Douglas Gregor2009-06-101-0/+95
| | | | | | | Also, introduced some of the framework for performing instantiation as part of template argument deduction. llvm-svn: 73175
* Support complex properties, ivars and message expressions.Daniel Dunbar2009-06-101-0/+63
| | | | llvm-svn: 73158
* PR4353: Add support for \E as a character escape.Eli Friedman2009-06-101-0/+21
| | | | llvm-svn: 73153
* Handle member pointer types with dependent class types (e.g., intDouglas Gregor2009-06-093-1/+39
| | | | | | T::*) and implement template instantiation for member pointer types. llvm-svn: 73151
* Example metaprogram for reversing and searching in a type listDouglas Gregor2009-06-091-0/+70
| | | | llvm-svn: 73147
* Implement template argument deduction for class templateDouglas Gregor2009-06-091-0/+28
| | | | | | | | specialization types. As the example shows, we can now compute the length of a type-list using a template metaprogram and class template partial specialization. llvm-svn: 73136
* Fix test, which could miss failures, and also avoid leaving temporary .i file inDaniel Dunbar2009-06-081-3/+4
| | | | | | source directory. llvm-svn: 73094
* Add stack alignment to x86_64 target data.Daniel Dunbar2009-06-081-0/+7
| | | | | | | - <rdar://problem/6948443> WARNING: Linking two modules of different data layouts! llvm-svn: 73093
* Forward -C and -CC to clang.Daniel Dunbar2009-06-081-0/+15
| | | | | | - <rdar://problem/6945384> Driver should pass down -C and -CC llvm-svn: 73087
* PR4016: Forward -fno-show-source-location to clang.Daniel Dunbar2009-06-081-1/+2
| | | | llvm-svn: 73082
* Address comments from Doug.Anders Carlsson2009-06-081-0/+2
| | | | llvm-svn: 73077
* Test template argument deduction on function types a little moreDouglas Gregor2009-06-081-0/+12
| | | | llvm-svn: 73072
* Template argument deduction for function types.Anders Carlsson2009-06-081-0/+32
| | | | llvm-svn: 73070
* Don't allow defining a block with a non-prototype type. Remove a Eli Friedman2009-06-084-7/+7
| | | | | | | | | | hack which introduces some strange inconsistencies in compatibility for block pointers. Note that unlike an earlier revision proposed on cfe-commits, this patch still allows declaring block pointers without a prototype. llvm-svn: 73041
* Instantiation support for more Obj-C expressions, string literals, @selector ↵Anders Carlsson2009-06-071-4/+39
| | | | | | and @protocol expressions. llvm-svn: 73036
* Template instantiation support for Obj-C @encode expressions.Anders Carlsson2009-06-071-0/+12
| | | | llvm-svn: 73034
* Remove a few more vector builtins.Eli Friedman2009-06-071-5/+0
| | | | llvm-svn: 73022
OpenPOWER on IntegriCloud