clang  14.0.0git
Classes | Namespaces | Macros | Functions
UnwrappedLineParser.cpp File Reference
#include "UnwrappedLineParser.h"
#include "FormatToken.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
Include dependency graph for UnwrappedLineParser.cpp:

Go to the source code of this file.


class  clang::format::FormatTokenSource
class  clang::format::ScopedLineState
class  clang::format::CompoundStatementIndenter




#define DEBUG_TYPE   "format-parser"


template<class T >
static void clang::format::hash_combine (std::size_t &seed, const T &v)
static bool clang::format::isGoogScope (const UnwrappedLine &Line)
static bool clang::format::isIIFE (const UnwrappedLine &Line, const AdditionalKeywords &Keywords)
static bool clang::format::ShouldBreakBeforeBrace (const FormatStyle &Style, const FormatToken &InitialToken)
static bool clang::format::tokenCanStartNewLine (const FormatToken &Tok)
static bool clang::format::mustBeJSIdent (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
static bool clang::format::mustBeJSIdentOrValue (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
static bool clang::format::isJSDeclOrStmt (const AdditionalKeywords &Keywords, const FormatToken *FormatTok)
static bool clang::format::isC78Type (const FormatToken &Tok)
static bool clang::format::isC78ParameterDecl (const FormatToken *Tok, const FormatToken *Next, const FormatToken *FuncName)
static LLVM_ATTRIBUTE_UNUSED void clang::format::printDebugInfo (const UnwrappedLine &Line, StringRef Prefix="")
static bool clang::format::continuesLineCommentSection (const FormatToken &FormatTok, const UnwrappedLine &Line, const llvm::Regex &CommentPragmasRegex)

Detailed Description

This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.

Definition in file UnwrappedLineParser.cpp.

Macro Definition Documentation


#define DEBUG_TYPE   "format-parser"

Definition at line 23 of file UnwrappedLineParser.cpp.