clang-tools 22.0.0git
clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck Class Reference

Find suspicious string literals with embedded NUL characters. More...

#include <StringLiteralWithEmbeddedNulCheck.h>

Inheritance diagram for clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck:
[legend]

Public Member Functions

 StringLiteralWithEmbeddedNulCheck (StringRef Name, ClangTidyContext *Context)
void registerMatchers (ast_matchers::MatchFinder *Finder) override
void check (const ast_matchers::MatchFinder::MatchResult &Result) override

Detailed Description

Find suspicious string literals with embedded NUL characters.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/bugprone/string-literal-with-embedded-nul.html

Definition at line 20 of file StringLiteralWithEmbeddedNulCheck.h.

Constructor & Destructor Documentation

◆ StringLiteralWithEmbeddedNulCheck()

clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck::StringLiteralWithEmbeddedNulCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 22 of file StringLiteralWithEmbeddedNulCheck.h.

Member Function Documentation

◆ check()

void clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck::check ( const ast_matchers::MatchFinder::MatchResult & Result)
override

Definition at line 59 of file StringLiteralWithEmbeddedNulCheck.cpp.

◆ registerMatchers()

void clang::tidy::bugprone::StringLiteralWithEmbeddedNulCheck::registerMatchers ( ast_matchers::MatchFinder * Finder)
override

Definition at line 26 of file StringLiteralWithEmbeddedNulCheck.cpp.


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