hanchenye-llvm-project/clang/lib
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
..
ARCMigrate Fix file headers. NFC 2019-03-01 06:49:51 +00:00
AST [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
ASTMatchers [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis [analyzer] handle modification of vars inside an expr with comma operator 2019-03-07 15:50:52 +00:00
Basic Rollback of rL355585. 2019-03-07 18:13:39 +00:00
CodeGen [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
CrossTU [CTU] Do not allow different CPP dialects in CTU 2019-02-28 15:24:59 +00:00
Driver [HIP] Do not unbundle object files for -fno-gpu-rdc 2019-03-05 16:07:56 +00:00
Edit [Fixed Point Arithmetic] Fixed Point and Integer Conversions 2019-03-06 00:28:43 +00:00
Format [clang-format] broken after lambda with return type template with boolean literal 2019-03-05 22:20:25 +00:00
Frontend [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
FrontendTool [analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions 2019-01-26 15:59:21 +00:00
Headers [build] Rename clang-headers to clang-resource-headers 2019-03-04 21:19:53 +00:00
Index [clang][index-while-building][NFC] Comment about implementation detail in FileIndexRecord 2019-02-28 01:12:27 +00:00
Lex Fix file headers. NFC 2019-03-01 06:49:51 +00:00
Parse [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema Recommit "Support attribute used in member funcs of class templates" 2019-03-07 19:14:30 +00:00
Serialization [OPENMP 5.0]Add initial support for 'allocate' directive. 2019-03-07 17:54:44 +00:00
StaticAnalyzer [analyzer] Handle comparison between non-default AS symbol and constant 2019-03-07 13:01:17 +00:00
Tooling Switch to cantFail(), since it does the same assertion. 2019-02-06 17:59:39 +00:00
CMakeLists.txt