clang 20.0.0git
Namespaces | Macros | Functions
ContinuationIndenter.cpp File Reference

This file implements the continuation indenter. More...

#include "ContinuationIndenter.h"
#include "BreakableToken.h"
#include "FormatInternal.h"
#include "FormatToken.h"
#include "WhitespaceManager.h"
#include "clang/Basic/OperatorPrecedence.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TokenKinds.h"
#include "clang/Format/Format.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Debug.h"
#include <optional>

Go to the source code of this file.

Namespaces

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

Macros

#define DEBUG_TYPE   "format-indenter"
 

Functions

static bool clang::format::shouldIndentWrappedSelectorName (const FormatStyle &Style, LineType LineType)
 
static bool clang::format::shouldUnindentNextOperator (const FormatToken &Tok)
 
static unsigned clang::format::getLengthToMatchingParen (const FormatToken &Tok, ArrayRef< ParenState > Stack)
 
static unsigned clang::format::getLengthToNextOperator (const FormatToken &Tok)
 
static bool clang::format::startsSegmentOfBuilderTypeCall (const FormatToken &Tok)
 
static bool clang::format::startsNextParameter (const FormatToken &Current, const FormatStyle &Style)
 
static bool clang::format::isAlignableBinaryOperator (const FormatToken &Token)
 
static bool clang::format::startsNextOperand (const FormatToken &Current)
 
static bool clang::format::mustBreakBinaryOperation (const FormatToken &Current, const FormatStyle &Style)
 
static bool clang::format::opensProtoMessageField (const FormatToken &LessTok, const FormatStyle &Style)
 
static std::optional< StringRef > clang::format::getRawStringDelimiter (StringRef TokenText)
 
static StringRef clang::format::getCanonicalRawStringDelimiter (const FormatStyle &Style, FormatStyle::LanguageKind Language)
 
static bool clang::format::hasNestedBlockInlined (const FormatToken *Previous, const FormatToken &Current, const FormatStyle &Style)
 
static unsigned clang::format::getLastLineEndColumn (StringRef Text, unsigned StartColumn, unsigned TabWidth, encoding::Encoding Encoding)
 
static StringRef clang::format::getEnclosingFunctionName (const FormatToken &Current)
 

Detailed Description

This file implements the continuation indenter.

Definition in file ContinuationIndenter.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "format-indenter"

Definition at line 27 of file ContinuationIndenter.cpp.