clang-tools 20.0.0git
|
#include "KernelNameRestrictionCheck.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | clang |
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===// | |
namespace | clang::tidy |
namespace | clang::tidy::altera |
StringRef FileName |
Definition at line 45 of file KernelNameRestrictionCheck.cpp.
Referenced by clang::tidy::utils::IncludeSorter::addInclude(), clang::move::ClangMoveTool::addIncludes(), clang::clangd::TweakTest::apply(), clang::clangd::TweakTest::build(), clang::clangd::buildPreamble(), clang::clangd::codeComplete(), clang::clangd::codeCompleteComment(), clang::tidy::portability::RestrictSystemIncludesCheck::contains(), clang::clangd::PreamblePatch::createFullPatch(), clang::tidy::utils::IncludeSorter::createIncludeInsertion(), clang::clangd::PreamblePatch::createMacroPatch(), clang::clangd::MockCompilationDatabase::getCompileCommand(), clang::tidy::utils::getFileExtension(), clang::tidy::ClangTidyOptionsProvider::getOptions(), clang::clangd::getPatchName(), clang::tidy::ConfigOptionsProvider::getRawOptions(), clang::tidy::FileOptionsProvider::getRawOptions(), clang::clangd::IncludeInserter::IncludeInserter(), clang::pp_trace::PPCallbacksTracker::InclusionDirective(), clang::clangd::IncludeStructure::RecordHeaders::InclusionDirective(), clang::tidy::portability::RestrictedIncludesPPCallbacks::InclusionDirective(), clang::tidy::utils::isFileExtension(), Modularize::ModularizeUtilities::isHeader(), clang::clangd::isHeaderFile(), clang::clangd::isPreambleCompatible(), clang::clangd::isProtoFile(), main(), clang::clangd::MATCHER_P2(), clang::clangd::preferredIncludeDirective(), clang::include_fixer::rank(), clang::find_all_symbols::YamlReporter::reportSymbols(), runCommandsInFile(), clang::include_fixer::SymbolIndexManager::search(), clang::tidy::utils::HeaderGuardCheck::shouldSuggestEndifComment(), clang::tidy::utils::HeaderGuardCheck::shouldSuggestToAddHeaderGuard(), clang::include_fixer::similarityScore(), and clang::clangd::DirectoryBasedGlobalCompilationDatabase::~DirectoryBasedGlobalCompilationDatabase().
SourceLocation Loc |
Definition at line 44 of file KernelNameRestrictionCheck.cpp.
Referenced by EntityMap::add(), clang::move::ClangMoveTool::addRemovedDecl(), clang::ast_matchers::AST_POLYMORPHIC_MATCHER(), clang::tidy::abseil::UpgradeDurationConversionsCheck::check(), clang::tidy::boost::UseToStringCheck::check(), clang::tidy::bugprone::AssertSideEffectCheck::check(), clang::tidy::bugprone::ComparePointerToMemberVirtualFunctionCheck::check(), clang::tidy::bugprone::DynamicStaticInitializersCheck::check(), clang::tidy::bugprone::InaccurateEraseCheck::check(), clang::tidy::bugprone::StringConstructorCheck::check(), clang::tidy::bugprone::StringIntegerAssignmentCheck::check(), clang::tidy::bugprone::UncheckedOptionalAccessCheck::check(), clang::tidy::cppcoreguidelines::ProTypeUnionAccessCheck::check(), clang::tidy::fuchsia::OverloadedOperatorCheck::check(), clang::tidy::google::ExplicitConstructorCheck::check(), clang::tidy::google::runtime::IntegerTypesCheck::check(), clang::tidy::google::build::UnnamedNamespaceInHeaderCheck::check(), clang::tidy::google::build::UsingNamespaceDirectiveCheck::check(), clang::tidy::llvm_libc::InlineFunctionDeclCheck::check(), clang::tidy::modernize::ReplaceAutoPtrCheck::check(), clang::tidy::modernize::ReturnBracedInitListCheck::check(), clang::tidy::modernize::UnaryStaticAssertCheck::check(), clang::tidy::modernize::UseNodiscardCheck::check(), clang::tidy::modernize::UseOverrideCheck::check(), clang::tidy::readability::ConstReturnTypeCheck::check(), clang::tidy::readability::EnumInitialValueCheck::check(), clang::tidy::readability::FunctionCognitiveComplexityCheck::check(), clang::tidy::readability::NamespaceCommentCheck::check(), clang::tidy::readability::OperatorsRepresentationCheck::check(), clang::tidy::readability::StaticDefinitionInAnonymousNamespaceCheck::check(), clang::clangd::collectMacroReferences(), Modularize::ModularizeUtilities::collectModuleHeaders(), clang::clangd::computeIncludeCleanerFindings(), clang::tidy::utils::NamespaceAliaser::createAlias(), clang::tidy::ClangTidyCheck::diag(), clang::tidy::ClangTidyContext::diag(), clang::pp_trace::PPCallbacksTracker::Elif(), clang::tidy::modernize::MacroToEnumCallbacks::Elifdef(), clang::tidy::modernize::MacroToEnumCallbacks::Elifndef(), clang::pp_trace::PPCallbacksTracker::Else(), clang::pp_trace::PPCallbacksTracker::Endif(), clang::tidy::modernize::expandIfMacroId(), clang::tidy::modernize::MacroToEnumCallbacks::FileChanged(), clang::clangd::IncludeStructure::RecordHeaders::FileChanged(), clang::clangd::CollectMainFileMacros::FileChanged(), clang::pp_trace::PPCallbacksTracker::FileChanged(), clang::clangd::findDocumentHighlights(), clang::tidy::utils::findEndLocation(), clang::clangd::findNearbyIdentifier(), clang::tidy::utils::fixit::fixIfNotDangerous(), clang::tidy::readability::forwardSkipWhitespaceAndComments(), clang::tidy::cppcoreguidelines::generateUserDeclaredDestructor(), clang::tidy::bugprone::getCommentsBeforeLoc(), clang::clangd::getDeducedType(), clang::tidy::ClangTidyContext::getDiagLevelAndFormatString(), clang::clangd::getExpansionTokenRangeInSameFile(), clang::find_all_symbols::getIncludePath(), clang::tidy::readability::getInlineTokenLocation(), clang::tidy::modernize::getInnerTypeLocAs(), clang::tidy::modernize::NS::getNamespaceBackRange(), clang::tidy::readability::getNamespaceNameAsWritten(), clang::tidy::readability::getOperatorSpelling(), Modularize::getSourceLine(), Modularize::getSourceLocationFile(), Modularize::getSourceLocationLineAndColumn(), Modularize::getSourceLocationString(), clang::pp_trace::getSourceLocationString(), clang::getTokenAtLoc(), clang::clangd::getTokenFileRange(), clang::tidy::readability::getTokenKind(), clang::tidy::utils::getTokenKind(), clang::clangd::getTokenLengthAtLoc(), clang::clangd::getWorkspaceSymbols(), clang::clangd::SymbolCollector::handleDeclOccurrence(), clang::tidy::ClangTidyDiagnosticConsumer::HandleDiagnostic(), clang::clangd::SymbolCollector::handleMacroOccurrence(), clang::tidy::readability::RedundantInlineSpecifierCheck::handleMatchedDecl(), CollectEntitiesConsumer::HandleTranslationUnit(), clang::tidy::modernize::hasOnlyComments(), clang::pp_trace::PPCallbacksTracker::Ident(), clang::tidy::modernize::MacroToEnumCallbacks::If(), clang::pp_trace::PPCallbacksTracker::If(), clang::tidy::modernize::MacroToEnumCallbacks::Ifdef(), clang::pp_trace::PPCallbacksTracker::Ifdef(), clang::tidy::modernize::MacroToEnumCallbacks::Ifndef(), clang::pp_trace::PPCallbacksTracker::Ifndef(), clang::tidy::modernize::ignoreTypeLocClasses(), clang::clangd::incomingCalls(), clang::clangd::indexStandardLibrary(), clang::clangd::indexToLSPLocation(), clang::clangd::insertDecl(), clang::tidy::utils::isExpansionLocInHeaderFile(), clang::tidy::abseil::isInMacro(), clang::clangd::isInsideMainFile(), clang::tidy::modernize::isMutliLevelPointerToTypeLocClasses(), clang::tidy::utils::isPresumedLocInHeaderFile(), clang::clangd::isProtoFile(), clang::clangd::isSpelledInSource(), clang::tidy::utils::isSpellingLocInHeaderFile(), clang::clangd::locateMacroAt(), Location::Location(), clang::clangd::IgnoreDiagnostics::log(), clang::tidy::makeNoLintError(), llvm::yaml::MappingTraits< Location >::mapping(), clang::include_fixer::IncludeFixerSemaSource::MaybeDiagnoseMissingCompleteType(), clang::tidy::RenamerClangTidyCheck::onEndOfTranslationUnit(), clang::clangd::outgoingCalls(), clang::clangd::pointBounds(), clang::pp_trace::PPCallbacksTracker::PragmaComment(), clang::pp_trace::PPCallbacksTracker::PragmaDebug(), clang::pp_trace::PPCallbacksTracker::PragmaDetectMismatch(), clang::pp_trace::PPCallbacksTracker::PragmaDiagnostic(), clang::pp_trace::PPCallbacksTracker::PragmaDiagnosticPop(), clang::pp_trace::PPCallbacksTracker::PragmaDiagnosticPush(), clang::tidy::modernize::MacroToEnumCallbacks::PragmaDirective(), clang::pp_trace::PPCallbacksTracker::PragmaDirective(), clang::pp_trace::PPCallbacksTracker::PragmaExecCharsetPop(), clang::pp_trace::PPCallbacksTracker::PragmaExecCharsetPush(), clang::clangd::CollectPragmaMarks::PragmaMark(), clang::pp_trace::PPCallbacksTracker::PragmaMessage(), clang::pp_trace::PPCallbacksTracker::PragmaWarning(), clang::pp_trace::PPCallbacksTracker::PragmaWarningPop(), clang::pp_trace::PPCallbacksTracker::PragmaWarningPush(), clang::clangd::prefer(), clang::clangd::prepareCallHierarchy(), clang::clangd::qualifiedByUnresolved(), clang::tidy::utils::lexer::rangeContainsExpansionsOrDirectives(), clang::tidy::readability::removeElseAndBrackets(), clang::clangd::rename(), clang::clangd::sourceLocToPosition(), clang::clangd::symbolToHierarchyItem(), clang::clangd::translatePreamblePatchLocation(), clang::tidy::readability::SimplifyBooleanExprCheck::Visitor::VisitIfStmt(), and CollectEntitiesVisitor::VisitNamedDecl().