change getCurFunctionDecl to skip through Block contexts to find
the containing block.  Introduce a new getCurFunctionOrMethodDecl
method to check to see if we're in a function or objc method.
Minor cleanups to other related places.  This fixes rdar://6405429.

llvm-svn: 60564
7 files changed
tree: 7d322436f511e0aaa753f424d90ab0d609ce2aee
  1. clang/
  2. llvm/