clang-tools 22.0.0git
clang::tidy::google::runtime::RuntimeFloatCheck Class Reference

Finds usages of long double and suggests against their use due to lack of portability. More...

#include <FloatTypesCheck.h>

Inheritance diagram for clang::tidy::google::runtime::RuntimeFloatCheck:
[legend]

Public Member Functions

 RuntimeFloatCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override
bool isLanguageVersionSupported (const LangOptions &LangOpts) const override

Detailed Description

Finds usages of long double and suggests against their use due to lack of portability.

For the user-facing documentation see: http://clang.llvm.org/extra/clang-tidy/checks/google/runtime-float.html

Definition at line 21 of file FloatTypesCheck.h.

Constructor & Destructor Documentation

◆ RuntimeFloatCheck()

clang::tidy::google::runtime::RuntimeFloatCheck::RuntimeFloatCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file FloatTypesCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::google::runtime::RuntimeFloatCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 61 of file FloatTypesCheck.cpp.

◆ isLanguageVersionSupported()

bool clang::tidy::google::runtime::RuntimeFloatCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 27 of file FloatTypesCheck.h.

◆ registerMatchers()

void clang::tidy::google::runtime::RuntimeFloatCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 51 of file FloatTypesCheck.cpp.


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