llvm-project/clang/test
Bruno Ricci ba7ffae0c5 [Sema][MSVC] Fix bogus microsoft-pure-definition warning on member function of class template
Clang emits a warning when using a pure specifier =0 in a function definition
at class scope (a MS-specific construct), when using -fms-extensions.
However, to detect this, it was using FD->isCanonicalDecl() on function
declaration, which was also detecting out-of-class definition of member
functions of class templates. Fix this by using !FD->isOutOfLine() instead.

Fixes PR21334.

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

Reviewed By: riccibruno

Reviewers: rnk, riccibruno

Patch By: Rudy Pons

llvm-svn: 358849
2019-04-21 13:12:10 +00:00
..
ARCMT
AST [Test] Remove obsolete test. 2019-04-16 16:44:45 +00:00
ASTMerge/choose-expr [ASTImporter] Add support for importing ChooseExpr AST nodes. 2019-02-26 19:26:41 +00:00
Analysis [analyzer] Move UninitializedObjectChecker out of alpha 2019-04-19 23:33:50 +00:00
CXX [c++2a] Add semantic support for private module fragments. 2019-04-18 21:12:54 +00:00
CodeCompletion Support framework import/include auto-completion 2019-02-27 17:40:33 +00:00
CodeGen [X86] Improve avx512-kconstraints-att_inline_asm.c to not be easily defeated by deadcode elimination. Improve CHECK lines to check IR types used. NFC 2019-04-15 18:39:36 +00:00
CodeGenCUDA [HIP-Clang] Fat binary should not be produced for non GPU code 2 2019-04-02 20:49:41 +00:00
CodeGenCXX Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259) 2019-04-16 12:13:25 +00:00
CodeGenCoroutines
CodeGenObjC Re-commit r357452: SimplifyCFG SinkCommonCodeFromPredecessors: Also sink function calls without used results (PR41259) 2019-04-16 12:13:25 +00:00
CodeGenObjCXX [CodeGen] Fix a regression by emitting lambda expressions in EmitLValue 2019-04-02 19:48:07 +00:00
CodeGenOpenCL [OpenCL] Re-fix invalid address space generation for clk_event_t arguments of enqueue_kernel builtin function 2019-04-11 06:18:17 +00:00
CodeGenOpenCLCXX [PR41157][OpenCL] Prevent implicit init of local addr space var in C++ mode. 2019-04-04 11:08:51 +00:00
Coverage
CoverageMapping Fix clang tests broken by r353547 that depend on InstrProf 2019-02-10 20:17:07 +00:00
Driver Enable frame pointer elimination for OpenBSD on powerpc. 2019-04-19 18:41:40 +00:00
FixIt Add support for attributes on @implementations in Objective-C 2019-04-11 17:55:30 +00:00
Format
Frontend [verify] Add support for location markers in directives. 2019-04-13 04:33:39 +00:00
Headers [OpenCL] Minor improvements in default header testing 2019-03-19 17:09:06 +00:00
Import [ASTImporter] Fix importing OperatorDelete from CXXConstructorDecl 2019-01-22 17:59:45 +00:00
Index [libclang] Expose ext_vector_type 2019-04-17 09:08:50 +00:00
Integration
Layout
Lexer Factor out repeated code parsing and concatenating header-names from 2019-03-19 01:51:19 +00:00
Misc Support objc_nonlazy_class attribute on Objective-C implementations 2019-04-11 17:55:34 +00:00
Modules Modules: Adopt template parameters for variable templates to set their decl context correctly 2019-04-19 23:04:05 +00:00
OpenMP [OPENMP][NVPTX] target [teams distribute] simd maybe run without 2019-04-19 16:48:38 +00:00
PCH Clean up ObjCPropertyDecl printing 2019-04-08 19:52:45 +00:00
Parser [Sema][MSVC] Fix bogus microsoft-pure-definition warning on member function of class template 2019-04-21 13:12:10 +00:00
Preprocessor Remove use of lookahead from _Pragma handling and from all other 2019-04-11 21:18:22 +00:00
Profile [InstrProf] Use separate comdat group for data and counters 2019-02-27 23:38:44 +00:00
Refactor
Rewriter
Sema Add support for attributes on @implementations in Objective-C 2019-04-11 17:55:30 +00:00
SemaCUDA Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +00:00
SemaCXX Revert "[clang] Aligned allocation is actually supported in macosx 10.13" 2019-04-15 19:08:52 +00:00
SemaObjC [Sema][ObjC] Don't warn about an implicitly retained self if the 2019-04-17 23:14:44 +00:00
SemaObjCXX [Sema][ObjC] Don't warn about an implicitly retained self if the 2019-04-17 23:14:44 +00:00
SemaOpenCL [AMDGPU] rename vi-insts into gfx8-insts 2019-04-05 18:25:00 +00:00
SemaOpenCLCXX [PR41247] Fixed parsing of private keyword in C++. 2019-03-28 11:47:14 +00:00
SemaTemplate Permit redeclarations of a builtin to specify calling convention. 2019-03-21 13:30:56 +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 Remove a bogus sed option in test. 2019-04-08 16:34:38 +00:00
Unit [lit] Set shlibpath_var on AIX 2019-03-29 23:33:04 +00:00
VFS [VFS] Implement `RedirectingFileSystem::getRealPath`. 2018-11-16 01:18:04 +00:00
clang-rename
.clang-format
CMakeLists.txt Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +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 Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
make_test_dirs.pl