clang-tools 22.0.0git
clang::tidy::concurrency::MtUnsafeCheck Class Reference

Checks that non-thread-safe functions are not used. More...

#include <MtUnsafeCheck.h>

Inheritance diagram for clang::tidy::concurrency::MtUnsafeCheck:
[legend]

Public Types

enum class  FunctionSet { Posix , Glibc , Any }

Public Member Functions

 MtUnsafeCheck (StringRef Name, ClangTidyContext *Context)
void storeOptions (ClangTidyOptions::OptionMap &Opts) override
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Checks that non-thread-safe functions are not used.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/concurrency/mt-unsafe.html

Definition at line 20 of file MtUnsafeCheck.h.

Member Enumeration Documentation

◆ FunctionSet

Enumerator
Posix 
Glibc 
Any 

Definition at line 27 of file MtUnsafeCheck.h.

Constructor & Destructor Documentation

◆ MtUnsafeCheck()

clang::tidy::concurrency::MtUnsafeCheck::MtUnsafeCheck ( StringRef Name,
ClangTidyContext * Context )

Definition at line 289 of file MtUnsafeCheck.cpp.

References Any, and MtUnsafeCheck().

Referenced by MtUnsafeCheck().

Member Function Documentation

◆ check()

void clang::tidy::concurrency::MtUnsafeCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 304 of file MtUnsafeCheck.cpp.

◆ registerMatchers()

void clang::tidy::concurrency::MtUnsafeCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

◆ storeOptions()

void clang::tidy::concurrency::MtUnsafeCheck::storeOptions ( ClangTidyOptions::OptionMap & Opts)
override

Definition at line 293 of file MtUnsafeCheck.cpp.


The documentation for this class was generated from the following files: