Skip to content

clang-format improperly formats some string operators #43887

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 44542
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor
CC @mydeveloperday

Extended Description

this line

log_error(log_, "from" << "asdf");

(we have some code written which makes it perfectly legal if not nicely looking c++)

is formatted into this

log_error(log_, "from"
<< "asdf");

None of the options that look even remotely relevant have any effect. It's specific to 2 strings, if you replace a string with some other type it doesn't break the line. Tested on versions from 6 till 9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions