-
Notifications
You must be signed in to change notification settings - Fork 112
Coding Rules
Takatoshi Kondo edited this page Jun 13, 2019
·
17 revisions
#define SNAKE_CASE (1)
namespace snake_case {
// east const
constexpr char const snake_case = 0b00000010;
template <typename UpperCase>
class snake_case {
public:
void snake_case();
private:
int snake_case_; // underscore postfix
};
} // namespace snake_caseIf condition has an else clause, condition should be positive.
// OK
#if defined(SOME_CONDITION)
// do A
#else // defined(SOME_CONDITION)
// do B
#endif // defined(SOME_CONDITION)
// NG
#if !defined(SOME_CONDITION)
// do B
#else // !defined(SOME_CONDITION)
// do A
#endif // !defined(SOME_CONDITION)- Requirements
- Config
- Tutorial
- Authentication and Authorization
- Advanced topics
- Examples
- API Reference
- Versioning Policy
- How to contribute