本文整理汇总了C++中AST_Decl::is_local方法的典型用法代码示例。如果您正苦于以下问题:C++ AST_Decl::is_local方法的具体用法?C++ AST_Decl::is_local怎么用?C++ AST_Decl::is_local使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AST_Decl
的用法示例。
在下文中一共展示了AST_Decl::is_local方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ScopeAsDecl
be_argument::be_argument (AST_Argument::Direction d,
AST_Type *ft,
UTL_ScopedName *n)
: COMMON_Base (),
AST_Decl (AST_Decl::NT_argument,
n),
AST_Field (AST_Decl::NT_argument,
ft,
n),
AST_Argument (d,
ft,
n),
be_decl (AST_Decl::NT_argument,
n)
{
AST_Decl *dcl = ScopeAsDecl (this->defined_in ());
// If there have been previous errors, dcl may be 0,
// and we don't want to crash, so we check for non-zero.
// Also, we don't want to set the bit if the operation is
// declared in an included file UNLESS the enclosing
// interface is abstract, in which case we regenerate the
// operation.
if (dcl != 0
&& !dcl->is_local ()
&& (idl_global->in_main_file () || dcl->is_abstract ()))
{
be_type *bt = be_type::narrow_from_decl (ft);
bt->seen_in_operation (true);
be_util::set_arg_seen_bit (bt);
idl_global->need_skeleton_includes_ = true;
}
}