mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 06:15:44 +08:00
Mention clang-format version requirements.
This commit is contained in:
parent
a7299c3f0f
commit
b4b54989c8
@ -33,7 +33,7 @@ As such, feature requests may not be accepted even if a comprehensive RFC is wri
|
||||
## Code style
|
||||
|
||||
Contributions to this project are expected to follow the existing code style.
|
||||
`.clang-format` file mostly defines syntactic styling rules (you can run `make format` to format the code accordingly).
|
||||
`.clang-format` file mostly defines syntactic styling rules (you can run `make format` to format the code accordingly). To avoid formatting inconsistencies, get a clang-format binary version >=15.
|
||||
|
||||
As for naming conventions, most Luau components use `lowerCamelCase` for variables and functions, `UpperCamelCase` for types and enums, `kCamelCase` for global constants and `SCARY_CASE` for macros.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user