llvm-project/clang/lib/Sema
Reid Kleckner b6a8152b8b [MS] Warn when shadowing template parameters under -fms-compatibility
Summary:
C++ does not allow shadowing template parameters, but previously we
allowed it under -fms-extensions. Now this behavior is controlled by
-fms-compatibility, and we emit a -Wmicrosoft-template warning when it
happens.

Fixes PR43265

Reviewers: thakis, hans

Subscribers: amccarth, rsmith, STL_MSFT, cfe-commits

Tags: #clang

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

llvm-svn: 371753
2019-09-12 18:26:34 +00:00
..
AnalysisBasedWarnings.cpp [Attr] Support _attribute__ ((fallthrough)) 2019-08-20 17:16:49 +00:00
CMakeLists.txt Recommit [OpenCL] Move OpenCLBuiltins.td and remove unused include 2019-06-17 10:06:34 +00:00
CodeCompleteConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CoroutineStmtBuilder.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DeclSpec.cpp [c++20] P1143R2: Add support for the C++20 'constinit' keyword. 2019-09-04 20:30:37 +00:00
DelayedDiagnostic.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
IdentifierResolver.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JumpDiagnostics.cpp Re-check in clang support gun asm goto after fixing tests. 2019-06-03 15:57:25 +00:00
MultiplexExternalSemaSource.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OpenCLBuiltins.td [OpenCL] Add image type handling for builtins 2019-09-05 10:01:24 +00:00
ParsedAttr.cpp Allow standards-based attributes to have leading and trailing underscores. 2019-08-15 18:35:44 +00:00
Scope.cpp Un-revert "[coroutines][PR40978] Emit error for co_yield within catch block" 2019-03-25 00:53:10 +00:00
ScopeInfo.cpp PR42104: Support instantiations of lambdas that implicitly capture 2019-06-04 17:17:20 +00:00
Sema.cpp Removed some questionable default arguments from setters 2019-09-12 12:16:43 +00:00
SemaAccess.cpp Range-style std::find{,_if} -> llvm::find{,_if}. NFC 2019-03-31 08:48:19 +00:00
SemaAttr.cpp Reland [LifetimeAnalysis] Support more STL idioms (template forward declaration and DependentNameType) 2019-09-06 08:56:30 +00:00
SemaCUDA.cpp Split ActOnCallExpr into an ActOnCallExpr to be called by the parser, 2019-05-08 01:36:36 +00:00
SemaCXXScopeSpec.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaCast.cpp [Sema] Check __builtin_bit_cast operand for completeness before materializing it. 2019-08-12 19:29:43 +00:00
SemaChecking.cpp [X86] Allow _MM_FROUND_CUR_DIRECTION and _MM_FROUND_NO_EXC to be used together on instructions that only support SAE and not embedded rounding. 2019-09-09 17:48:05 +00:00
SemaCodeComplete.cpp [CodeComplete] Fix ASTUnit cached completion of macros from preamble, broken in r342528 2019-07-18 07:17:49 +00:00
SemaConsumer.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaCoroutine.cpp Allow copy/move assignment operator to be coroutine as per N4775 2019-06-19 14:12:19 +00:00
SemaDecl.cpp Don't warn about selectany on implicitly inline variables 2019-09-12 17:55:48 +00:00
SemaDeclAttr.cpp Reland [LifetimeAnalysis] Support more STL idioms (template forward declaration and DependentNameType) 2019-09-06 08:56:30 +00:00
SemaDeclCXX.cpp Fixit for -Wfinal-dtor-non-final-class 2019-09-03 10:54:25 +00:00
SemaDeclObjC.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaExceptionSpec.cpp Move EH spec mismatches under -fms-compatibility 2019-08-27 17:52:03 +00:00
SemaExpr.cpp [Diagnostics] Add -Wsizeof-array-div 2019-09-11 10:59:47 +00:00
SemaExprCXX.cpp [Sema][Typo] Fix assertion failure for expressions with multiple typos 2019-08-20 19:03:15 +00:00
SemaExprMember.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaExprObjC.cpp [Clang] Migrate llvm::make_unique to std::make_unique 2019-08-14 23:04:18 +00:00
SemaFixItUtils.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SemaInit.cpp Reland [LifetimeAnalysis] Support more STL idioms (template forward declaration and DependentNameType) 2019-09-06 08:56:30 +00:00
SemaLambda.cpp [c++20] Fix some ambiguities in our mangling of lambdas with explicit 2019-09-05 01:23:47 +00:00
SemaLookup.cpp [Sema] Refactor LookupVisibleDecls. NFC 2019-09-05 08:59:06 +00:00
SemaModule.cpp Fix parameter name comments using clang-tidy. NFC. 2019-07-16 04:46:31 +00:00
SemaObjCProperty.cpp clang: Fix typo in comment 2019-08-21 15:52:44 +00:00
SemaOpenMP.cpp [OPENMP] Update the diagnosis message for canonical loop form, by Chi 2019-09-11 15:44:06 +00:00
SemaOverload.cpp Merge note_ovl_builtin_candidate diagnostics; NFC 2019-09-09 14:39:20 +00:00
SemaPseudoObject.cpp Split ActOnCallExpr into an ActOnCallExpr to be called by the parser, 2019-05-08 01:36:36 +00:00
SemaStmt.cpp [OpenMP] Permit map with DSA on combined directive 2019-08-22 03:34:30 +00:00
SemaStmtAsm.cpp Delay diagnosing asm constraints that require immediates until after inlining 2019-08-06 22:41:22 +00:00
SemaStmtAttr.cpp [Clang] New loop pragma vectorize_predicate 2019-07-25 07:33:13 +00:00
SemaTemplate.cpp [MS] Warn when shadowing template parameters under -fms-compatibility 2019-09-12 18:26:34 +00:00
SemaTemplateDeduction.cpp [c++20] Disallow template argument deduction from a braced-init-list 2019-08-31 00:05:50 +00:00
SemaTemplateInstantiate.cpp Improve behavior in the case of stack exhaustion. 2019-08-26 18:18:07 +00:00
SemaTemplateInstantiateDecl.cpp Reland [LifetimeAnalysis] Support more STL idioms (template forward declaration and DependentNameType) 2019-09-06 08:56:30 +00:00
SemaTemplateVariadic.cpp PR42587: diagnose unexpanded uses of a pack parameter of a generic 2019-08-26 22:51:28 +00:00
SemaType.cpp [Sema][ObjC] Mark C union fields that have non-trivial ObjC ownership 2019-09-07 00:34:47 +00:00
TreeTransform.h [c++20] Implement semantic restrictions for C++20 designated 2019-08-30 22:52:55 +00:00
TypeLocBuilder.cpp [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00
TypeLocBuilder.h [NFC] avoid AlignedCharArray in clang 2019-07-29 23:12:48 +00:00