llvm-project/clang/lib
Erich Keane 8a8f5f0f00 Correct class-template deprecation behavior
Based on the comment in the test, and my reading of the standard, a deprecated warning should be issued in the following case:
template<typename T> [[deprecated]] class Foo{}; Foo<int> f;

This was not the case, because the ClassTemplateSpecializationDecl creation did not also copy the deprecated attribute.

Note: I did NOT audit the complete set of attributes to see WHICH ones should be copied, so instead I simply copy ONLY the deprecated attribute.

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

llvm-svn: 298410
2017-03-21 17:49:17 +00:00
..
ARCMigrate Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
AST [index/AST] Determine if a typedef shares a name and spelling location with its underlying tag type 2017-03-21 16:56:02 +00:00
ASTMatchers Add AST matchers for ObjCProtocolDecl, ObjCCategoryDecl, ObjCMethodDecl, ObjCIvarDecl, and ObjCPropertyDecl. 2017-03-15 20:14:25 +00:00
Analysis [analyzer] Fix crash when building CFG with variable of incomplete type 2017-03-07 08:42:37 +00:00
Basic Turn on HTM on power8 and later (including powerpc64le) since it's 2017-03-20 21:12:53 +00:00
CodeGen Update Clang for LLVM rename AttributeSet -> AttributeList 2017-03-21 16:57:30 +00:00
Driver [clang-cl] Fix cross-compilation with MSVC 2017. 2017-03-17 16:24:34 +00:00
Edit Fix problems in "[OpenCL] Enabling the usage of CLK_NULL_QUEUE as compare operand." 2016-12-23 14:55:49 +00:00
Format [clang-format] disable adding extra space after MSVC '__super' keyword 2017-03-16 10:21:35 +00:00
Frontend Add a function to MD5 a file's contents. 2017-03-20 23:33:18 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [DOXYGEN] Improvements to smmintrin.h and emmintrin.h intrinsics. 2017-03-21 13:34:06 +00:00
Index [index/AST] Determine if a typedef shares a name and spelling location with its underlying tag type 2017-03-21 16:56:02 +00:00
Lex [Modules] Find PrivateHeaders when looking into subframeworks 2017-03-21 16:43:51 +00:00
Parse Implement DR 373 "Lookup on namespace qualified name in using-directive" 2017-03-17 21:41:20 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Correct class-template deprecation behavior 2017-03-21 17:49:17 +00:00
Serialization Reapply "Modules: Cache PCMs in memory and avoid a use-after-free" 2017-03-20 17:58:26 +00:00
StaticAnalyzer Remove repeated code (PR32250). NFCI. 2017-03-15 22:43:36 +00:00
Tooling Add missing implementation for AtomicChange::replace(...) 2017-03-08 15:53:10 +00:00
CMakeLists.txt