llvm-project/clang/lib
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
..
ARCMigrate Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
AST Modules: Adopt template parameters for variable templates to set their decl context correctly 2019-04-19 23:04:05 +00:00
ASTMatchers [ASTMatchers][OpenMP] OpenMP Structured-block-related matchers 2019-03-21 15:33:35 +00:00
Analysis Thread Safety: also look at ObjC methods 2019-03-25 20:06:32 +00:00
Basic [FileSystemStatCache] Return std::error_code from stat cache methods 2019-04-16 17:34:26 +00:00
CodeGen [MS] Emit S_HEAPALLOCSITE debug info 2019-04-19 21:09:11 +00:00
CrossTU Changed every use of ASTImporter::Import to Import_New 2019-04-08 13:59:15 +00:00
Driver [MSVC] If unable to find link.exe from a MSVC installation, look for link.exe next to cl.exe 2019-04-19 19:04:22 +00:00
Edit Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Format [clang-format] Fix incorrect formatting of keyword macro definition 2019-04-18 20:17:08 +00:00
Frontend [analyzer][NFC] Reimplement checker options 2019-04-19 12:32:10 +00:00
FrontendTool [analyzer][NFC] Supply CheckerRegistry with AnalyzerOptions 2019-01-26 15:59:21 +00:00
Headers [CUDA][Windows] Restrict long double device functions declarations to Windows 2019-04-18 10:08:55 +00:00
Index Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
Lex [c++2a] Add semantic support for private module fragments. 2019-04-18 21:12:54 +00:00
Parse PR41192: fix cases where "missing ';' after class" error would 2019-04-16 00:47:45 +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 [Sema][MSVC] Fix bogus microsoft-pure-definition warning on member function of class template 2019-04-21 13:12:10 +00:00
Serialization [Serialization] Stable serialization order for OpenCLTypeExtMap and OpenCLDeclExtMap 2019-04-18 15:13:27 +00:00
StaticAnalyzer [analyzer] Move UninitializedObjectChecker out of alpha 2019-04-19 23:33:50 +00:00
Tooling [LibTooling] Fix build breakage from commit 7b7ce6683ee. 2019-04-18 19:19:01 +00:00
CMakeLists.txt Add Cross Translation Unit support library 2017-09-22 11:11:01 +00:00