Skip to content

clang-format breaks line within type for long variable name #28919

@eschnett

Description

@eschnett
Bugzilla Link 28545
Version unspecified
OS All

Extended Description

clang-format 3.8.0 (OS X, MacPorts) produces this line break for a C++ file:

extern "C" char const
    *const OpenCL_source_OpenCLRunTime_test_attribute_opencl_unroll_hint;

I argue that the line break should not be within the type char const *const it should either be before the type (after extern "C") or after the type (just before the variable name).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions