//===--- FunctionNamingCheck.cpp - clang-tidy -----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "FunctionNamingCheck.h" #include "clang/AST/ASTContext.h" #include "clang/ASTMatchers/ASTMatchFinder.h" #include "llvm/Support/Regex.h" usingnamespaceclang::ast_matchers; namespace clang::tidy::google::objc { namespace { std::string validFunctionNameRegex(bool RequirePrefix) { … } /// For now we will only fix functions of static storage class with names like /// 'functionName' or 'function_name' and convert them to 'FunctionName'. For /// other cases the user must determine an appropriate name on their own. FixItHint generateFixItHint(const FunctionDecl *Decl) { … } } // namespace void FunctionNamingCheck::registerMatchers(MatchFinder *Finder) { … } void FunctionNamingCheck::check(const MatchFinder::MatchResult &Result) { … } } // namespace clang::tidy::google::objc