]> granicus.if.org Git - clang/commit
change getCurFunctionDecl to skip through Block contexts to find
authorChris Lattner <sabre@nondot.org>
Thu, 4 Dec 2008 23:50:19 +0000 (23:50 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 4 Dec 2008 23:50:19 +0000 (23:50 +0000)
commit371f258e61e1365b951b17931a3c5ac1530fd1a0
tree41095e9a128c4e4f966f33753e4317749853ef74
parentae0ee03fd9d36446ee70e502fdaf5ed5acec269f
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@60564 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
lib/Sema/Sema.cpp
lib/Sema/Sema.h
lib/Sema/SemaChecking.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/Sema/block-misc.c