File indexing completed on 2026-05-10 08:36:20
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVMLIBC_INLINEFUNCTIONDECLCHECK_H
0010 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVMLIBC_INLINEFUNCTIONDECLCHECK_H
0011
0012 #include "../ClangTidyCheck.h"
0013 #include "../FileExtensionsSet.h"
0014
0015 namespace clang::tidy::llvm_libc {
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025 class InlineFunctionDeclCheck : public ClangTidyCheck {
0026 public:
0027 InlineFunctionDeclCheck(StringRef Name, ClangTidyContext *Context);
0028
0029 bool isLanguageVersionSupported(const LangOptions &LangOpts) const override {
0030 return LangOpts.CPlusPlus;
0031 }
0032
0033 void registerMatchers(ast_matchers::MatchFinder *Finder) override;
0034 void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
0035
0036
0037 std::optional<TraversalKind> getCheckTraversalKind() const override {
0038 return TK_IgnoreUnlessSpelledInSource;
0039 }
0040
0041 private:
0042 FileExtensionsSet HeaderFileExtensions;
0043 };
0044
0045 }
0046
0047 #endif