aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/clang_tidy/arcadia_checks/usage_restriction_checks.h
blob: d63d3658e9b4be5a4ec5ca7947ff60386abc9af4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <contrib/libs/clang16/tools/extra/clang-tidy/ClangTidyCheck.h>

namespace clang::tidy::arcadia {
    /// Finds usage of `typeid(smth).name`
    /// For more info see https://st.yandex-team.ru/IGNIETFERRO-1522
    class TypeidNameRestrictionCheck: public ClangTidyCheck {
    public:
        TypeidNameRestrictionCheck(StringRef Name, ClangTidyContext* Context)
            : ClangTidyCheck(Name, Context)
        {
        }
        void registerMatchers(ast_matchers::MatchFinder* Finder) override;
        void check(const ast_matchers::MatchFinder::MatchResult& Result) override;
    };

}