llvm-project/clang/lib
Daniel Jasper 9c81a727eb Look through CXXBindTemporaryExprs when checking CXXFunctionCastExprs
for unused values.

This fixes a regression caused by r298676, where constructor calls to
classes with non-trivial dtor were marked as unused if the first
argument is an initializer list. This is inconsistent (as the test
shows) and also warns on a reasonbly common code pattern where people
just call constructors to create and immediately destroy an object.

llvm-svn: 298853
2017-03-27 16:29:41 +00:00
..
ARCMigrate Reapply "IntrusiveRefCntPtr -> std::shared_ptr for CompilerInvocationBase and CodeCompleteConsumer" 2017-01-06 19:49:01 +00:00
AST Revert r298742 "[ODRHash] Add error messages for mismatched parameters in methods." 2017-03-26 21:39:16 +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 _CALL_LINUX is only defined on 64-bit ppc linux platforms, not 32-bit. 2017-03-25 19:26:04 +00:00
CodeGen [coroutines] Add codegen for await and yield expressions 2017-03-26 02:18:05 +00:00
Driver [ARM] Add a driver option for +no-neg-immediates 2017-03-27 15:34:52 +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 Fix issues in clang-format's AlignConsecutive modes. 2017-03-23 02:51:25 +00:00
Frontend [OpenCL] Extended mapping of parcing CodeGen arguments 2017-03-27 10:38:01 +00:00
FrontendTool unique_ptrify createDriverOptTable 2017-01-13 17:34:15 +00:00
Headers [X86] Implement __readgsqword (and the rest) as builtins (PR32373) 2017-03-22 19:13:13 +00:00
Index Fix MSVC 'not all control paths return a value' warning. 2017-03-24 16:59:14 +00:00
Lex [Modules] Find PrivateHeaders when looking into subframeworks 2017-03-21 16:43:51 +00:00
Parse Publish one more parser RAII for external use. 2017-03-27 13:11:32 +00:00
Rewrite [analyzer] Re-apply r283092, attempt no.4, chunk no.4 (last) 2016-10-07 19:25:10 +00:00
Sema Look through CXXBindTemporaryExprs when checking CXXFunctionCastExprs 2017-03-27 16:29:41 +00:00
Serialization Revert r298742 "[ODRHash] Add error messages for mismatched parameters in methods." 2017-03-26 21:39:16 +00:00
StaticAnalyzer [analyzer] MisusedMovedObject: Remove deprecated callback. NFC 2017-03-24 10:16:08 +00:00
Tooling Apply clang-tidy's performance-unnecessary-value-param to parts of clang. 2017-03-21 21:35:04 +00:00
CMakeLists.txt