clang 22.0.0git
FormattingAttemptStatus Struct Reference

Represents the status of a formatting attempt. More...

#include "clang/Format/Format.h"

Public Attributes

bool FormatComplete = true
 A value of false means that any of the affected ranges were not formatted due to a non-recoverable syntax error.
unsigned Line = 0
 If FormatComplete is false, Line records a one-based original line number at which a syntax error might have occurred. This is based on a best-effort analysis and could be imprecise.

Detailed Description

Represents the status of a formatting attempt.

Definition at line 5785 of file Format.h.

Member Data Documentation

◆ FormatComplete

bool FormattingAttemptStatus::FormatComplete = true

A value of false means that any of the affected ranges were not formatted due to a non-recoverable syntax error.

Definition at line 5788 of file Format.h.

◆ Line

unsigned FormattingAttemptStatus::Line = 0

If FormatComplete is false, Line records a one-based original line number at which a syntax error might have occurred. This is based on a best-effort analysis and could be imprecise.

Definition at line 5793 of file Format.h.


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