chipsalliance / dromajo

RISC-V RV64GC emulator designed for RTL co-simulation
Apache License 2.0
210 stars 63 forks source link

clang-format proposal and patch to allow re-org includes #24

Closed renau closed 4 years ago

renau commented 4 years ago

I committed a src/.clang-format with a uniform style suggestion for dromajo.

I did not run the clang-format, but to run it. cd src clang-format -i .h .cpp git diff .

The small include patch is to allow reorg the includes by name (clang-format does it)

I think that it is a clean format style, and it will make the code more uniform.

et-tommythorn commented 4 years ago

There's pros and cons of course. The major cons is that it makes it harder to pull in things that were removed, but on the balance is probably not enough of a concern.

tommythorn commented 4 years ago

Now that I have actually [partially] reviewed the output it, I'm very impressed overall.

I do have some major objections:

Less critical, I also would like to point out where this fails:

I haven't finished reviewing everything yet.