Home
last modified time | relevance | path

Searched refs:getFunctionNode (Results 1 – 2 of 2) sorted by relevance

/llvm-project-15.0.7/clang/unittests/AST/
H A DASTTraverserTest.cpp132 const FunctionDecl *getFunctionNode(clang::ASTUnit *AST, in getFunctionNode() function
188 const FunctionDecl *Func = getFunctionNode(AST.get(), "func"); in TEST()
217 const FunctionDecl *CTorFunc = getFunctionNode(AST.get(), "A"); in TEST()
269 Func = getFunctionNode(AST.get(), "parmvardecl_attr"); in TEST()
789 auto getFunctionNode = [&AST](const std::string &name) { in TEST() local
797 auto FN = getFunctionNode("func1"); in TEST()
829 dumpASTString(TK_IgnoreUnlessSpelledInSource, getFunctionNode("func2")), in TEST()
840 dumpASTString(TK_IgnoreUnlessSpelledInSource, getFunctionNode("func3")), in TEST()
850 dumpASTString(TK_IgnoreUnlessSpelledInSource, getFunctionNode("func4")), in TEST()
860 dumpASTString(TK_IgnoreUnlessSpelledInSource, getFunctionNode("func5")), in TEST()
[all …]
H A DAttrTest.cpp41 const FunctionDecl *getFunctionNode(ASTUnit *AST, const std::string &Name) { in getFunctionNode() function
92 const FunctionDecl *Func = getFunctionNode(AST.get(), "f"); in TEST()