blob: 92df6df3f6350ddcd5893f965b97e7a469d161ae [file] [log] [blame] [view]
brettwf0e606a52016-07-06 21:17:201# Chromium coding style
2
3## Main style guides
4
Jaeheon Yi1990e582021-10-01 22:07:395* [Chromium C++ style guide](c++/c++.md)
Avi Drissman0aafa9e2022-01-18 21:41:016 * [Modern C++ use](c++/c++-features.md) for allowed/banned features.
Jaeheon Yi1990e582021-10-01 22:07:397 * See also: [C++ Dos and Don'ts](c++/c++-dos-and-donts.md) for Chromium
8 best-practices.
Caleb Raitto34a62102025-03-21 20:32:209 * [Blink C++ style](c++/blink-c++.md)
Jaeheon Yi1990e582021-10-01 22:07:3910* [Chromium Objective-C style guide](objective-c/objective-c.md)
11* [Chromium Swift style guide](swift/swift.md)
12* [Java style guide for Android](java/java.md)
13* [Chromium Python style guide](python/python.md)
Caleb Raitto34a62102025-03-21 20:32:2014 * [Blink Python style](python/blink-python.md)
Jaeheon Yi1990e582021-10-01 22:07:3915* [GN style guide](https://gn.googlesource.com/gn/+/main/docs/style_guide.md)
16 for build files.
17 * See also: [Writing GN templates](../build/docs/writing_gn_templates.md)
18 for Chromium best-practices.
Ming-Ying Chung99ebfd72023-03-03 01:01:4819* [Markdown style guide](markdown/markdown.md)
brettwf0e606a52016-07-06 21:17:2020
21Chromium also uses these languages to a lesser degree:
22
Jaeheon Yi1990e582021-10-01 22:07:3923* [Kernel C style](https://www.kernel.org/doc/html/latest/process/coding-style.html)
24 for ChromiumOS firmware.
Caleb Raitto34a62102025-03-21 20:32:2025* [WebIDL](https://www.chromium.org/blink/webidl/#syntax)
26* [Mojo IDL](../docs/security/mojo.md) for cross-process IPC
Jaeheon Yi1990e582021-10-01 22:07:3927* [Jinja style guide](https://sites.google.com/a/chromium.org/dev/developers/jinja#TOC-Style)
28 for [Jinja](https://sites.google.com/a/chromium.org/dev/developers/jinja)
29 templates.
Caleb Raitto373242562025-03-21 19:40:0130* [SQLite SQL style](../sql/README.md#SQL-style) for storage of cookies, etc.
brettwf0e606a52016-07-06 21:17:2031
Jaeheon Yi1990e582021-10-01 22:07:3932Regardless of the language used, please keep code
33[inclusive for all contributors](inclusive_code.md).
benwells3ab41652017-03-31 22:20:4234
brettwf0e606a52016-07-06 21:17:2035## Web languages (JavaScript, HTML, CSS)
36
Jaeheon Yi1990e582021-10-01 22:07:3937When working on Web-based UI features, consult the
38[Web Development Style Guide](web/web.md) for the Chromium conventions used in
39JS/CSS/HTML files.
brettwf0e606a52016-07-06 21:17:2040
Jaeheon Yi1990e582021-10-01 22:07:3941Internal uses of web languages, notably "layout" tests, should preferably follow
42these style guides, but it is not enforced.