Home
last modified time | relevance | path

Searched refs:DeclName (Results 1 – 20 of 20) sorted by relevance

/llvm-project-15.0.7/clang/include/clang/Tooling/Refactoring/Extract/
H A DExtract.h29 Optional<std::string> DeclName);
34 ExtractFunction(CodeRangeASTSelection Code, Optional<std::string> DeclName) in ExtractFunction() argument
36 DeclName(DeclName ? std::move(*DeclName) : "extracted") {} in ExtractFunction()
46 std::string DeclName; variable
/llvm-project-15.0.7/clang/unittests/AST/
H A DNamedDeclPrinterTest.cpp93 PrintedNamedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedNamedDeclCXX98Matches() argument
98 namedDecl(hasName(DeclName)).bind("id"), in PrintedNamedDeclCXX98Matches()
103 PrintedWrittenNamedDeclCXX11Matches(StringRef Code, StringRef DeclName, in PrintedWrittenNamedDeclCXX11Matches() argument
108 namedDecl(hasName(DeclName)).bind("id"), in PrintedWrittenNamedDeclCXX11Matches()
113 PrintedWrittenPropertyDeclObjCMatches(StringRef Code, StringRef DeclName, in PrintedWrittenPropertyDeclObjCMatches() argument
118 objcPropertyDecl(hasName(DeclName)).bind("id"), in PrintedWrittenPropertyDeclObjCMatches()
123 PrintedNestedNameSpecifierMatches(StringRef Code, StringRef DeclName, in PrintedNestedNameSpecifierMatches() argument
126 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedNestedNameSpecifierMatches()
H A DDeclPrinterTest.cpp60 PrintedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedDeclCXX98Matches() argument
64 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX98Matches()
82 StringRef DeclName, in PrintedDeclCXX11Matches() argument
85 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX11Matches()
H A DASTImporterFixtures.h334 const std::string &DeclName) in ImportAction()
336 ImportPredicate(namedDecl(hasName(DeclName))) {} in ImportAction()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DForwardDeclarationNamespaceCheck.cpp52 StringRef DeclName = RecordDecl->getName(); in check() local
54 DeclNameToDefinitions[DeclName].push_back(RecordDecl); in check()
60 DeclNameToDeclarations[DeclName].push_back(RecordDecl); in check()
151 const auto DeclName = CurDecl->getName(); in onEndOfTranslationUnit() local
152 if (DeclNameToDefinitions.find(DeclName) == DeclNameToDefinitions.end()) { in onEndOfTranslationUnit()
157 const auto &Definitions = DeclNameToDefinitions[DeclName]; in onEndOfTranslationUnit()
H A DSuspiciousEnumUsageCheck.cpp120 const auto EnumExpr = [](StringRef RefName, StringRef DeclName) { in registerMatchers() argument
121 return expr(hasType(enumDecl().bind(DeclName))).bind(RefName); in registerMatchers()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGCDAntipatternChecker.cpp59 decltype(auto) equalsBoundArgDecl(int ArgIdx, const char *DeclName) { in equalsBoundArgDecl() argument
61 to(varDecl(equalsBoundNode(DeclName)))))); in equalsBoundArgDecl()
64 decltype(auto) bindAssignmentToDecl(const char *DeclName) { in bindAssignmentToDecl() argument
66 declRefExpr(to(varDecl().bind(DeclName))))); in bindAssignmentToDecl()
75 std::string DeclName = ND->getNameAsString(); in isTest() local
76 if (StringRef(DeclName).startswith("test")) in isTest()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DIssueHash.cpp93 std::string DeclName; in GetEnclosingDeclContextSignature() local
100 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
107 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
112 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
118 return DeclName; in GetEnclosingDeclContextSignature()
H A DBodyFarm.cpp244 DeclarationName DeclName = C.DeclarationNames.getIdentifier(&II); in findMemberField() local
246 DeclContextLookupResult Decls = RD->lookup(DeclName); in findMemberField()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Extract/
H A DExtract.cpp71 Optional<std::string> DeclName) { in initiate() argument
93 return ExtractFunction(std::move(Code), DeclName); in initiate()
157 ReturnType.print(OS, PP, DeclName); in createSourceReplacements()
180 OS << DeclName << '('; in createSourceReplacements()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/utils/
H A DRenamerClangTidyCheck.cpp201 const NamedDecl *findDecl(const RecordDecl &RecDecl, StringRef DeclName) { in findDecl() argument
204 if (ND->getDeclName().isIdentifier() && ND->getName().equals(DeclName)) in findDecl()
236 NameLookup findDeclInBases(const CXXRecordDecl &Parent, StringRef DeclName, in findDeclInBases() argument
240 if (const NamedDecl *InClassRef = findDecl(Parent, DeclName)) in findDeclInBases()
257 findDeclInBases(*Record, DeclName, AggressiveTemplateLookup)) { in findDeclInBases()
383 DeclarationName DeclName = DepMemberRef->getMemberNameInfo().getName(); in check() local
384 if (!DeclName.isIdentifier()) in check()
386 StringRef DependentName = DeclName.getAsIdentifierInfo()->getName(); in check()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.cpp205 std::string getShortestQualifiedNameInNamespace(llvm::StringRef DeclName, in getShortestQualifiedNameInNamespace() argument
207 DeclName = DeclName.ltrim(':'); in getShortestQualifiedNameInNamespace()
209 if (DeclName.find(':') == llvm::StringRef::npos) in getShortestQualifiedNameInNamespace()
210 return std::string(DeclName); in getShortestQualifiedNameInNamespace()
213 auto DeclNsSplitted = splitSymbolName(DeclName); in getShortestQualifiedNameInNamespace()
221 return std::string(DeclName); in getShortestQualifiedNameInNamespace()
229 return ("::" + DeclName).str(); in getShortestQualifiedNameInNamespace()
230 return std::string(DeclName); in getShortestQualifiedNameInNamespace()
/llvm-project-15.0.7/llvm/lib/TableGen/
H A DTGParser.cpp2754 Init *DeclName = StringInit::get(Records, Str); in ParseDeclaration() local
2765 DeclName = QualifyName(*CurRec, CurMultiClass, DeclName, ":"); in ParseDeclaration()
2771 DeclName = QualifyName(CurMultiClass->Rec, CurMultiClass, DeclName, "::"); in ParseDeclaration()
2783 SetValue(CurRec, ValLoc, DeclName, None, Val)) in ParseDeclaration()
2787 return DeclName; in ParseDeclaration()
2790 return DeclName; in ParseDeclaration()
2871 return VarInit::get(DeclName, IterType); in ParseForeachDeclaration()
3119 if (Records.getGlobal(DeclName->getValue())) in ParseDefset()
3140 Records.addExtraGlobal(DeclName->getValue(), in ParseDefset()
3160 if (Records.getGlobal(DeclName->getValue())) in ParseDefvar()
[all …]
/llvm-project-15.0.7/clang/unittests/Interpreter/
H A DInterpreterTest.cpp248 DeclarationName DeclName = &C.Idents.get(Name); local
249 LookupResult R(SemaRef, DeclName, SourceLocation(), Sema::LookupOrdinaryName);
/llvm-project-15.0.7/clang/lib/Index/
H A DIndexSymbol.cpp498 DeclarationName DeclName = ND->getDeclName(); in printSymbolName() local
499 if (DeclName.isEmpty()) in printSymbolName()
501 DeclName.print(OS, Policy); in printSymbolName()
H A DCommentToXML.cpp910 if (DeclarationName DeclName = ND->getDeclName()) { in visitFullComment() local
912 std::string Name = DeclName.getAsString(); in visitFullComment()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp142 auto ConstructShadowDeclCompletionResult = [&](const std::string DeclName) { in TEST() argument
147 Using->getQualifiedNameAsString() == DeclName) in TEST()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclPrinter.cpp120 void printDeclType(QualType T, StringRef DeclName, bool Pack = false);
278 void DeclPrinter::printDeclType(QualType T, StringRef DeclName, bool Pack) { in printDeclType() argument
286 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation); in printDeclType()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.cpp5274 StringRef DeclName, LinkageName; in EmitGlobalVariable() local
5277 collectVarDeclProps(D, Unit, LineNo, T, DeclName, LinkageName, in EmitGlobalVariable()
5287 if (T->isUnionType() && DeclName.empty()) { in EmitGlobalVariable()
5310 DContext, DeclName, LinkageName, Unit, LineNo, getOrCreateType(T, Unit), in EmitGlobalVariable()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp14525 DeclarationName DeclName = UnresExpr->getMemberName(); in BuildCallToMemberFunction() local
14556 << DeclName << MemExprE->getSourceRange()), in BuildCallToMemberFunction()
14563 << DeclName << MemExprE->getSourceRange()), in BuildCallToMemberFunction()
14570 << DeclName << MemExprE->getSourceRange()), in BuildCallToMemberFunction()