Lines Matching full:used
59 auto DeclMatcher = hasDeclaration(namedDecl().bind("used"));
62 refsToTemplatedDecl(namedDecl().bind("used")))),
64 Finder->addMatcher(callExpr(callee(unresolvedLookupExpr().bind("used"))),
68 forEachTemplateArgument(templateArgument().bind("used"))))),
71 templateArgument().bind("used")))),
73 Finder->addMatcher(userDefinedLiteral().bind("used"), this);
77 type(asTagDecl(tagDecl().bind("used")))))),
124 // Mark a corresponding using declaration as used.
125 auto RemoveNamedDecl = [&](const NamedDecl *Used) {
126 removeFromFoundDecls(Used);
127 // Also remove variants of Used.
128 if (const auto *FD = dyn_cast<FunctionDecl>(Used)) {
133 dyn_cast<ClassTemplateSpecializationDecl>(Used)) {
137 if (const auto *ECD = dyn_cast<EnumConstantDecl>(Used)) {
144 if (const auto *Used = Result.Nodes.getNodeAs<NamedDecl>("used")) {
145 RemoveNamedDecl(Used);
155 if (const auto *Used = Result.Nodes.getNodeAs<TemplateArgument>("used")) {
156 if (Used->getKind() == TemplateArgument::Template) {
157 if (const auto *TD = Used->getAsTemplate().getAsTemplateDecl())
162 if (Used->getKind() == TemplateArgument::Type) {
163 if (auto *RD = Used->getAsType()->getAsCXXRecordDecl())
168 if (Used->getKind() == TemplateArgument::Declaration) {
169 RemoveNamedDecl(Used->getAsDecl());
174 if (const auto *DRE = Result.Nodes.getNodeAs<DeclRefExpr>("used")) {
179 if (const auto *ULE = Result.Nodes.getNodeAs<UnresolvedLookupExpr>("used")) {
187 if (const auto *UDL = Result.Nodes.getNodeAs<UserDefinedLiteral>("used"))
197 // FIXME: Currently, we don't handle the using-decls being used in different
199 // giving an incorrect message, we mark all of them as used.