Skip to content

Commit

Permalink
[misc] clang-tidy namespace comment autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
raxyte committed Aug 5, 2023
1 parent 3b5a2f7 commit 788bcd0
Show file tree
Hide file tree
Showing 119 changed files with 133 additions and 129 deletions.
2 changes: 1 addition & 1 deletion include/dpp/appcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -1222,4 +1222,4 @@ typedef std::unordered_map<snowflake, slashcommand> slashcommand_map;
*/
typedef std::unordered_map<snowflake, guild_command_permissions> guild_command_permissions_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,4 @@ class DPP_EXPORT application : public managed, public json_interface<application
*/
typedef std::unordered_map<snowflake, application> application_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/auditlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,4 @@ class DPP_EXPORT auditlog : public json_interface<auditlog> {
auditlog& fill_from_json(nlohmann::json* j);
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/automod.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,4 +371,4 @@ class DPP_EXPORT automod_rule : public managed, public json_interface<automod_ru
*/
typedef std::unordered_map<snowflake, automod_rule> automod_rule_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/ban.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ class DPP_EXPORT ban : public json_interface<ban> {
*/
typedef std::unordered_map<snowflake, ban> ban_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -268,5 +268,5 @@ cache_decl(role, find_role, get_role_cache, get_role_count);
cache_decl(channel, find_channel, get_channel_cache, get_channel_count);
cache_decl(emoji, find_emoji, get_emoji_cache, get_emoji_count);

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/channel.h
Original file line number Diff line number Diff line change
Expand Up @@ -854,5 +854,5 @@ struct active_thread_info {
*/
using active_threads = std::map<snowflake, active_thread_info>;

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/cluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -3523,4 +3523,4 @@ class DPP_EXPORT cluster {

};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/collector.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,4 +436,4 @@ class scheduled_event_collector : public scheduled_event_collector_t {
virtual ~scheduled_event_collector() = default;
};

};
} // namespace dpp
4 changes: 2 additions & 2 deletions include/dpp/colors.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,10 +735,10 @@ namespace dpp {
snow = 0xFFFAFA,
milk_white = 0xFEFCFF,
half_white = 0xFFFEFA;
};
} // namespace colors

/**
* @brief predefined color constants, same as colors
*/
namespace colours = colors;
};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/commandhandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -389,4 +389,4 @@ class DPP_EXPORT commandhandler {

};

};
} // namespace dpp
6 changes: 3 additions & 3 deletions include/dpp/coro.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ namespace dpp {
*/
template <typename ReturnType>
using task_handle = detail::std_coroutine::coroutine_handle<detail::task_promise<ReturnType>>;
}
} // namespace detail

/**
* @brief A coroutine task. It can be co_awaited to make nested coroutines.
Expand Down Expand Up @@ -404,7 +404,7 @@ namespace dpp {
if (parent)
parent.resume();
}
}
} // namespace detail

template <typename ReturnType>
#ifndef _DOXYGEN_
Expand Down Expand Up @@ -695,7 +695,7 @@ namespace dpp {
return std::move(*api_callback.get_result());
}
};
};
} // namespace dpp

/**
* @brief Specialization of std::coroutine_traits, helps the standard library figure out a promise type from a coroutine function.
Expand Down
2 changes: 1 addition & 1 deletion include/dpp/discordclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -524,4 +524,4 @@ class DPP_EXPORT discord_client : public websocket_client
voiceconn* get_voice(snowflake guild_id);
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/discordevents.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,4 +168,4 @@ std::string DPP_EXPORT base64_encode(unsigned char const* buf, unsigned int buff
*/
std::string DPP_EXPORT ts_to_string(time_t ts);

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/discordvoiceclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -910,5 +910,5 @@ class DPP_EXPORT discord_voice_client : public websocket_client
std::string discover_ip();
};

};
} // namespace dpp

4 changes: 2 additions & 2 deletions include/dpp/dispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace utility {
* @return A lambda for attaching to an API callback
*/
std::function<void(const dpp::confirmation_callback_t& detail)> DPP_EXPORT log_error();
};
} // namespace utility

/** @brief Add user to scheduled event */
struct DPP_EXPORT guild_scheduled_event_user_add_t : public event_dispatch_t {
Expand Down Expand Up @@ -1905,5 +1905,5 @@ struct DPP_EXPORT voice_client_disconnect_t : public event_dispatch_t {
snowflake user_id;
};

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ namespace dpp {
* @throw dpp::connection_exception On failure to resolve hostname
*/
const dns_cache_entry* resolve_hostname(const std::string& hostname, const std::string& port);
};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/dtemplate.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ class DPP_EXPORT dtemplate : public json_interface<dtemplate> {
typedef std::unordered_map<snowflake, dtemplate> dtemplate_map;


};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/emoji.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ class DPP_EXPORT emoji : public managed, public json_interface<emoji> {
*/
typedef std::unordered_map<snowflake, emoji> emoji_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/etf.h
Original file line number Diff line number Diff line change
Expand Up @@ -639,4 +639,4 @@ class DPP_EXPORT etf_parser {
std::string build(const nlohmann::json& j);
};

};
} // namespace dpp
3 changes: 2 additions & 1 deletion include/dpp/event.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,5 @@ event_decl(automod_rule_execute, AUTO_MODERATION_ACTION_EXECUTION);
/* Audit log */
event_decl(guild_audit_log_entry_create, GUILD_AUDIT_LOG_ENTRY_CREATE);

}};
} // namespace events
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/event_router.h
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,4 @@ template<class T> class event_router_t {
}
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/exception.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,5 +197,5 @@ class exception : public std::exception
derived_exception(cache_exception, exception);
#endif

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/guild.h
Original file line number Diff line number Diff line change
Expand Up @@ -1371,4 +1371,4 @@ typedef std::unordered_map<snowflake, guild_member> guild_member_map;
*/
guild_member DPP_EXPORT find_guild_member(const snowflake guild_id, const snowflake user_id);

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/httpsclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,4 @@ class DPP_EXPORT https_client : public ssl_client

};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/integration.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,5 @@ typedef std::unordered_map<snowflake, integration> integration_map;
/** A group of connections */
typedef std::unordered_map<snowflake, connection> connection_map;

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/intents.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ enum intents {
i_unverified_default_intents = dpp::i_default_intents | dpp::i_message_content
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/invite.h
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,4 @@ class DPP_EXPORT invite : public json_interface<invite> {
/** A container of invites */
typedef std::unordered_map<std::string, invite> invite_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/isa_detection.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,4 +396,4 @@ class audio_mixer {

#endif

}
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/json_interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ namespace dpp {
throw dpp::logic_exception("JSON interface doesn't implement build_json");
}
};
};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/managed.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ namespace dpp {
bool operator!=(const managed& other) const noexcept;
};

};
} // namespace dpp
4 changes: 2 additions & 2 deletions include/dpp/message.h
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,7 @@ namespace embed_type {
* @brief Auto moderation filter
*/
const std::string emt_automod = "auto_moderation_message";
};
} // namespace embed_type

/**
* @brief Message types for dpp::message::type
Expand Down Expand Up @@ -1558,4 +1558,4 @@ typedef std::unordered_map<snowflake, sticker> sticker_map;
/** A group of sticker packs */
typedef std::unordered_map<snowflake, sticker_pack> sticker_pack_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/misc-enum.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ namespace dpp {
ll_critical
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/once.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ namespace dpp {
return !std::exchange(called, true);
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/permissions.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ class DPP_EXPORT permission {
}
};

}
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/presence.h
Original file line number Diff line number Diff line change
Expand Up @@ -391,4 +391,4 @@ class DPP_EXPORT presence : public json_interface<presence> {
/** A container of presences */
typedef std::unordered_map<snowflake, presence> presence_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/prune.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ struct DPP_EXPORT prune : public json_interface<prune> {

};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/queues.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,4 +458,4 @@ class DPP_EXPORT request_queue {
bool is_globally_ratelimited() const;
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/restrequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,4 +231,4 @@ template<class T> inline void rest_request_vector(dpp::cluster* c, const char* b
}


};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/restresults.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,4 +316,4 @@ typedef std::function<void(const confirmation_callback_t&)> command_completion_e
* @brief Automatically JSON encoded HTTP result
*/
typedef std::function<void(json&, const http_request_completion_t&)> json_encode_t;
};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/role.h
Original file line number Diff line number Diff line change
Expand Up @@ -699,5 +699,5 @@ typedef std::unordered_map<snowflake, role> role_map;
/** A group of application_role_connection_metadata objects */
typedef std::vector<application_role_connection_metadata> application_role_connection_metadata_list;

};
} // namespace dpp

2 changes: 1 addition & 1 deletion include/dpp/scheduled_event.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ typedef std::unordered_map<snowflake, scheduled_event> scheduled_event_map;
typedef std::unordered_map<snowflake, event_member> event_member_map;


};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/snowflake.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class DPP_EXPORT snowflake final {
uint16_t get_increment() const;
};

};
} // namespace dpp

template<>
struct std::hash<dpp::snowflake>
Expand Down
4 changes: 2 additions & 2 deletions include/dpp/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace dpp
* This is used to ensure parity between windows and unix-like systems.
*/
typedef SOCKET socket;
}
} // namespace dpp

#ifndef SOCKET_ERROR
/**
Expand All @@ -27,4 +27,4 @@ namespace dpp
* @brief Represents a socket which is not yet assigned
*/
#define INVALID_SOCKET ~0
#endif
#endif
2 changes: 1 addition & 1 deletion include/dpp/sslclient.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,4 +255,4 @@ class DPP_EXPORT ssl_client
virtual void log(dpp::loglevel severity, const std::string &msg) const;
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/stage_instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ struct DPP_EXPORT stage_instance : public managed, public json_interface<stage_i
/** A group of stage instances */
typedef std::unordered_map<snowflake, stage_instance> stage_instance_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/stringops.h
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,4 @@ template <typename T> std::string leading_zeroes(T i, size_t width)
return stream.str();
}

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ namespace dpp {
return _f.get();
}

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/timed_listener.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ template <typename attached_event, class listening_function> class timed_listene
}
};

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/timer.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,4 @@ class DPP_EXPORT oneshot_timer



};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,4 +406,4 @@ void from_json(const nlohmann::json& j, user_identified& u);
/** A group of users */
typedef std::unordered_map<snowflake, user> user_map;

};
} // namespace dpp
4 changes: 2 additions & 2 deletions include/dpp/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -540,5 +540,5 @@ namespace dpp {
*/
void DPP_EXPORT set_thread_name(const std::string& name);

};
};
} // namespace utility
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/voiceregion.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ class DPP_EXPORT voiceregion : public json_interface<voiceregion> {
*/
typedef std::unordered_map<std::string, voiceregion> voiceregion_map;

};
} // namespace dpp
2 changes: 1 addition & 1 deletion include/dpp/voicestate.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ class DPP_EXPORT voicestate : public json_interface<voicestate> {
/** A container of voicestates */
typedef std::unordered_map<std::string, voicestate> voicestate_map;

};
} // namespace dpp
Loading

0 comments on commit 788bcd0

Please sign in to comment.