Giter Site home page Giter Site logo

apple-clang-format's Issues

Automatically format modified files before commit

Is it possible to have modified files automatically formatted before committing them to source control? Or preferably when selecting commit from the source control menu, so the diffs in the commit window are correct.

The way it is now I have to remember to manually select formatting from the menu, or press Command-S.

Change name of .clang-format to _clang-format

Since clang-format supports both ".clang-format" and "_clang-format" file names, wouldn't be better to use the latter? That's because ".clang-format" will be, by default, hidden in both Finder and Terminal, so will be harder to find. Additionally, I think it's more explicit to see, near a project file, a visible "format" file.

typedef struct format

before format

typedef struct
{
    int magic1;
    int magic2;
    uint32_t operation;
    uint32_t param1;
    uint32_t param2;
    uint32_t payloadLength;
} UdpMsg;

after format

typedef struct
    {
    int magic1;
    int magic2;
    uint32_t operation;
    uint32_t param1;
    uint32_t param2;
    uint32_t payloadLength;
} UdpMsg;

I think { should not be changed in this case , any suggestions ?
:D

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.