clang-tools 22.0.0git
IncludeSorter.h File Reference
#include "../ClangTidyCheck.h"
#include <optional>
#include <string>

Go to the source code of this file.

Classes

struct  OptionEnumMapping< utils::IncludeSorter::IncludeStyle >

Namespaces

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

Functions

 clang::tidy::utils::IncludeSorter (const SourceManager *SourceMgr, const FileID FileID, StringRef FileName, IncludeStyle Style)
 Class used by IncludeInserterCallback to record the names of the / inclusions in a given source file being processed and generate the necessary / commands to sort the inclusions according to the precedence encoded in / IncludeKinds.
std::optional< FixItHint > clang::tidy::utils::createIncludeInsertion (StringRef FileName, bool IsAngled)
 Creates a quoted inclusion directive in the right sort order.