Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-format initializer list formatting #2348

Open
azecevicTT opened this issue Mar 3, 2025 · 0 comments
Open

clang-format initializer list formatting #2348

azecevicTT opened this issue Mar 3, 2025 · 0 comments
Assignees

Comments

@azecevicTT
Copy link
Contributor

Investigate clang-format option for initializer list, currently it have some weird formatting in some cases:

    llvm::SmallVector<mlir::Attribute> args{
        emitter.emit(srcOp.getShape()),        emitter.emit(srcOp.getDtype()),
        emitter.emit(srcOp.getLayout()),       emitter.emit(srcOp.getDevice()),
        emitter.emit(srcOp.getMemoryConfig()),
    };

Here preferable format would be

    llvm::SmallVector<mlir::Attribute> args{
        emitter.emit(srcOp.getShape()), 
        emitter.emit(srcOp.getDtype()),
        emitter.emit(srcOp.getLayout()),
        emitter.emit(srcOp.getDevice()),
        emitter.emit(srcOp.getMemoryConfig()),
    };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants