//===--- FormatTokenLexer.h - Format C++ code ----------------*- C++ ----*-===// // // 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 // //===----------------------------------------------------------------------===// /// /// \file /// This file contains FormatTokenLexer, which tokenizes a source file /// into a token stream suitable for ClangFormat. /// //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_LIB_FORMAT_FORMATTOKENLEXER_H #define LLVM_CLANG_LIB_FORMAT_FORMATTOKENLEXER_H #include "Encoding.h" #include "FormatToken.h" #include "llvm/ADT/MapVector.h" #include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/StringSet.h" #include <stack> namespace clang { namespace format { enum LexerState { … }; class FormatTokenLexer { … }; } // namespace format } // namespace clang #endif