clang-tools 22.0.0git
clang::tidy::altera::KernelNameRestrictionCheck Class Reference

Finds kernel files and include directives whose filename is kernel.cl, Verilog.cl, or VHDL.cl. More...

#include <KernelNameRestrictionCheck.h>

Inheritance diagram for clang::tidy::altera::KernelNameRestrictionCheck:
[legend]

Public Member Functions

 KernelNameRestrictionCheck (StringRef Name, ClangTidyContext *Context)
void registerPPCallbacks (const SourceManager &SM, Preprocessor *PP, Preprocessor *) override

Detailed Description

Finds kernel files and include directives whose filename is kernel.cl, Verilog.cl, or VHDL.cl.

For the user-facing documentation see: https://clang.llvm.org/extra/clang-tidy/checks/altera/kernel-name-restriction.html

Definition at line 21 of file KernelNameRestrictionCheck.h.

Constructor & Destructor Documentation

◆ KernelNameRestrictionCheck()

clang::tidy::altera::KernelNameRestrictionCheck::KernelNameRestrictionCheck ( StringRef Name,
ClangTidyContext * Context )
inline

Definition at line 23 of file KernelNameRestrictionCheck.h.

Member Function Documentation

◆ registerPPCallbacks()

void clang::tidy::altera::KernelNameRestrictionCheck::registerPPCallbacks ( const SourceManager & SM,
Preprocessor * PP,
Preprocessor *  )
override

Definition at line 54 of file KernelNameRestrictionCheck.cpp.


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