sonic-swss
sonic-swss copied to clipboard
Clang format change.
What I did This PR has no real code change. It is purely clang formatting. It only applies to the P4Orch codes. Commands that I run: find orchagent/p4orch -name *.h -o -name .cpp | xargs clang-format -i -style="{BasedOnStyle: Microsoft, DerivePointerAlignment: false}" find orchagent -name response_publisher -o -name return_code.h | xargs clang-format -i -style="{BasedOnStyle: Microsoft, DerivePointerAlignment: false}"
Why I did it In Google, we follow the Google clang format style, but SONiC uses Microsoft style. In order to upstream our changes, we have to translate the SONiC code into Google style first, then we can cherry-pick our changes. After that, we translate back to Microsoft style. The existing codes do not fully follow the clang Microsoft style. And hence causes many unnecessary file changes in a PR: https://github.com/sonic-net/sonic-swss/pull/3066.
How I verified it N/A
Details if related This PR might not meet the code coverage requirement. But it is purely formatting changes.