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

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

#include <AssertEquals.h>

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

Public Member Functions

 AssertEquals (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

Warn 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 AssertEquals.h.

Constructor & Destructor Documentation

◆ AssertEquals()

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

Definition at line 24 of file AssertEquals.h.

Member Function Documentation

◆ check()

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

Definition at line 44 of file AssertEquals.cpp.

References clang::tidy::objc::nameMap().

◆ isLanguageVersionSupported()

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

Definition at line 26 of file AssertEquals.h.

◆ registerMatchers()

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

Definition at line 28 of file AssertEquals.cpp.

References clang::tidy::objc::nameMap().


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