clang 20.0.0git
Classes | Namespaces | Macros | Functions
UnwrappedLineParser.cpp File Reference

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

#include "UnwrappedLineParser.h"
#include "FormatToken.h"
#include "FormatTokenLexer.h"
#include "FormatTokenSource.h"
#include "Macros.h"
#include "TokenAnnotator.h"
#include "clang/Basic/TokenKinds.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_os_ostream.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <utility>

Go to the source code of this file.

Classes

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

Namespaces

namespace  clang
 The JSON file list parser is used to communicate input to InstallAPI.
 
namespace  clang::format
 

Macros

#define DEBUG_TYPE   "format-parser"
 

Functions

std::ostream & clang::format::operator<< (std::ostream &Stream, const UnwrappedLine &Line)
 
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 FormatToken * clang::format::getLastNonComment (const UnwrappedLine &Line)
 
static void clang::format::markOptionalBraces (FormatToken *LeftBrace)
 
static bool clang::format::isCOperatorFollowingVar (tok::TokenKind Kind)
 
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

◆ DEBUG_TYPE

#define DEBUG_TYPE   "format-parser"

Definition at line 31 of file UnwrappedLineParser.cpp.