}
}
-DeclContext::lookup_result getConstructors(ASTContext &Context,
- const CXXRecordDecl *Record) {
+static DeclContext::lookup_result getConstructors(ASTContext &Context,
+ const CXXRecordDecl *Record) {
QualType RecordTy = Context.getTypeDeclType(Record);
DeclarationName ConstructorName =
Context.DeclarationNames.getCXXConstructorName(
return None;
}
-Optional<std::string> findMetaClassAlloc(const Expr *Callee) {
+static Optional<std::string> findMetaClassAlloc(const Expr *Callee) {
if (const auto *ME = dyn_cast<MemberExpr>(Callee)) {
if (ME->getMemberDecl()->getNameAsString() != "alloc")
return None;
return None;
}
-std::string findAllocatedObjectName(const Stmt *S,
- QualType QT) {
+static std::string findAllocatedObjectName(const Stmt *S, QualType QT) {
if (const auto *CE = dyn_cast<CallExpr>(S))
if (auto Out = findMetaClassAlloc(CE->getCallee()))
return *Out;