Skip to content

Commit e9c9740

Browse files
authored
chore: update gemini styleguide (#15758)
1 parent 659a261 commit e9c9740

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.gemini/styleguide.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
This repository mostly follows the Google C++ style guide found at
22
https://google.github.io/styleguide/cppguide.html.
33

4-
Notably, this repository only allows language features and libraries found in
5-
C++14.
4+
This repository differs from the Google C++ style guide in the following ways:
5+
6+
- supports C++14 as its minimum C++ standard version.
7+
- lists local includes first, then system includes.
8+
- uses std::mutex instead of absl::mutex.
9+
- uses google::cloud::future and google::cloud::promise instead of std::future
10+
and std::promise.
11+
- uses google::cloud::Status and google::cloud::StatusOr instead of absl::Status
12+
and absl::StatusOr.
13+
- prefers to factor out duplicated code if it appears 3 or more times in
14+
non-test files.
15+
- encourages duplication of salient setup and expectations in test cases to
16+
increase readability.

0 commit comments

Comments
 (0)