clang 19.0.0git
Public Attributes | List of all members
clang::format::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.
 

Detailed Description

Represents the status of a formatting attempt.

Definition at line 5230 of file Format.h.

Member Data Documentation

◆ FormatComplete

bool clang::format::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 5233 of file Format.h.

Referenced by clang::format::UnwrappedLineFormatter::format().

◆ Line

unsigned clang::format::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 5238 of file Format.h.

Referenced by clang::format::UnwrappedLineFormatter::format().


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