MCPcopy Create free account
hub / github.com/KDE/kdevelop / setFeatures

Method setFeatures

kdevplatform/language/duchain/topducontext.cpp:607–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void TopDUContext::setFeatures(Features features)
608{
609 features &= ~Recursive; //Remove the "Recursive" flag since that's only for searching
610 features &= ~ForceUpdateRecursive; //Remove the update flags
611 features &= ~AST; //Remove the AST flag, it's only used while updating
612 d_func_dynamic()->m_features = features;
613
614 //Replicate features to ParsingEnvironmentFile
615 if (parsingEnvironmentFile())
616 parsingEnvironmentFile()->setFeatures(this->features());
617}
618
619void TopDUContext::setAst(const QExplicitlySharedDataPointer<IAstContainer>& ast)
620{

Callers 2

setAstMethod · 0.45

Calls 2

featuresMethod · 0.95
parsingEnvironmentFileFunction · 0.85

Tested by

no test coverage detected