Giter Site home page Giter Site logo

format_code's People

Contributors

dogoepp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

format_code's Issues

unrecognized arguments: --need_reformat

Hi all,

I get this when I try to commit to Limbo:

git-clang-format: error: unrecognized arguments: --need_reformat
You need to run 'git clang-format' and stage the files again before commit

On the other hand if I just do git clang-format or clang-format, I get a normal execution:
clang-format did not modify any files.

I recently upgraded to clang 5 and the associated clang-format. Is the --need_reformat option deprecated?

Thanks.

Format of macro classes such as SFERES_FITNESS

I don't like the way the atom clang-format package formats macros such as SFERES_FITNESS.

For example, the following function is formatted in a nicely looking way:

template void eval(const Indiv &ind) {
float v = 0;
std::vector values = {0.2, 0.5, 0.3};

for (size_t i = 0; i < 3; ++i) {
std::cout << "bla ";
}

this->_value = v;
}

..but being inside SFERES_FITNESS the result is the following:

SFERES_FITNESS(SomeFunction, sferes::fit::Fitness){
public : template void eval(const Indiv &ind){float v = 0;
std::vector values = {0.2, 0.5, 0.3};

for (size_t i = 0; i < 3; ++i) {
std::cout << "bla ";
}

this->_value = v;
}
}
;

Do you agree?

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.