xref: /aosp_15_r20/tools/netsim/guide/CODING_STYLE.md (revision cf78ab8cffb8fc9207af348f23af247fb04370a6)
1# Coding Style Guide
2
3## Introduction
4This project follows [Google C++ style](https://google.github.io/styleguide/cppguide.html).
5
6If there is any inconsistency in this repository and it's not mentioned in Google C++ style guide:
71. Add a rule with reason or reference here and send a code review to the team.
82. Once approved, apply the rule to the repository in a follow up change.
9
10## Rules
111. Use `#pragma once` instead of #define guards. Netsim uses compiler tool chain from external/qemu, and the project uses `#pragma once` too.
12