Keep track of when declarations are "used" according to C and
C++. This logic is required to trigger implicit instantiation of
function templates and member functions of class templates, which will
be implemented separately.

This commit includes support for -Wunused-parameter, printing warnings
for named parameters that are not used within a function/Objective-C
method/block. Fixes <rdar://problem/6505209>.

llvm-svn: 73797
20 files changed
tree: 003b2f568adda31fe1d7fe677e48f2ed126f4dc5
  1. clang/
  2. compiler-rt/
  3. llvm/