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