Fix PR8841 by checking for both semantic and lecical dependent
commit7406c7961859fe5d4b7b147a226ce28e769b467b
authorChandler Carruth <chandlerc@gmail.com>
Mon, 3 Jan 2011 19:27:19 +0000 (3 19:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 3 Jan 2011 19:27:19 +0000 (3 19:27 +0000)
treefde31652f8f2000b67810a0b7fdbafacf222cea4
parentaf589ae1e0e71f56ebaaee476c3321ccb7884726
Fix PR8841 by checking for  both semantic and lecical dependent
contexts. This prevents -Wunused-function from firing on friend function
definitions inside of class templates for example.

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