clang 24.0.0git
clang::format::FormatStyle::PackParametersStyle Struct Reference

Options related to packing parameters of function declarations and definitions. More...

#include "clang/Format/Format.h"

Public Member Functions

bool operator== (const PackParametersStyle &R) const
bool operator!= (const PackParametersStyle &R) const

Public Attributes

BinPackParametersStyle BinPack
 The bin pack parameters style to use.
unsigned BreakAfter
 A parameter list with more parameters than the specified number will be formatted with one parameter per line.

Detailed Description

Options related to packing parameters of function declarations and definitions.

Definition at line 4428 of file Format.h.

Member Function Documentation

◆ operator!=()

bool clang::format::FormatStyle::PackParametersStyle::operator!= ( const PackParametersStyle & R) const
inline

Definition at line 4457 of file Format.h.

References BinPack, and BreakAfter.

◆ operator==()

bool clang::format::FormatStyle::PackParametersStyle::operator== ( const PackParametersStyle & R) const
inline

Definition at line 4454 of file Format.h.

References BreakAfter.

Member Data Documentation

◆ BinPack

BinPackParametersStyle clang::format::FormatStyle::PackParametersStyle::BinPack

The bin pack parameters style to use.

Version
3.7

Definition at line 4432 of file Format.h.

Referenced by clang::format::getChromiumStyle(), clang::format::getMozillaStyle(), and operator!=().

◆ BreakAfter

unsigned clang::format::FormatStyle::PackParametersStyle::BreakAfter

A parameter list with more parameters than the specified number will be formatted with one parameter per line.

This option must be used with BinPack: UseBreakAfter.

BinPack: UseBreakAfter
void foo(int a);
void bar(int a, int b, int c);
void baz(int a,
int b,
int c,
int d);
BinPackParametersStyle BinPack
The bin pack parameters style to use.
Definition Format.h:4432
unsigned BreakAfter
A parameter list with more parameters than the specified number will be formatted with one parameter ...
Definition Format.h:4452
PackParametersStyle PackParameters
Options related to packing parameters of function declarations and definitions.
Definition Format.h:4465
Version
23

Definition at line 4452 of file Format.h.

Referenced by operator!=(), and operator==().


The documentation for this struct was generated from the following file: