Skip to content

Globals now formatted surprsingly #16532

Closed
@tobiasgrosser

Description

Bugzilla Link 16157
Resolution FIXED
Resolved on Jun 28, 2013 12:29
Version unspecified
OS Linux
CC @rnk

Extended Description

Hi,

clang-format now formats the following code differently:

This:

static cl::opt
ValueDependences("polly-value-dependences",
cl::desc("Use value instead of memory based dependences"),
cl::Hidden, cl::init(true), cl::cat(PollyCategory));

became:

static cl::opt
ValueDependences("polly-value-dependences",
cl::desc("Use value instead of memory based dependences"),
cl::Hidden, cl::init(true), cl::cat(PollyCategory));

I can see the reasoning behind this, but a quick grep 'grep -R cl::opt -A 2 lib/'
does not show a single use of this in LLVM whereas the first one is very common.
I believe this change should be disabled in the LLVM style

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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