GithubHelp home page GithubHelp logo

Define a clang-format file about managarm HOT 6 OPEN

cflaviu avatar cflaviu commented on June 15, 2024
Define a clang-format file

from managarm.

Comments (6)

Dennisbonke avatar Dennisbonke commented on June 15, 2024 1

It's in the works, I expect one in the coming weeks. I have it ready but it's blocked on llvm 16, which I'll PR in tomorrow hopefully.

from managarm.

ArsenArsen avatar ArsenArsen commented on June 15, 2024 1

https://github.com/ArsenArsen/managarm/blob/clang-reformat/.clang-format

from managarm.

Dennisbonke avatar Dennisbonke commented on June 15, 2024 1

I did some testing and some small tweaks. Also enabled some options that are only in llvm 15 or above, hence the llvm upgrade

from managarm.

Dennisbonke avatar Dennisbonke commented on June 15, 2024 1

See #528

from managarm.

cflaviu avatar cflaviu commented on June 15, 2024

Most Linux distributions do not provide the latest clang-format version, v16.
It would be more useful to target version v14 or v15 to cover a broader range of users. In my case I have by default v14 but I can install v15, but not v16.
clang-format doesn't offer enough configuration granularity to describe a specific coding style and it is expected to make some compromises regarding the formatting, eg. in my particular case, the initialization lists. IMO it's not worth spending too much time finding the perfect tool or the perfect configuration to match the expected coding style.

from managarm.

ArsenArsen avatar ArsenArsen commented on June 15, 2024

you can use host-llvm-toolchain to run clang-format

from managarm.

Related Issues (20)

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.