]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/clang.git/commit
PR33839: Fix -Wunused handling for structured binding declarations.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 2 Oct 2017 22:43:36 +0000 (22:43 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 2 Oct 2017 22:43:36 +0000 (22:43 +0000)
commit7fc0a33d4466cfbac4f1f3ebb7e9b7dd1dd02946
treefe8586030371cfbe8aa0aef65e5adaf667a22250
parent3c43204d0b2175212bb4cd9930094d40b69ecf72
PR33839: Fix -Wunused handling for structured binding declarations.

We warn about a structured binding declaration being unused only if none of its
bindings are used.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314733 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
test/SemaCXX/unused.cpp