//===------------ IncludeSorter.h - clang-tidy ----------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_INCLUDESORTER_H #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_INCLUDESORTER_H #include "../ClangTidyCheck.h" #include <optional> #include <string> namespace clang::tidy { namespace utils { /// 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``. class IncludeSorter { … }; } // namespace utils template <> struct OptionEnumMapping<utils::IncludeSorter::IncludeStyle> { … }; } // namespace clang::tidy #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_INCLUDESORTER_H