llvm-project/clang/test
Faisal Vali 66605d40a7 Fix an instantiation bug with nested generic lambdas and conversion to fptrs.
This patch fixes the typelocs of the conversion-operator and the conversion-operator-name and adds the parameters of the call operator to the FunctionProtoTypeLoc of the respective entities. Thus, when the template declarations (conversion operators) undergo deduction and instantiation/transformation/substitution - they add themselves to the local instantiation scope if needed.

This patch supports the following:

auto L = [](auto b) {
  return [](auto a) ->decltype(a) { return a; };
};
int (*fp)(int) = L(8);

Richard LGTM'd this patch: http://llvm-reviews.chandlerc.com/D1831

Thanks!

llvm-svn: 193294
2013-10-24 01:05:22 +00:00
..
ARCMT ObjectiveC migrator. In infering NS_ENUM/NS_OPTIONS 2013-10-17 22:23:32 +00:00
ASTMerge Changes so that a few tests do not fail when running under guarded malloc. 2013-07-12 22:30:03 +00:00
Analysis [analyzer] Generate a LazyCompoundVal when loading from a union-typed region. 2013-10-23 20:08:55 +00:00
CXX And Again: Teach TreeTransform how to transform nested generic lambdas. 2013-10-23 06:44:28 +00:00
CodeCompletion Fix FileCheck --check-prefix lines. 2013-08-12 12:51:05 +00:00
CodeGen Intrinsics: fix extract & insert when index is out of bound. 2013-10-23 20:33:14 +00:00
CodeGenCUDA CHECK-LABEL-ify some code gen tests to improve diagnostic experience when tests fail. 2013-08-15 06:47:53 +00:00
CodeGenCXX AST: Mangle fields in anonymous structs/unions 2013-10-23 20:52:43 +00:00
CodeGenObjC Emit a .ident saying that clang produced this file. 2013-10-16 19:28:50 +00:00
CodeGenObjCXX Fix ObjC @encode for C++ classes w/virtual bases. 2013-09-18 01:59:16 +00:00
CodeGenOpenCL Certain multi-platform languages, such as OpenCL, have the concept of 2013-09-13 12:04:22 +00:00
Coverage Adds Microsoft compatiable C++ record layout code to clang. 2013-10-11 20:19:00 +00:00
Driver Split -fsanitize=bounds to -fsanitize=array-bounds (for the frontend-inserted 2013-10-22 22:51:04 +00:00
FixIt Special case '%C' handling in ObjC format strings to handle integer literals that can represent unicode characters 2013-10-15 05:25:17 +00:00
Format Allow _clang-format as alternative to .clang-format config filename 2013-09-10 15:41:12 +00:00
Frontend clang/test/Frontend/rewrite-includes.c: Tweak expressions for r'\\', not r'\', on win32. 2013-08-29 16:11:17 +00:00
Headers Add implementations of the MSVC barrier intrinsics 2013-10-17 01:29:48 +00:00
Index [libclang] When querying for the availability of an enumerator, pick up the availability from the enum declaration. 2013-10-15 17:00:53 +00:00
Layout Implements 64 bit microsoft record layout and adds lit tests to cover 2013-10-23 23:53:07 +00:00
Lexer Relax header guard mismatch warning with edit distance heuristic. 2013-10-12 23:17:37 +00:00
Misc Fix an edge case in the template differ with default arguments. 2013-10-08 16:58:52 +00:00
Modules Make UsingShadowDecls redeclarable. This fixes some visibility problems with 2013-10-23 02:17:46 +00:00
OpenMP [OpenMP] Added parsing and semantic analysis for firstprivate clause 2013-10-01 05:32:34 +00:00
PCH Refactor out the circular reference to LambdaExpr in CXXRecordDecl. 2013-10-23 16:10:50 +00:00
Parser Parse: Disable delayed template parsing for constexpr functions 2013-10-23 21:31:20 +00:00
Preprocessor Set the default hardware division features for ARM cpus. Also set it as default for A32 armv8. 2013-10-21 10:59:33 +00:00
Rewriter ObjectiveC modern rewriter. Rewrite typedefs 2013-10-07 19:54:22 +00:00
Sema Implements 64 bit microsoft record layout and adds lit tests to cover 2013-10-23 23:53:07 +00:00
SemaCUDA
SemaCXX Fix an instantiation bug with nested generic lambdas and conversion to fptrs. 2013-10-24 01:05:22 +00:00
SemaObjC ObjectiveC. Added support for methods annotated with format_arg 2013-10-18 21:20:34 +00:00
SemaObjCXX ObjectiveC++: support for passing C++11 style initialized temporaries to 2013-10-16 17:51:43 +00:00
SemaOpenCL Removing the endian attribute and updating associated test cases. This functionality was never completely implemented, and this is an improvement over silently eating the attribute. 2013-09-09 12:57:20 +00:00
SemaTemplate Sema: Allow IndirectFieldDecl to appear in a non-type template argument 2013-10-22 21:56:38 +00:00
TableGen
Tooling Fixed replacements for files with relative paths are not applied. 2013-10-01 14:59:00 +00:00
Unit [tests] Update to use lit_config and lit package, as appropriate. 2013-08-09 14:43:04 +00:00
CMakeLists.txt Re-add clang-format tests to clang/test. 2013-03-25 09:14:25 +00:00
Makefile Make the information about disabled ARCMT/Rewriter/StaticAnalyzer available 2013-08-27 19:27:35 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests 2013-09-13 11:02:31 +00:00
lit.site.cfg.in Add "native" to config.available_features, to make it easier to disable non-x-compile-safe tests 2013-09-13 11:02:31 +00:00
make_test_dirs.pl