clang-tools 17.0.0git
Namespaces | Functions | Variables
IncludeCleaner.cpp File Reference
#include "IncludeCleaner.h"
#include "Config.h"
#include "Diagnostics.h"
#include "Headers.h"
#include "ParsedAST.h"
#include "Protocol.h"
#include "SourceCode.h"
#include "URI.h"
#include "clang-include-cleaner/Analysis.h"
#include "clang-include-cleaner/Record.h"
#include "clang-include-cleaner/Types.h"
#include "support/Logger.h"
#include "support/Path.h"
#include "support/Trace.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/DeclCXX.h"
#include "clang/AST/Expr.h"
#include "clang/AST/ExprCXX.h"
#include "clang/AST/TemplateName.h"
#include "clang/AST/Type.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/LLVM.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Format/Format.h"
#include "clang/Lex/HeaderSearch.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/Core/Replacement.h"
#include "clang/Tooling/Inclusions/HeaderIncludes.h"
#include "clang/Tooling/Inclusions/StandardLibrary.h"
#include "clang/Tooling/Syntax/Tokens.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/STLFunctionalExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/FormatVariadic.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/Regex.h"
#include <iterator>
#include <optional>
#include <string>
#include <vector>
Include dependency graph for IncludeCleaner.cpp:

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::clangd
 

Functions

void clang::clangd::setIncludeCleanerAnalyzesStdlib (bool B)
 Affects whether standard library includes should be considered for removal.
 
include_cleaner::Includes clang::clangd::convertIncludes (const SourceManager &SM, const llvm::ArrayRef< Inclusion > Includes)
 Converts the clangd include representation to include-cleaner include representation.
 
std::string clang::clangd::spellHeader (ParsedAST &AST, const FileEntry *MainFile, include_cleaner::Header Provider)
 Determines the header spelling of an include-cleaner header representation.
 
std::vector< const Inclusion * > clang::clangd::getUnused (ParsedAST &AST, const llvm::DenseSet< IncludeStructure::HeaderID > &ReferencedFiles, const llvm::StringSet<> &ReferencedPublicHeaders)
 Retrieves headers that are referenced from the main file but not used.
 
IncludeCleanerFindings clang::clangd::computeIncludeCleanerFindings (ParsedAST &AST)
 
std::vector< Diag > clang::clangd::issueIncludeCleanerDiagnostics (ParsedAST &AST, llvm::StringRef Code)
 

Variables

static bool clang::clangd::AnalyzeStdlib = false