Skip to content

Commit 82ba005

Browse files
committed
CXX-1660 Fix some doxygen warnings
1 parent 4ddfc58 commit 82ba005

File tree

10 files changed

+32
-30
lines changed

10 files changed

+32
-30
lines changed

src/bsoncxx/exception/error_code.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ BSONCXX_API const std::error_category& BSONCXX_CALL error_category();
102102
///
103103
/// Translate a bsoncxx::error_code into a std::error_code.
104104
///
105-
/// @param an error from bsoncxx
106-
/// @return an error_code
105+
/// @param error An error from bsoncxx
106+
/// @return An error_code
107107
///
108108
BSONCXX_INLINE std::error_code make_error_code(error_code error) {
109109
return {static_cast<int>(error), error_category()};

src/bsoncxx/json.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ enum class ExtendedJsonMode : std::uint8_t {
4646
///
4747
/// @param view
4848
/// A valid BSON document.
49+
/// @param mode
50+
/// An optional JSON representation mode.
4951
///
5052
/// @throws bsoncxx::exception with error details if the conversion failed.
5153
///

src/bsoncxx/validate.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class BSONCXX_API validator {
140140
/// Verifies that document keys do not contain any '.' characters. The dot
141141
/// character is illegal in MongoDB keys.
142142
///
143-
/// @param check_dollar_keys
143+
/// @param check_dot_keys
144144
/// If true, keys containing '.' will be treated as invalid.
145145
///
146146
void check_dot_keys(bool check_dot_keys);

src/mongocxx/logger.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace mongocxx {
2525
MONGOCXX_INLINE_NAMESPACE_BEGIN
2626

2727
///
28-
/// The log level of a message passed to a @logger.
28+
/// The log level of a message passed to a mongocxx::logger.
2929
///
3030
enum class log_level {
3131
k_error,
@@ -40,7 +40,7 @@ enum class log_level {
4040
///
4141
/// Returns a stringification of the given log level.
4242
///
43-
/// @param rhs
43+
/// @param level
4444
/// The type to stringify.
4545
///
4646
/// @return a std::string representation of the type.

src/mongocxx/model/write.hpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,37 @@ MONGOCXX_INLINE_NAMESPACE_BEGIN
3232
namespace model {
3333

3434
///
35-
/// Models a single write operation within a @bulk_write.
35+
/// Models a single write operation within a mongocxx::bulk_write.
3636
///
3737
class MONGOCXX_API write {
3838
public:
3939
///
40-
/// Constructs a write from an @insert_one.
40+
/// Constructs a write from a model::insert_one.
4141
///
4242
write(insert_one value);
4343

4444
///
45-
/// Constructs a write from an @update_one.
45+
/// Constructs a write from a model::update_one.
4646
///
4747
write(update_one value);
4848

4949
///
50-
/// Constructs a write from an @update_many.
50+
/// Constructs a write from a model::update_many.
5151
///
5252
write(update_many value);
5353

5454
///
55-
/// Constructs a write from a @delete_one.
55+
/// Constructs a write from a model::delete_one.
5656
///
5757
write(delete_one value);
5858

5959
///
60-
/// Constructs a write from a @delete_many.
60+
/// Constructs a write from a model::delete_many.
6161
///
6262
write(delete_many value);
6363

6464
///
65-
/// Constructs a write from a @replace_one.
65+
/// Constructs a write from a model::replace_one.
6666
///
6767
write(replace_one value);
6868

@@ -91,43 +91,43 @@ class MONGOCXX_API write {
9191
write_type type() const;
9292

9393
///
94-
/// Accesses the write as an @insert_one. It is illegal to call
95-
/// this method if the return of @type (above) does not indicate
94+
/// Accesses the write as a model::insert_one. It is illegal to call
95+
/// this method if the return of type() does not indicate
9696
/// that this object currently contains the applicable type.
9797
///
9898
const insert_one& get_insert_one() const;
9999

100100
///
101-
/// Accesses the write as an @update_one. It is illegal to call
102-
/// this method if the return of @type (above) does not indicate
101+
/// Accesses the write as an model::update_one. It is illegal to call
102+
/// this method if the return of type() does not indicate
103103
/// that this object currently contains the applicable type.
104104
///
105105
const update_one& get_update_one() const;
106106

107107
///
108-
/// Accesses the write as an @update_many. It is illegal to call
109-
/// this method if the return of @type (above) does not indicate
108+
/// Accesses the write as an model::update_many. It is illegal to call
109+
/// this method if the return of type() does not indicate
110110
/// that this object currently contains the applicable type.
111111
///
112112
const update_many& get_update_many() const;
113113

114114
///
115-
/// Accesses the write as a @delete_one. It is illegal to call
116-
/// this method if the return of @type (above) does not indicate
115+
/// Accesses the write as a model::delete_one. It is illegal to call
116+
/// this method if the return of type() does not indicate
117117
/// that this object currently contains the applicable type.
118118
///
119119
const delete_one& get_delete_one() const;
120120

121121
///
122-
/// Accesses the write as a @delete_many. It is illegal to call
123-
/// this method if the return of @type (above) does not indicate
122+
/// Accesses the write as a model::delete_many. It is illegal to call
123+
/// this method if the return of type() does not indicate
124124
/// that this object currently contains the applicable type.
125125
///
126126
const delete_many& get_delete_many() const;
127127

128128
///
129-
/// Accesses the write as a @replace_one. It is illegal to call
130-
/// this method if the return of @type (above) does not indicate
129+
/// Accesses the write as a model::replace_one. It is illegal to call
130+
/// this method if the return of type() does not indicate
131131
/// that this object currently contains the applicable type.
132132
///
133133
const replace_one& get_replace_one() const;

src/mongocxx/options/apm.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class MONGOCXX_API apm {
8585
/// Set the command succeeded monitoring callback. The callback takes a reference to a
8686
/// command_succeeded_event which will only contain valid data for the duration of the callback.
8787
///
88-
/// @param command_failed
88+
/// @param command_succeeded
8989
/// The command succeeded monitoring callback.
9090
///
9191
/// @return
@@ -286,7 +286,7 @@ class MONGOCXX_API apm {
286286
/// heartbeat_succeeded_event which will only contain valid data for the duration of the
287287
/// callback.
288288
///
289-
/// @param heartbeat_failed
289+
/// @param heartbeat_succeeded
290290
/// The heartbeat succeeded monitoring callback.
291291
///
292292
/// @return

src/mongocxx/options/change_stream.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class MONGOCXX_API change_stream {
149149
/// Specifies the logical starting point for the new change stream. Changes are returned at or
150150
/// after the specified operation time.
151151
///
152-
/// @param operation_time
152+
/// @param timestamp
153153
/// The starting operation time.
154154
///
155155
/// @return

src/mongocxx/options/create_collection.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class MONGOCXX_API create_collection {
191191
///
192192
/// @note This option is currently only available with the WiredTiger storage engine.
193193
///
194-
/// @param storage_engine_options
194+
/// @param storage_engine_opts
195195
/// Configuration options specific to the storage engine.
196196
///
197197
/// @return

src/mongocxx/options/index.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class MONGOCXX_API index {
240240
///
241241
/// Sets the index version.
242242
///
243-
/// @param version
243+
/// @param v
244244
/// The index version.
245245
///
246246
/// @return

src/mongocxx/pipeline.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ class MONGOCXX_API pipeline {
410410
/// @see https://docs.mongodb.com/master/reference/operator/aggregation/unwind/
411411
///
412412
/// @param unwind_args
413-
/// The specification for the unwind operation. The required field @path must be included.
413+
/// The specification for the unwind operation. The required field path must be included.
414414
///
415415
/// @return
416416
/// A reference to the object on which this member function is being called. This facilitates

0 commit comments

Comments
 (0)