#include "KernelNameRestrictionCheck.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include <string>
#include <vector>
usingnamespaceclang::ast_matchers;
namespace clang::tidy::altera {
namespace {
class KernelNameRestrictionPPCallbacks : public PPCallbacks { … };
}
void KernelNameRestrictionCheck::registerPPCallbacks(const SourceManager &SM,
Preprocessor *PP,
Preprocessor *) { … }
void KernelNameRestrictionPPCallbacks::InclusionDirective(
SourceLocation HashLoc, const Token &, StringRef FileName, bool,
CharSourceRange, OptionalFileEntryRef, StringRef, StringRef, const Module *,
bool, SrcMgr::CharacteristicKind) { … }
bool KernelNameRestrictionPPCallbacks::fileNameIsRestricted(
StringRef FileName) { … }
void KernelNameRestrictionPPCallbacks::EndOfMainFile() { … }
}