🎨 Committing clang-format changes

This commit is contained in:
Clang Robot 2026-04-29 02:22:59 +00:00
parent 56506bc111
commit d3c94e4451
8 changed files with 18945 additions and 20012 deletions

View File

@ -101,7 +101,7 @@ namespace chaiscript {
// MSVC has a broken warning for unreachable code in this block
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4702)
#pragma warning(disable : 4702)
#endif
template<typename Callable, typename... Params>
Boxed_Value

View File

@ -317,7 +317,7 @@ namespace chaiscript {
std::vector<std::string> t_module_paths = {},
std::vector<std::string> t_use_paths = {},
const std::vector<chaiscript::Options> &t_opts = chaiscript::default_options(),
const bool t_no_io=false)
const bool t_no_io = false)
: m_module_paths(ensure_minimum_path_vec(std::move(t_module_paths)))
, m_use_paths(ensure_minimum_path_vec(std::move(t_use_paths)))
, m_parser(std::move(parser))

View File

@ -9,8 +9,8 @@
#include "../chaiscript_defines.hpp"
#include <iterator>
#include <cstdint>
#include <iterator>
namespace chaiscript {
namespace utility {

View File

@ -126,7 +126,7 @@ namespace chaiscript::json {
JSONWrapper(Container *val)
: object(val) {
}
JSONWrapper(std::nullptr_t) { }
JSONWrapper(std::nullptr_t) {}
Container::iterator begin() { return object ? object->begin() : typename Container::iterator(); }
Container::iterator end() { return object ? object->end() : typename Container::iterator(); }

View File

@ -15,7 +15,9 @@ namespace chaiscript {
inline constexpr std::uint32_t max_codepoint = 0x10FFFF;
constexpr bool is_surrogate(std::uint32_t cp) noexcept { return cp >= 0xD800 && cp <= 0xDFFF; }
constexpr bool is_surrogate(std::uint32_t cp) noexcept {
return cp >= 0xD800 && cp <= 0xDFFF;
}
// Append cp to out as UTF-8. Returns bytes written, or 0 if cp >= 0x200000.
// Surrogates are not rejected here; callers that care check is_surrogate() first.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -26,7 +26,6 @@
#include <clocale>
// lambda_tests
TEST_CASE("C++11 Lambdas Can Be Registered") {
// We cannot deduce the type of a lambda expression, you must either wrap it