4.Coding.rst (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) | 4.Coding.rst (5a602de99797bddc9dd7f73592281a507196f69d) |
---|---|
1.. _development_coding: 2 3Getting the code right 4====================== 5 6While there is much to be said for a solid and community-oriented design 7process, the proof of any kernel development project is in the resulting 8code. It is the code which will be examined by other developers and merged --- 52 unchanged lines hidden (view full) --- 61Note that you can also use the ``clang-format`` tool to help you with 62these rules, to quickly re-format parts of your code automatically, 63and to review full files in order to spot coding style mistakes, 64typos and possible improvements. It is also handy for sorting ``#includes``, 65for aligning variables/macros, for reflowing text and other similar tasks. 66See the file :ref:`Documentation/process/clang-format.rst <clangformat>` 67for more details. 68 | 1.. _development_coding: 2 3Getting the code right 4====================== 5 6While there is much to be said for a solid and community-oriented design 7process, the proof of any kernel development project is in the resulting 8code. It is the code which will be examined by other developers and merged --- 52 unchanged lines hidden (view full) --- 61Note that you can also use the ``clang-format`` tool to help you with 62these rules, to quickly re-format parts of your code automatically, 63and to review full files in order to spot coding style mistakes, 64typos and possible improvements. It is also handy for sorting ``#includes``, 65for aligning variables/macros, for reflowing text and other similar tasks. 66See the file :ref:`Documentation/process/clang-format.rst <clangformat>` 67for more details. 68 |
69Some basic editor settings, such as indentation and line endings, will be 70set automatically if you are using an editor that is compatible with 71EditorConfig. See the official EditorConfig website for more information: 72https://editorconfig.org/ |
|
69 70Abstraction layers 71****************** 72 73Computer Science professors teach students to make extensive use of 74abstraction layers in the name of flexibility and information hiding. 75Certainly the kernel makes extensive use of abstraction; no project 76involving several million lines of code could do otherwise and survive. --- 345 unchanged lines hidden --- | 73 74Abstraction layers 75****************** 76 77Computer Science professors teach students to make extensive use of 78abstraction layers in the name of flexibility and information hiding. 79Certainly the kernel makes extensive use of abstraction; no project 80involving several million lines of code could do otherwise and survive. --- 345 unchanged lines hidden --- |