llvm-project/clang/test
Hans Wennborg a926d84c4b Emit used/dllexport inline method definitions in nested classes (PR19743, PR11170)
The previous code that was supposed to handle this didn't work
since parsing of inline method definitions is delayed to the end
of the outer class definition. Thus, when HandleTagDeclDefinition()
got called for the inner class, the inline functions in that class
had not been parsed yet.

Richard suggested that the way to do this is by handling inline
method definitions through a new ASTConsumer callback.

I really wanted to call ASTContext::DeclMustBeEmitted() instead of
checking for attributes, but doing that causes us to compute linkage,
and then we fail with "error: unsupported: typedef changes linkage
of anonymous type, but linkage was already computed" on tests like
this: (from SemaCXX/undefined-internal.cpp) :-/

  namespace test7 {
    typedef struct {
      void bar();
      void foo() { bar(); }
    } A;
  }

Differential Revision: http://reviews.llvm.org/D3809

llvm-svn: 209549
2014-05-23 20:37:38 +00:00
..
ARCMT [objcmt] Make sure we don't edit the return type to add 'instancetype' if the return type is already that. 2014-05-21 00:24:20 +00:00
ASTMerge Ignore test Inputs globally and remove redundant lit.local.cfg files 2013-11-15 13:37:49 +00:00
Analysis Fix testcase for case. 2014-05-20 17:15:31 +00:00
CXX Sema: Implement DR244 2014-05-21 20:19:59 +00:00
CodeCompletion When completing Objective-C instance method invocations, perform a contextual conversion to an Objective-C pointer type of the target expression if needed. This fixes code completion of method invocations where the target is a smart pointer that has an explicit conversion operator to an Objective-C type. 2014-02-28 19:07:22 +00:00
CodeGen Fix broken FileCheck prefix 2014-05-23 19:07:25 +00:00
CodeGenCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
CodeGenCXX Emit used/dllexport inline method definitions in nested classes (PR19743, PR11170) 2014-05-23 20:37:38 +00:00
CodeGenObjC DebugInfo: Avoid creating DILexicalScopeFiles when the filename in the current scope has not changed. 2014-05-14 00:29:00 +00:00
CodeGenObjCXX Include translation unit filename in global ctor symbol names. 2014-05-06 20:32:45 +00:00
CodeGenOpenCL Bug 18567: Fix constantexpr pointer casts with address spaces. 2014-04-17 17:45:37 +00:00
Coverage Skip this test when using lit integrated shell 2013-10-25 22:30:07 +00:00
Driver Don't reduce the stack protector level given -fstack-protector. 2014-05-22 22:57:39 +00:00
FixIt Refactor all the checking for missing 'template<>'s when a declaration has a 2014-04-17 03:29:33 +00:00
Format clang-format: Add basic test for -style=none. 2014-05-22 15:13:48 +00:00
Frontend Fix segmentation fault when mixing -Rpass with #line. 2014-05-08 13:49:54 +00:00
Headers Test case for r209489. 2014-05-23 17:35:08 +00:00
Index This test is XFAILed on Windows, but I cannot see a reason as to why it should be failing. The original commit which XFAILed this was r111581, which suggested something was wrong with file remapping, but that may have been subsequently fixed. 2014-05-19 15:02:10 +00:00
Integration Split out header integration tests 2014-05-04 13:00:32 +00:00
Layout Fix warning in ms-x86-vtordisp test case 2014-04-14 23:49:17 +00:00
Lexer Fixing some comments in this test. No functional changes. 2014-05-19 14:52:09 +00:00
Misc ARCMT/GC-check-warn-nsalloc.m: don't provide a diag group 2014-05-19 23:48:49 +00:00
Modules If a class template specialization from one module has its definition 2014-05-22 20:59:29 +00:00
OpenMP This patch adds a helper class (CGLoopInfo) for marking memory instructions with llvm.mem.parallel_loop_access metadata. 2014-05-22 08:54:05 +00:00
PCH Implemented support for "pragma clang optimize on/off", based on attribute 'optnone'. 2014-05-23 12:13:25 +00:00
Parser Implemented support for "pragma clang optimize on/off", based on attribute 'optnone'. 2014-05-23 12:13:25 +00:00
Preprocessor Provide an aka for the C++ operator name macro diagnostic 2014-05-21 21:23:39 +00:00
Profile InstrProf: Set profile data to visibility hidden 2014-05-16 01:24:00 +00:00
Rewriter Don't suppress warning about dllimport on typedefs etc. in MicrosoftExt mode 2014-05-23 20:16:41 +00:00
Sema Sema: Add more tests for dll attributes on inline functions 2014-05-23 19:07:49 +00:00
SemaCUDA Move all CUDA testing inputs to Inputs/ subdirectory inside the tests. 2014-04-28 22:21:28 +00:00
SemaCXX Sema: Add more tests for dll attributes on inline functions 2014-05-23 19:07:49 +00:00
SemaObjC Objective-C. Reduce false positive warnings with -Wselector by issuing warning 2014-05-09 19:51:39 +00:00
SemaObjCXX Objective-C ARC. Add support for toll-free bridge 2014-05-10 17:40:11 +00:00
SemaOpenCL [OpenCL] Reject reqd_work_group_size(X, Y, Z) where X, Y or Z == 0. 2014-05-19 14:41:38 +00:00
SemaTemplate Tweak diagnostic wording for init list narrowing 2014-05-17 01:13:18 +00:00
TableGen
Tooling PR19601: testcase improvement 2014-05-01 19:36:13 +00:00
Unit libclang: fix a bug in processing invalid arguments, introduced in r201249 2014-02-18 15:20:02 +00:00
VFS Stopgap fix for finding module for a file mapped in the VFS 2014-05-23 18:15:47 +00:00
.clang-format Add .clang-format without column limit to subdirectory tests/. 2013-11-08 06:45:35 +00:00
CMakeLists.txt Update lit.cfg to support the clang-interpreter test from r207950 2014-05-05 06:42:07 +00:00
Makefile Reverting because reverting r200145. 2014-01-27 22:57:33 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg Update lit.cfg to support the clang-interpreter test from r207950 2014-05-05 06:42:07 +00:00
lit.site.cfg.in test: Fix feature test for "native" in lit.cfg 2014-03-11 04:34:17 +00:00
make_test_dirs.pl