Home
last modified time | relevance | path

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

12

/external/llvm-project/clang/include/clang/Tooling/Refactoring/Extract/
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
/external/llvm-project/clang/unittests/AST/
DNamedDeclPrinterTest.cpp112 PrintedNamedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedNamedDeclCXX98Matches() argument
117 namedDecl(hasName(DeclName)).bind("id"), in PrintedNamedDeclCXX98Matches()
122 PrintedWrittenNamedDeclCXX11Matches(StringRef Code, StringRef DeclName, in PrintedWrittenNamedDeclCXX11Matches() argument
127 namedDecl(hasName(DeclName)).bind("id"), in PrintedWrittenNamedDeclCXX11Matches()
132 PrintedWrittenPropertyDeclObjCMatches(StringRef Code, StringRef DeclName, in PrintedWrittenPropertyDeclObjCMatches() argument
137 objcPropertyDecl(hasName(DeclName)).bind("id"), in PrintedWrittenPropertyDeclObjCMatches()
142 PrintedNestedNameSpecifierMatches(StringRef Code, StringRef DeclName, in PrintedNestedNameSpecifierMatches() argument
145 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedNestedNameSpecifierMatches()
DDeclPrinterTest.cpp111 PrintedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedDeclCXX98Matches() argument
115 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX98Matches()
133 StringRef DeclName, in PrintedDeclCXX11Matches() argument
136 return PrintedDeclMatches(Code, Args, namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX11Matches()
DASTImporterFixtures.h333 const std::string &DeclName) in ImportAction()
335 ImportPredicate(namedDecl(hasName(DeclName))) {} in ImportAction()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
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()
DSuspiciousEnumUsageCheck.cpp120 const auto enumExpr = [](StringRef RefName, StringRef DeclName) { in registerMatchers() argument
122 ignoringImpCasts(hasType(enumDecl().bind(DeclName)))); in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/
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()
/external/clang/unittests/AST/
DNamedDeclPrinterTest.cpp96 PrintedNamedDeclCXX98Matches(StringRef Code, StringRef DeclName, in PrintedNamedDeclCXX98Matches() argument
102 namedDecl(hasName(DeclName)).bind("id"), in PrintedNamedDeclCXX98Matches()
108 PrintedWrittenNamedDeclCXX11Matches(StringRef Code, StringRef DeclName, in PrintedWrittenNamedDeclCXX11Matches() argument
114 namedDecl(hasName(DeclName)).bind("id"), in PrintedWrittenNamedDeclCXX11Matches()
DDeclPrinterTest.cpp102 StringRef DeclName, in PrintedDeclCXX98Matches() argument
107 namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX98Matches()
125 StringRef DeclName, in PrintedDeclCXX11Matches() argument
130 namedDecl(hasName(DeclName)).bind("id"), in PrintedDeclCXX11Matches()
/external/llvm-project/clang/lib/Analysis/
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()
DBodyFarm.cpp229 DeclarationName DeclName = C.DeclarationNames.getIdentifier(&II); in findMemberField() local
231 DeclContextLookupResult Decls = RD->lookup(DeclName); in findMemberField()
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp87 std::string DeclName; in GetEnclosingDeclContextSignature() local
94 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
101 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
106 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
112 return DeclName; in GetEnclosingDeclContextSignature()
DExprEngineCallAndReturn.cpp676 DeclarationName DeclName = Ctx.DeclarationNames.getIdentifier(&II); in hasMember() local
677 if (!RD->lookup(DeclName).empty()) in hasMember()
682 [DeclName](const CXXBaseSpecifier *Specifier, CXXBasePath &Path) { in hasMember()
683 return CXXRecordDecl::FindOrdinaryMember(Specifier, Path, DeclName); in hasMember()
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
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()
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
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()
/external/llvm-project/clang-tools-extra/clang-change-namespace/
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()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TableGen/
DTGParser.cpp2441 Init *DeclName = StringInit::get(Str); in ParseDeclaration() local
2446 DeclName = QualifyName(*CurRec, CurMultiClass, DeclName, ":"); in ParseDeclaration()
2450 DeclName = QualifyName(CurMultiClass->Rec, CurMultiClass, DeclName, in ParseDeclaration()
2455 if (AddValue(CurRec, IdLoc, RecordVal(DeclName, Type, HasField))) in ParseDeclaration()
2464 SetValue(CurRec, ValLoc, DeclName, None, Val)) in ParseDeclaration()
2468 return DeclName; in ParseDeclaration()
2471 return DeclName; in ParseDeclaration()
2488 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration() local
2557 return VarInit::get(DeclName, IterType); in ParseForeachDeclaration()
2792 StringInit *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDefset() local
[all …]
/external/llvm-project/llvm/lib/TableGen/
DTGParser.cpp2515 Init *DeclName = StringInit::get(Str); in ParseDeclaration() local
2520 DeclName = QualifyName(*CurRec, CurMultiClass, DeclName, ":"); in ParseDeclaration()
2524 DeclName = QualifyName(CurMultiClass->Rec, CurMultiClass, DeclName, in ParseDeclaration()
2529 if (AddValue(CurRec, IdLoc, RecordVal(DeclName, IdLoc, Type, HasField))) in ParseDeclaration()
2537 SetValue(CurRec, ValLoc, DeclName, None, Val)) in ParseDeclaration()
2541 return DeclName; in ParseDeclaration()
2544 return DeclName; in ParseDeclaration()
2561 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration() local
2628 return VarInit::get(DeclName, IterType); in ParseForeachDeclaration()
2857 StringInit *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDefset() local
[all …]
/external/clang/lib/Index/
DIndexSymbol.cpp303 DeclarationName DeclName = ND->getDeclName(); in printSymbolName() local
304 if (DeclName.isEmpty()) in printSymbolName()
306 DeclName.print(OS, Policy); in printSymbolName()
DCommentToXML.cpp913 if (DeclarationName DeclName = ND->getDeclName()) { in visitFullComment() local
915 std::string Name = DeclName.getAsString(); in visitFullComment()
/external/llvm/lib/TableGen/
DTGParser.cpp1703 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseDeclaration() local
1708 DeclName = QualifyName(*CurRec, CurMultiClass, DeclName, ":"); in ParseDeclaration()
1712 DeclName = QualifyName(CurMultiClass->Rec, CurMultiClass, DeclName, in ParseDeclaration()
1717 if (AddValue(CurRec, IdLoc, RecordVal(DeclName, Type, HasField))) in ParseDeclaration()
1726 SetValue(CurRec, ValLoc, DeclName, None, Val)) in ParseDeclaration()
1730 return DeclName; in ParseDeclaration()
1733 return DeclName; in ParseDeclaration()
1750 Init *DeclName = StringInit::get(Lex.getCurStrVal()); in ParseForeachDeclaration() local
1812 return VarInit::get(DeclName, IterType); in ParseForeachDeclaration()
/external/llvm-project/clang/lib/Index/
DIndexSymbol.cpp490 DeclarationName DeclName = ND->getDeclName(); in printSymbolName() local
491 if (DeclName.isEmpty()) in printSymbolName()
493 DeclName.print(OS, Policy); in printSymbolName()
DCommentToXML.cpp910 if (DeclarationName DeclName = ND->getDeclName()) { in visitFullComment() local
912 std::string Name = DeclName.getAsString(); in visitFullComment()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DQualityTests.cpp139 auto constructShadowDeclCompletionResult = [&](const std::string DeclName) { in TEST() argument
144 Using->getQualifiedNameAsString() == DeclName) in TEST()
/external/clang/lib/AST/
DDeclPrinter.cpp102 void printDeclType(QualType T, StringRef DeclName, bool Pack = false);
241 void DeclPrinter::printDeclType(QualType T, StringRef DeclName, bool Pack) { in printDeclType() argument
249 T.print(Out, Policy, (Pack ? "..." : "") + DeclName, Indentation); in printDeclType()

12