Skip to content

Misformatting around static_cast parentheses #138720

Open
@DarkTyger

Description

@DarkTyger

A couple items of note.

First, with clang-format 20, using SpacesInCStyleCastParentheses: true produces:

  static_cast<type>( value );
  (size_t)value;

Where SpacesInCStyleCastParentheses: false produces:

  static_cast<type>(value);
  ( size_t )value;

Is that backwards?

Second, would we be able to get an option to achieve the following:

  static_cast<type>( value );
  (size_t)value;

Something like the following would make sense:

SpacesInCStyleCastParentheses: false and SpacesInStaticCastParentheses: true.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions