]> granicus.if.org Git - clang/commit
Warn on unused auto variables.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Jan 2013 04:29:20 +0000 (04:29 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Jan 2013 04:29:20 +0000 (04:29 +0000)
commit6769ccb6853871c085c8366ab5e993841ad56d00
tree145e2dea940867ad682d6553e517726852aa0f41
parentda844b3483669c64d02082ff2a9e68d46bd00c1f
Warn on unused auto variables.

To do so we have to wait until we know that the type of a variable has been
deduced. Sema::FinalizeDeclaration is the first callback that is used for
decl with or without initializers.

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