hanchenye-llvm-project/clang/test
Rafael Auler 2ead8e8993 Recommit "Support attribute used in member funcs of class templates"
The patch originally broke code that was incompatible with GCC, but
we want to follow GCC behavior here according to the discussion in
https://reviews.llvm.org/D58216

Original commit message:
As PR17480 describes, clang does not support the used attribute
for member functions of class templates. This means that if the member
function is not used, its definition is never instantiated. This patch
changes clang to emit the definition if it has the used attribute.

Test Plan: Added a testcase

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D56928

llvm-svn: 355627
2019-03-07 19:14:30 +00:00
..
ARCMT
AST Look through typedefs in getFunctionTypeWithExceptionSpec 2019-02-13 09:39:17 +00:00
ASTMerge/choose-expr [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis [analyzer] Handle comparison between non-default AS symbol and constant 2019-03-07 13:01:17 +00:00
CXX Fix implementation of [temp.local]p4. 2019-02-15 21:53:07 +00:00
CodeCompletion Support framework import/include auto-completion 2019-02-27 17:40:33 +00:00
CodeGen Rollback of rL355585. 2019-03-07 18:13:39 +00:00
CodeGenCUDA [CUDA][HIP][DebugInfo] Skip reference device function 2019-03-06 21:16:27 +00:00
CodeGenCXX Recommit "Support attribute used in member funcs of class templates" 2019-03-07 19:14:30 +00:00
CodeGenCoroutines
CodeGenObjC Avoid needlessly copying a block to the heap when a block literal 2019-02-27 18:17:16 +00:00
CodeGenObjCXX Avoid needlessly copying a block to the heap when a block literal 2019-02-27 18:17:16 +00:00
CodeGenOpenCL AMDGPU: Fix the mapping of sub group sync scope 2019-03-06 20:54:48 +00:00
CodeGenOpenCLCXX [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
Coverage
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver clang-cl: Parse /Qspectre and a few other missing options (PR40964) 2019-03-06 09:38:04 +00:00
FixIt
Format
Frontend [Fixed Point Arithmetic] Fixed Point and Integer Conversions 2019-03-06 00:28:43 +00:00
Headers [clang] Only provide C11 features in <float.h> starting with C++17 2019-02-22 20:48:54 +00:00
Import [ASTImporter] Fix importing OperatorDelete from CXXConstructorDecl 2019-01-22 17:59:45 +00:00
Index [libclang] Fix CXTranslationUnit_KeepGoing 2019-03-07 10:13:50 +00:00
Integration
Layout
Lexer Enable coroutines under -std=c++2a. 2019-02-23 21:06:26 +00:00
Misc [DWARF] Make -g with empty assembler source work better. 2019-03-01 20:58:04 +00:00
Modules Fix slashes in path references in -Rmodule-import test from r355477 2019-03-06 05:42:56 +00:00
OpenMP [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
PCH [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
Parser Add two new pragmas for controlling software pipelining optimizations. 2019-01-04 17:20:00 +00:00
Preprocessor [WebAssembly] Temporarily disable bulk-memory with -pthread 2019-03-02 00:18:09 +00:00
Profile [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
Refactor
Rewriter
Sema Inline asm constraints: allow ICE-like pointers for the "n" constraint (PR40890) 2019-03-06 10:26:19 +00:00
SemaCUDA [CUDA][HIP][Sema] Fix template kernel with function as template parameter 2019-03-05 18:19:35 +00:00
SemaCXX [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
SemaObjC [Sema][ObjC] Allow silencing -Wobjc-designated-initializers warnings by 2019-03-01 06:43:20 +00:00
SemaObjCXX expected-no-diagnostics@ does not make sense, switching to a more idiomatic form; NFC. 2019-03-07 15:03:06 +00:00
SemaOpenCL [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
SemaOpenCLCXX [OpenCL][PR40707] Allow OpenCL C types in C++ mode. 2019-02-15 12:07:57 +00:00
SemaTemplate [MS] Fix for Bug 8446, template instantiation without a 'typename' keyword 2019-02-26 02:22:17 +00:00
TableGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Templight
Tooling [test] Pass -ccc-install-dir in mac compilation db test 2019-01-21 17:05:43 +00:00
Unit
VFS
clang-rename
.clang-format
CMakeLists.txt [build] Rename clang-headers to clang-resource-headers 2019-03-04 21:19:53 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [analyzer][CrossTU][NFC] Generalize to external definitions instead of external functions 2019-01-10 17:44:04 +00:00
lit.site.cfg.py.in This reverts commit 1440a848a635849b97f7a5cfa0ecc40d37451f5b. 2019-02-09 00:46:12 +00:00
make_test_dirs.pl