Skip to content

No formatting happens with custom .clang-format style #44

@z-aki

Description

@z-aki

Version 1.2
Steps:

Expand: Badly Formatted Code
//
//  main.cpp
//  clang-format-test
//
//  Copyright © 2020 ak. All rights reserved.
//

#include <iostream>

int
main(int argc, const char* argv[])
{
  // Long comment that must be broken down in multiple lines.
  // insert code here... insert code here... insert code here... insert code here... insert code here... insert code here...
  std::cout << "Hello, World!\n";
										  return 0;
}
  • Try to format entire file, it won't respond at all.
  • Change the style to one of the standards, it'll format.

Although v 1.1 crashed sometimes, it used to work with custom styles.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions