diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-17 07:29:51 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-17 07:29:51 +0000 |
commit | a00425414e8c209cabc25d1826b200aeb94259af (patch) | |
tree | 9f57b8d4eea42fdb6ddcfd0d9fa0f3e7d8538614 /include/clang | |
parent | 6fc45052986633e0ba0cc375c9a9eba909888412 (diff) |
Refactor code into a new CallExpr::getDirectCallee() method. Simplify some
code with the new method.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r-- | include/clang/AST/Expr.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 1fc35ba8d5..9d967dec03 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -964,7 +964,10 @@ public: const Expr *getCallee() const { return cast<Expr>(SubExprs[FN]); } Expr *getCallee() { return cast<Expr>(SubExprs[FN]); } void setCallee(Expr *F) { SubExprs[FN] = F; } - + + /// \brief If the callee is a FunctionDecl, return it. Otherwise return 0. + FunctionDecl *getDirectCallee(); + /// getNumArgs - Return the number of actual arguments to this call. /// unsigned getNumArgs() const { return NumArgs; } |