Coding language style guidelines
codyopel opened this issue · comments
Exceptions to the listed style guides are a work in progress. Languages that have not been approved for use in official Triton projects are not listed.
- C
- Google's or Linux kernel's, TBD
- C++
- https://google.github.io/styleguide/cppguide.html
- Exceptions:
- Formatters:
- https://google.github.io/styleguide/cppguide.html
- Go
- go fmt
- Java
- HTML/CSS
- https://google.github.io/styleguide/htmlcssguide.html
- Exceptions:
- Formatters:
- https://google.github.io/styleguide/htmlcssguide.html
- Javascript
- https://google.github.io/styleguide/jsguide.html
- Exceptions:
- Formatters:
- https://google.github.io/styleguide/jsguide.html
- Python
- https://google.github.io/styleguide/pyguide.html
- Exceptions:
- Lists must end with a trailing comma to be split to individual lines.
- Exceptions:
- Formatters:
- https://google.github.io/styleguide/pyguide.html
- Rust
- https://github.com/rust-lang-nursery/fmt-rfcs
- Exceptions:
- Formatters:
- https://github.com/rust-lang-nursery/fmt-rfcs
- Shell
- https://google.github.io/styleguide/shell.xml
- Exceptions:
- Formatters:
- https://google.github.io/styleguide/shell.xml
https://google.github.io/styleguide/
Tools
https://github.com/google/vim-codefmt
POSSIBLE:
- M4
- Make
- Meson