llvm-project/clang/test
Mark de Wever c03349e40f [Sema] Remove a -Wrange warning from -Wall
During the review of D73007 Aaron Puchert mentioned
`warn_for_range_variable_always_copy` shouldn't be part of -Wall since
some coding styles require `for(const auto &bar : bars)`. This warning
would cause false positives for these users. Based on Aaron's proposal
refactored the warnings:

* -Wrange-loop-construct warns about possibly unintended constructor
  calls. This is part of -Wall. It contains
  * warn_for_range_copy: loop variable A of type B creates a copy from
    type C
  * warn_for_range_const_reference_copy: loop variable A is initialized
    with a value of a different type resulting in a copy
* -Wrange-loop-bind-reference warns about misleading use of reference
  types. This is not part of -Wall. It contains
  * warn_for_range_variable_always_copy: loop variable A is always a copy
    because the range of type B does not return a reference

Differential Revision: https://reviews.llvm.org/D73434
2020-02-01 18:44:27 +01:00
..
ARCMT
AST
ASTMerge
Analysis
CXX PR44723: Trigger return type deduction for operator<=>s whose return 2020-01-31 13:06:48 -08:00
ClangScanDeps
CodeCompletion
CodeGen [Frontend] Delete a redundant check of -pg for setFramePointer() 2020-02-01 00:29:29 -08:00
CodeGenCUDA
CodeGenCXX Don't assume a reference refers to at least sizeof(T) bytes. 2020-01-31 19:08:17 -08:00
CodeGenCoroutines
CodeGenHIP
CodeGenObjC [objc_direct] fix codegen for mismatched Decl/Impl return types 2020-01-30 18:17:45 -08:00
CodeGenObjCXX
CodeGenOpenCL
CodeGenOpenCLCXX
Coverage
CoverageMapping
Driver Implement -fsemantic-interposition 2020-01-31 14:02:33 +01:00
FixIt Revert "[objc_direct] Small updates to help with adoption." 2020-01-30 18:21:25 -08:00
Format
Frontend
Headers
Import
Index
Integration
InterfaceStubs
Layout
Lexer
Misc [Sema] Remove a -Wrange warning from -Wall 2020-02-01 18:44:27 +01:00
Modules
OpenMP
PCH
Parser [Concepts] Fix isDeclarationSpecifier to detect type-constraints correctly 2020-01-31 20:08:13 +02:00
Preprocessor
Profile
Refactor
Rewriter
Sema
SemaCUDA
SemaCXX [Sema] Remove a -Wrange warning from -Wall 2020-02-01 18:44:27 +01:00
SemaObjC Revert "[objc_direct] Small updates to help with adoption." 2020-01-30 18:21:25 -08:00
SemaObjCXX
SemaOpenCL
SemaOpenCLCXX
SemaSYCL
SemaTemplate [Concepts] Correctly form initial parameter mapping for parameter packs, support substitution into SubstNonTypeTemplateParmExpr 2020-01-31 15:59:42 +02:00
TableGen
Templight
Tooling
Unit
VFS
clang-rename
.clang-format
CMakeLists.txt
TestRunner.sh
cxx-sections.data
lit.cfg.py
lit.site.cfg.py.in
make_test_dirs.pl