Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build/scripts/go_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ def filter_out_skip_tests(tests, skip_tests):
@contextmanager
def create_strip_symlink():
# This function creates symlink of llvm-strip as strip for golink needs.
# We believe that cc-binaries path is a first element in PATH enviroment variable.
# We believe that cc-binaries path is a first element in PATH environment variable.
tmpdir = None
if os.getenv("CC") == "clang":
tmpdir = tempfile.mkdtemp()
Expand Down
4 changes: 2 additions & 2 deletions build/ymake.core.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3597,7 +3597,7 @@ macro _SRC_CPP_CUSTOM_FLAGS(SRC, COMPILE_OUT_SUFFIX, CUSTOM_FLAGS...) {
# tag:src-specific tag:cpp-specific
### @usage: _SRC_CUSTOM_C_CPP(Ext MacroName File Flags...) # internal
###
### Defenition of generic macro. Report an error that the File with Ext is not
### Definition of generic macro. Report an error that the File with Ext is not
### supported by macro MacroName if no appropriate macro specialization is found.
macro _SRC_CUSTOM_C_CPP(EXT, MACRO_NAME, FILE, COMPILE_OUT_SUFFIX, FLAGS...) {
MESSAGE(FATAL_ERROR macro [[alt1]]$MACRO_NAME[[rst]] does not support files with [[imp]].$EXT[[rst]] extension)
Expand Down Expand Up @@ -3727,7 +3727,7 @@ macro SRC_C_XOP(FILE, FLAGS...) {
# tag:src-specific tag:cpp-specific
### @usage: _SRC_STRICT_C_CPP(Ext MacroName File Flags...) # internal
###
### Defenition of generic macro. Report an error that the File with Ext is not
### Definition of generic macro. Report an error that the File with Ext is not
### supported by macro MacroName if no appropriate macro specialization is found.
macro _SRC_STRICT_C_CPP(EXT, MACRO_NAME, FILE, FLAGS...) {
MESSAGE(FATAL_ERROR macro [[alt1]]$MACRO_NAME[[rst]] does not support files with [[imp]].$EXT[[rst]] extension)
Expand Down
2 changes: 1 addition & 1 deletion contrib/deprecated/http-parser/http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1838,7 +1838,7 @@ size_t http_parser_execute (http_parser *parser,
/* Here we call the headers_complete callback. This is somewhat
* different than other callbacks because if the user returns 1, we
* will interpret that as saying that this message has no body. This
* is needed for the annoying case of recieving a response to a HEAD
* is needed for the annoying case of receiving a response to a HEAD
* request.
*
* We'd like to use CALLBACK_NOTIFY_NOADVANCE() here but we cannot, so
Expand Down
2 changes: 1 addition & 1 deletion contrib/deprecated/python/ujson/py3/lib/ultrajson.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ typedef struct __JSONObjectEncoder
void *prv;

/*
Set to an error message if error occured */
Set to an error message if error occurred */
const char *errorMsg;
JSOBJ errorObj;

Expand Down
6 changes: 3 additions & 3 deletions contrib/deprecated/yajl/src/api/yajl_parse.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extern "C" {
yajl_status_ok,
/** a client callback returned zero, stopping the parse */
yajl_status_client_canceled,
/** An error occured during the parse. Call yajl_get_error for
/** An error occurred during the parse. Call yajl_get_error for
* more information about the encountered error */
yajl_status_error
} yajl_status;
Expand Down Expand Up @@ -197,7 +197,7 @@ extern "C" {
* parse.
*
* If verbose is non-zero, the message will include the JSON
* text where the error occured, along with an arrow pointing to
* text where the error occurred, along with an arrow pointing to
* the specific char.
*
* \returns A dynamically allocated string will be returned which should
Expand All @@ -216,7 +216,7 @@ extern "C" {
*
* In the event an error is encountered during parsing, this function
* affords the client a way to get the offset into the most recent
* chunk where the error occured. 0 will be returned if no error
* chunk where the error occurred. 0 will be returned if no error
* was encountered.
*/
YAJL_API size_t yajl_get_bytes_consumed(yajl_handle hand);
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/cxxsupp/builtins/fp_add_impl.inc
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static __inline fp_t __addXf3__(fp_t a, fp_t b) {
if (aSignificand == 0)
return fromRep(0);

// If partial cancellation occured, we need to left-shift the result
// If partial cancellation occurred, we need to left-shift the result
// and adjust the exponent.
if (aSignificand < implicitBit << 3) {
const int shift = rep_clz(aSignificand) - rep_clz(implicitBit << 3);
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/cxxsupp/libcxx/src/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ S i_to_string(V v) {
constexpr size_t bufsize = numeric_limits<V>::digits10 + 2; // +1 for minus, +1 for digits10
char buf[bufsize];
const auto res = to_chars(buf, buf + bufsize, v);
_LIBCPP_ASSERT_INTERNAL(res.ec == errc(), "bufsize must be large enough to accomodate the value");
_LIBCPP_ASSERT_INTERNAL(res.ec == errc(), "bufsize must be large enough to accommodate the value");
return S(buf, res.ptr);
}

Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/bfbs_gen_lua.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ Namer::Config LuaDefaultConfig() {
/*fields=*/Case::kUpperCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/"",
/*enum_variant_separator=*/"",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"__",
/*namespace_separator=*/"__",
/*object_prefix=*/"",
/*object_suffix=*/"",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/bfbs_gen_nim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ Namer::Config NimDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variable=*/Case::kLowerCamel,
/*variants=*/Case::kUpperCamel,
/*enum_variant_seperator=*/".",
/*enum_variant_separator=*/".",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"/",
/*namespace_separator=*/"/",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_dart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ static Namer::Config DartDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/".",
/*enum_variant_separator=*/".",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kSnake2,
/*namespace_seperator=*/".",
/*namespace_separator=*/".",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"$",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_go.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ static Namer::Config GoDefaultConfig() {
/*fields=*/Case::kUpperCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/"", // I.e. Concatenate.
/*enum_variant_separator=*/"", // I.e. Concatenate.
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"__",
/*namespace_separator=*/"__",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_java.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ static Namer::Config JavaDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/".",
/*enum_variant_separator=*/".",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/".",
/*namespace_separator=*/".",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_kotlin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ static Namer::Config KotlinDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/"", // I.e. Concatenate.
/*enum_variant_separator=*/"", // I.e. Concatenate.
/*escape_keywords=*/Namer::Config::Escape::BeforeConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"__",
/*namespace_separator=*/"__",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_kotlin_kmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ static Namer::Config KotlinDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kUpperCamel,
/*enum_variant_seperator=*/"", // I.e. Concatenate.
/*enum_variant_separator=*/"", // I.e. Concatenate.
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kLowerCamel,
/*namespace_seperator=*/".",
/*namespace_separator=*/".",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_python.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ static Namer::Config PythonDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variable=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/".",
/*enum_variant_separator=*/".",
/*escape_keywords=*/Namer::Config::Escape::BeforeConvertingCase,
/*namespaces=*/Case::kKeep, // Packages in python.
/*namespace_seperator=*/".",
/*namespace_separator=*/".",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_rust.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ static Namer::Config RustDefaultConfig() {
/*fields=*/Case::kKeep,
/*variables=*/Case::kUnknown, // Unused.
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/"::",
/*enum_variant_separator=*/"::",
/*escape_keywords=*/Namer::Config::Escape::BeforeConvertingCase,
/*namespaces=*/Case::kSnake,
/*namespace_seperator=*/"::",
/*namespace_separator=*/"::",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_swift.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ static Namer::Config SwiftDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kLowerCamel,
/*enum_variant_seperator=*/".",
/*enum_variant_separator=*/".",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"_",
/*namespace_separator=*/"_",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_gen_text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ struct JsonPrinter {
if (!opts.protobuf_ascii_alike) text += ',';
}

// Print a vector or an array of JSON values, comma seperated, wrapped in
// Print a vector or an array of JSON values, comma separated, wrapped in
// "[]".
template<typename Container, typename SizeT = typename Container::size_type>
const char *PrintContainer(PrintScalarTag, const Container &c, SizeT size,
Expand All @@ -126,7 +126,7 @@ struct JsonPrinter {
return nullptr;
}

// Print a vector or an array of JSON values, comma seperated, wrapped in
// Print a vector or an array of JSON values, comma separated, wrapped in
// "[]".
template<typename Container, typename SizeT = typename Container::size_type>
const char *PrintContainer(PrintPointerTag, const Container &c, SizeT size,
Expand Down
6 changes: 3 additions & 3 deletions contrib/libs/flatbuffers/src/idl_gen_ts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ Namer::Config TypeScriptDefaultConfig() {
/*fields=*/Case::kLowerCamel,
/*variables=*/Case::kLowerCamel,
/*variants=*/Case::kKeep,
/*enum_variant_seperator=*/"::",
/*enum_variant_separator=*/"::",
/*escape_keywords=*/Namer::Config::Escape::AfterConvertingCase,
/*namespaces=*/Case::kKeep,
/*namespace_seperator=*/"_",
/*namespace_separator=*/"_",
/*object_prefix=*/"",
/*object_suffix=*/"T",
/*keyword_prefix=*/"",
Expand Down Expand Up @@ -179,7 +179,7 @@ class TsGenerator : public BaseGenerator {
std::string symbolic_name;
if (definition.defined_namespace->components.size() > 0) {
path = namer_.Directories(*definition.defined_namespace,
SkipDir::TrailingPathSeperator);
SkipDir::TrailingPathSeparator);
filepath = path + ".ts";
path = namer_.Directories(*definition.defined_namespace,
SkipDir::OutputPathAndTrailingPathSeparator);
Expand Down
4 changes: 2 additions & 2 deletions contrib/libs/flatbuffers/src/idl_namer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class IdlNamer : public Namer {
std::string Variant(const EnumVal &s) const { return Variant(s.name); }

std::string EnumVariant(const EnumDef &e, const EnumVal &v) const {
return Type(e) + config_.enum_variant_seperator + Variant(v);
return Type(e) + config_.enum_variant_separator + Variant(v);
}

std::string ObjectType(const StructDef &d) const {
Expand Down Expand Up @@ -156,7 +156,7 @@ class IdlNamer : public Namer {
const std::string &str) const {
std::string ret;
if (ns != nullptr) { ret += Namespace(ns->components); }
if (!ret.empty()) ret += config_.namespace_seperator;
if (!ret.empty()) ret += config_.namespace_separator;
return ret + str;
}
};
Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/flatbuffers/src/idl_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3034,7 +3034,7 @@ CheckedError Parser::ParseProtoFields(StructDef *struct_def, bool isextend,
EXPECT(';');
} else if (IsIdent("reserved")) { // Skip these.
/**
* Reserved proto ids can be comma seperated (e.g. 1,2,4,5;)
* Reserved proto ids can be comma separated (e.g. 1,2,4,5;)
* or range based (e.g. 9 to 11;)
* or combination of them (e.g. 1,2,9 to 11,4,5;)
* It will be ended by a semicolon.
Expand Down
24 changes: 12 additions & 12 deletions contrib/libs/flatbuffers/src/namer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ enum class SkipDir {
None = 0,
// Skip prefixing the -o $output_path.
OutputPath = 1,
// Skip trailing path seperator.
TrailingPathSeperator = 2,
// Skip trailing path separator.
TrailingPathSeparator = 2,
OutputPathAndTrailingPathSeparator = 3,
};
inline SkipDir operator&(SkipDir a, SkipDir b) {
Expand Down Expand Up @@ -57,9 +57,9 @@ class Namer {
// Case style for flatbuffers-defined variants.
// e.g. `enum class Enum { MyVariant, }`
Case variants;
// Seperator for qualified enum names.
// Separator for qualified enum names.
// e.g. `Enum::MyVariant` uses `::`.
std::string enum_variant_seperator;
std::string enum_variant_separator;

// Configures, when formatting code, whether symbols are checked against
// keywords and escaped before or after case conversion. It does not make
Expand All @@ -75,8 +75,8 @@ class Namer {

// e.g. `namespace my_namespace {}`
Case namespaces;
// The seperator between namespaces in a namespace path.
std::string namespace_seperator;
// The separator between namespaces in a namespace path.
std::string namespace_separator;

// Object API.
// Native versions flatbuffers types have this prefix.
Expand Down Expand Up @@ -155,15 +155,15 @@ class Namer {
virtual std::string Namespace(const std::vector<std::string> &ns) const {
std::string result;
for (auto it = ns.begin(); it != ns.end(); it++) {
if (it != ns.begin()) result += config_.namespace_seperator;
if (it != ns.begin()) result += config_.namespace_separator;
result += Namespace(*it);
}
return result;
}

virtual std::string NamespacedType(const std::vector<std::string> &ns,
const std::string &s) const {
return (ns.empty() ? "" : (Namespace(ns) + config_.namespace_seperator)) +
return (ns.empty() ? "" : (Namespace(ns) + config_.namespace_separator)) +
Type(s);
}

Expand All @@ -182,7 +182,7 @@ class Namer {
}

// Formats `directories` prefixed with the output_path and joined with the
// right seperator. Output path prefixing and the trailing separator may be
// right separator. Output path prefixing and the trailing separator may be
// skiped using `skips`.
// Callers may want to use `EnsureDirExists` with the result.
// input_case is used to tell how to modify namespace. e.g. kUpperCamel will
Expand All @@ -193,14 +193,14 @@ class Namer {
Case input_case = Case::kUpperCamel) const {
const bool skip_output_path =
(skips & SkipDir::OutputPath) != SkipDir::None;
const bool skip_trailing_seperator =
(skips & SkipDir::TrailingPathSeperator) != SkipDir::None;
const bool skip_trailing_separator =
(skips & SkipDir::TrailingPathSeparator) != SkipDir::None;
std::string result = skip_output_path ? "" : config_.output_path;
for (auto d = directories.begin(); d != directories.end(); d++) {
result += ConvertCase(*d, config_.directories, input_case);
result.push_back(kPathSeparator);
}
if (skip_trailing_seperator && !result.empty()) result.pop_back();
if (skip_trailing_separator && !result.empty()) result.pop_back();
return result;
}

Expand Down
2 changes: 1 addition & 1 deletion contrib/libs/grpc/src/compiler/ruby_generator_string-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ inline TString RubyPackage(const grpc::protobuf::FileDescriptor* file) {

// If :: is in the package convert the Ruby formatted name
// -> A::B::C
// to use the dot seperator notation
// to use the dot separator notation
// -> A.B.C
package_name = ReplaceAll(package_name, "::", ".");
}
Expand Down
Loading