clang-tools 22.0.0git
clang::tidy::objc::AssertEqualsCheck Class Referencefinal

Warns if XCTAssertEqual() or XCTAssertNotEqual() is used with at least one operands of type NSString*. More...

#include <AssertEqualsCheck.h>

Inheritance diagram for clang::tidy::objc::AssertEqualsCheck:
[legend]

Public Member Functions

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

Detailed Description

Warns if XCTAssertEqual() or XCTAssertNotEqual() is used with at least one operands of type NSString*.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/objc/assert-equals.html

Definition at line 22 of file AssertEqualsCheck.h.

Constructor & Destructor Documentation

◆ AssertEqualsCheck()

clang::tidy::objc::AssertEqualsCheck::AssertEqualsCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 24 of file AssertEqualsCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::objc::AssertEqualsCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 38 of file AssertEqualsCheck.cpp.

References clang::tidy::objc::NameMap.

◆ isLanguageVersionSupported()

bool clang::tidy::objc::AssertEqualsCheck::isLanguageVersionSupported ( const LangOptions & LangOpts) const
inlineoverride

Definition at line 26 of file AssertEqualsCheck.h.

◆ registerMatchers()

void clang::tidy::objc::AssertEqualsCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 24 of file AssertEqualsCheck.cpp.

References clang::tidy::objc::NameMap.


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