const NamedDecl &findUnqualifiedDecl(ParsedAST &AST, llvm::StringRef Name) { return findDecl(AST, [Name](const NamedDecl &ND) { if (auto *ID = ND.getIdentifier()) if (ID->getName() == Name) return true; return false; }); }
Decl *DeclSeq::insertDecl( const string &s,Type *t,int kind,ConstType *d ){ if( findDecl( s ) ) return 0; decls.push_back( d_new Decl( s,t,kind,d ) ); return decls.back(); }