-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Open
Labels
RFCRequest For Comments: want input from the communityRequest For Comments: want input from the communityarea: C++area: Coding GuidelinesCoding guidelines and styleCoding guidelines and style
Description
Introduction
Establish C++ coding guidelines to be used in the Zephyr repository, and implement means to enforce them.
Problem description
While we have multiple coding and style guideline checkers such as checkpatch.pl and guideline_check.py for the C language, we do not for the C++ language. It is necessary to establish and enforce repository-wide C++ coding and style guidelines in order to ensure code quality and consistency.
Proposed change
- Adopt one or more C++ coding and style guidelines for use in the Zephyr repository.
- Refer to the "Guideline Candidates" below.
- Adopt tools to enforce such guidelines in the CI.
- Document the guidelines.
Guideline Candidates
- C++ Core Guidelines, maintained by the Standard C++ Foundation
- Google C++ Style Guide, maintained by Google
(please feel free to edit this RFC and add any other guidelines that you think would be good for consideration)
Enforcement Tool Candidates
- clang-tidy, enforces C++ Core Guidelines (and more)
- Cpplint, enforces Google C++ Style Guide
Metadata
Metadata
Assignees
Labels
RFCRequest For Comments: want input from the communityRequest For Comments: want input from the communityarea: C++area: Coding GuidelinesCoding guidelines and styleCoding guidelines and style
Type
Projects
Status
No status