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

Mis-counting of braces with redundant nested scopes #37662

Closed
llvmbot opened this issue Jul 25, 2018 · 1 comment
Closed

Mis-counting of braces with redundant nested scopes #37662

llvmbot opened this issue Jul 25, 2018 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang-format confirmed Verified by a second party duplicate Resolved as duplicate

Comments

@llvmbot
Copy link
Collaborator

llvmbot commented Jul 25, 2018

Bugzilla Link 38314
Version trunk
OS All
Reporter LLVM Bugzilla Contributor
CC @cpplearner

Extended Description

This code formats poorly:

namespace n {
void foo() {
    {
        {
            {
                statement();
                if (false) {
                }
            }
        }
        {

        }
    }
}
}

Formatter output (default settings, HEAD, reproduced here: https://zed0.co.uk/clang-format-configurator/):

namespace n {
void foo() {
  {
    {{statement();
    if (false) {
    }
  }
}
{}
}
}
}
@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 10, 2021
@llvmbot llvmbot added the confirmed Verified by a second party label Jan 26, 2022
@rymiel
Copy link
Member

rymiel commented Jan 1, 2023

Duplicate of #33891

@rymiel rymiel marked this as a duplicate of #33891 Jan 1, 2023
@rymiel rymiel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2023
@rymiel rymiel added the duplicate Resolved as duplicate label Jan 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang-format confirmed Verified by a second party duplicate Resolved as duplicate
Projects
None yet
Development

No branches or pull requests

2 participants