本文整理汇总了C++中InputBuilder类的典型用法代码示例。如果您正苦于以下问题:C++ InputBuilder类的具体用法?C++ InputBuilder怎么用?C++ InputBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了InputBuilder类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: activate
bool NamespecAction::activate(InputBuilder& pBuilder) const
{
sys::fs::Path* path = NULL;
// find out the real path of the namespec.
if (pBuilder.getConstraint().isSharedSystem()) {
// In the system with shared object support, we can find both archive
// and shared object.
if (pBuilder.getAttributes().isStatic()) {
// with --static, we must search an archive.
path = m_SearchDirs.find(namespec(), Input::Archive);
}
else {
// otherwise, with --Bdynamic, we can find either an archive or a
// shared object.
path = m_SearchDirs.find(namespec(), Input::DynObj);
}
}
else {
// In the system without shared object support, we only look for an archive
path = m_SearchDirs.find(namespec(), Input::Archive);
}
if (NULL == path) {
fatal(diag::err_cannot_find_namespec) << namespec();
return false;
}
pBuilder.createNode<InputTree::Positional>(namespec(), *path);
return true;
}
开发者ID:IllusionRom-deprecated,项目名称:android_platform_frameworks_compile_mclinker,代码行数:31,代码来源:CommandAction.cpp
示例2: activate
bool StartGroupAction::activate(InputBuilder& pBuilder) const {
if (pBuilder.isInGroup()) {
fatal(diag::fatal_forbid_nest_group);
return false;
}
pBuilder.enterGroup();
return true;
}
示例3: activate
bool MemoryAreaAction::activate(InputBuilder& pBuilder) const
{
Input* input = *pBuilder.getCurrentNode();
if (input->hasMemArea())
return false;
// already got type - for example, bitcode
if (input->type() == Input::Script ||
input->type() == Input::Object ||
input->type() == Input::DynObj ||
input->type() == Input::Archive)
return false;
return pBuilder.setMemory(*input, m_Mode, m_Permission);
}