diff --git a/ci/run.ps1 b/ci/run.ps1 index 43e8008de..cd968a7ed 100644 --- a/ci/run.ps1 +++ b/ci/run.ps1 @@ -3,7 +3,7 @@ if ($LastExitCode -ne 0) { exit 0 } -# remove Chocolately, MinGW, Strawberry Perl from path, so we don't find gcc/gfortran and try to use it +# remove Chocolatey, MinGW, Strawberry Perl from path, so we don't find gcc/gfortran and try to use it # remove PostgreSQL from path so we don't pickup a broken zlib from it $env:Path = ($env:Path.Split(';') | Where-Object { $_ -notmatch 'mingw|Strawberry|Chocolatey|PostgreSQL' }) -join ';' @@ -76,7 +76,7 @@ foreach ($prog in $progs) { echo "" -echo "Ninja / MSBuld version:" +echo "Ninja / MSBuild version:" if ($env:backend -eq 'ninja') { ninja --version } else { diff --git a/cross/iphone.txt b/cross/iphone.txt index 0aaed0fa5..943b4c8aa 100644 --- a/cross/iphone.txt +++ b/cross/iphone.txt @@ -1,6 +1,6 @@ # This is a cross compilation file from OSX Yosemite to iPhone # Apple keeps changing the location and names of files so -# these might not work for you. Use the googels and xcrun. +# these might not work for you. Use the googles and xcrun. [binaries] c = ['clang', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk'] diff --git a/cross/tvos.txt b/cross/tvos.txt index 1ab0e7f67..016a58986 100644 --- a/cross/tvos.txt +++ b/cross/tvos.txt @@ -1,6 +1,6 @@ # This is a cross compilation file from OSX Yosemite to Apple tvOS # Apple keeps changing the location and names of files so -# these might not work for you. Use the googels and xcrun. +# these might not work for you. Use the googles and xcrun. [binaries] c = ['clang', '-arch', 'arm64', '-isysroot', '/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk'] diff --git a/docs/markdown/Adding-new-projects-to-wrapdb.md b/docs/markdown/Adding-new-projects-to-wrapdb.md index 0e00d1669..7c28b499d 100644 --- a/docs/markdown/Adding-new-projects-to-wrapdb.md +++ b/docs/markdown/Adding-new-projects-to-wrapdb.md @@ -170,6 +170,6 @@ The first command is to ensure the wrap is correctly fetched from the latest packagefiles. The second command configures meson and selects a set of subprojects to enable. -The Github project contains automatic CI on pushing to run the project +The GitHub project contains automatic CI on pushing to run the project and check the metadata for obvious mistakes. This can be checked from your fork before submitting a PR. diff --git a/docs/markdown/Contributing.md b/docs/markdown/Contributing.md index b3deefc53..68e943bff 100644 --- a/docs/markdown/Contributing.md +++ b/docs/markdown/Contributing.md @@ -14,7 +14,7 @@ Thank you for your interest in participating to the development. ## Submitting patches All changes must be submitted as [pull requests to -Github](https://github.com/mesonbuild/meson/pulls). This causes them +GitHub](https://github.com/mesonbuild/meson/pulls). This causes them to be run through the CI system. All submissions must pass a full CI test run before they are even considered for submission. @@ -110,7 +110,7 @@ Meson's merge strategy should fulfill the following guidelines: These goals are slightly contradictory so the correct thing to do often requires some judgement on part of the person doing the -merge. Github provides three different merge options, The rules of +merge. GitHub provides three different merge options, The rules of thumb for choosing between them goes like this: - single commit pull requests should always be rebased diff --git a/docs/markdown/Fs-module.md b/docs/markdown/Fs-module.md index e18fa5663..e230ec526 100644 --- a/docs/markdown/Fs-module.md +++ b/docs/markdown/Fs-module.md @@ -90,7 +90,7 @@ Examples: x = 'foo.txt' y = 'sub/../foo.txt' z = 'bar.txt' # a symlink pointing to foo.txt -j = 'notafile.txt' # non-existent file +j = 'notafile.txt' # nonexistent file fs.is_samepath(x, y) # true fs.is_samepath(x, z) # true @@ -99,7 +99,7 @@ fs.is_samepath(x, j) # false p = 'foo/bar' q = 'foo/bar/baz/..' r = 'buz' # a symlink pointing to foo/bar -s = 'notapath' # non-existent directory +s = 'notapath' # nonexistent directory fs.is_samepath(p, q) # true fs.is_samepath(p, r) # true diff --git a/docs/markdown/IDE-integration.md b/docs/markdown/IDE-integration.md index d31606eb7..9c16cdb09 100644 --- a/docs/markdown/IDE-integration.md +++ b/docs/markdown/IDE-integration.md @@ -260,7 +260,7 @@ The list of all _found_ dependencies can be acquired from `intro-dependencies.json`. Here, the name, version, compiler and linker arguments for a dependency are listed. -### Scanning for dependecie with `--scan-dependencies` +### Scanning for dependencies with `--scan-dependencies` It is also possible to get most dependencies used without a build directory. This can be done by running `meson introspect diff --git a/docs/markdown/MesonCI.md b/docs/markdown/MesonCI.md index 5136c2837..24f306397 100644 --- a/docs/markdown/MesonCI.md +++ b/docs/markdown/MesonCI.md @@ -32,7 +32,7 @@ The Dockerfile is generated from the `image.json` file and basically only adds a few common files and runs the `install.sh` script which should contain all distribution specific setup steps. The `common.sh` can be sourced via `source /ci/common.sh` to access some shared -functionalety. +functionality. To generate the image run `build.py -t build `. A generated image can be tested with `build.py -t test `. diff --git a/docs/markdown/Qt6-module.md b/docs/markdown/Qt6-module.md index e7b8901b3..4dbf64980 100644 --- a/docs/markdown/Qt6-module.md +++ b/docs/markdown/Qt6-module.md @@ -80,7 +80,7 @@ This method takes the following keyword arguments: - `ui_files`: (string | File | CustomTarget)[]: Passed the `uic` compiler - `moc_sources`: (string | File | CustomTarget)[]: Passed the `moc` compiler. These are converted into .moc files meant to be `#include`ed - - `moc_headers`: (string | File | CustomTarget)[]: Passied the `moc` compiler. + - `moc_headers`: (string | File | CustomTarget)[]: Passed the `moc` compiler. These will be converted into .cpp files - `include_directories` (IncludeDirectories | string)[], the directories to add to header search path for `moc` diff --git a/docs/markdown/Reference-tables.md b/docs/markdown/Reference-tables.md index f63a4732b..a32182697 100644 --- a/docs/markdown/Reference-tables.md +++ b/docs/markdown/Reference-tables.md @@ -144,7 +144,7 @@ These are provided by the `.system()` method call. | cygwin | The Cygwin environment for Windows | | darwin | Either OSX or iOS | | dragonfly | DragonFly BSD | -| emscripten | Emscripten's Javascript environment | +| emscripten | Emscripten's JavaScript environment | | freebsd | FreeBSD and its derivatives | | gnu | GNU Hurd | | haiku | | @@ -329,7 +329,7 @@ machine](#Environment-variables-per-machine) section for details. | C# | CSC | CSC | The linker is the compiler | | nasm | NASM | | Uses the C linker | -*The old environment variales are still supported, but are deprecated +*The old environment variables are still supported, but are deprecated and will be removed in a future version of Meson.* ## Environment variables per machine diff --git a/docs/markdown/Release-notes-for-0.40.0.md b/docs/markdown/Release-notes-for-0.40.0.md index 53bc9bad9..5b3410ba5 100644 --- a/docs/markdown/Release-notes-for-0.40.0.md +++ b/docs/markdown/Release-notes-for-0.40.0.md @@ -119,7 +119,7 @@ qt5_dep = dependency('qt5', modules : 'core', method : 'qmake') ## Link whole contents of static libraries The default behavior of static libraries is to discard all symbols -that are not not directly referenced. This may lead to exported +that are not directly referenced. This may lead to exported symbols being lost. Most compilers support "whole archive" linking that includes all symbols and code of a given static library. This is exposed with the `link_whole` keyword. diff --git a/docs/markdown/Release-notes-for-0.45.0.md b/docs/markdown/Release-notes-for-0.45.0.md index 9dd56e31a..1d736bbb2 100644 --- a/docs/markdown/Release-notes-for-0.45.0.md +++ b/docs/markdown/Release-notes-for-0.45.0.md @@ -97,7 +97,7 @@ int_255 = 0xFF The value `if-release` can be given for the `b_ndebug` project option. This will make the `NDEBUG` pre-compiler macro to be defined for -release type builds as if the `b_ndebug` project option had had the +release type builds as if the `b_ndebug` project option had the value `true` defined for it. ## `install_data()` defaults to `{datadir}/{projectname}` diff --git a/docs/markdown/Release-notes-for-0.46.0.md b/docs/markdown/Release-notes-for-0.46.0.md index 3de6bcd70..f17a1b7b6 100644 --- a/docs/markdown/Release-notes-for-0.46.0.md +++ b/docs/markdown/Release-notes-for-0.46.0.md @@ -269,7 +269,7 @@ helper = static_library( final = shared_library( 'final', ['final.c'], - dependencyes : dep, + dependencies : dep, ) ``` diff --git a/docs/markdown/Release-notes-for-0.48.0.md b/docs/markdown/Release-notes-for-0.48.0.md index 144355ddd..d8dbeac19 100644 --- a/docs/markdown/Release-notes-for-0.48.0.md +++ b/docs/markdown/Release-notes-for-0.48.0.md @@ -12,7 +12,7 @@ use, such as *debug* and *minsize*. There is also a *plain* type that adds nothing by default but instead makes it the user's responsibility to add everything by hand. This works but is a bit tedious. -In this release we have added new new options to manually toggle e.g. +In this release we have added new options to manually toggle e.g. optimization levels and debug info so those can be changed independently of other options. For example by default the debug buildtype has no optimization enabled at all. If you wish to use GCC's @@ -79,7 +79,7 @@ which has special properties such as not buffering stdout and serializing all targets in this pool. The primary use-case for this is to be able to run external commands -that take a long time to exeute. Without setting this, the user does +that take a long time to execute. Without setting this, the user does not receive any feedback about what the program is doing. ## `dependency(version:)` now applies to all dependency types diff --git a/docs/markdown/Release-notes-for-0.50.0.md b/docs/markdown/Release-notes-for-0.50.0.md index 9579c331c..d0f2d7609 100644 --- a/docs/markdown/Release-notes-for-0.50.0.md +++ b/docs/markdown/Release-notes-for-0.50.0.md @@ -227,7 +227,7 @@ Furthermore, the `filename` and `install_filename` keys in the targets introspection are now lists of strings with identical length. The `--target-files` option is now deprecated, since the same information -can be acquired from the `--tragets` introspection API. +can be acquired from the `--targets` introspection API. ## Meson file rewriter @@ -317,7 +317,7 @@ A complete introspection dump is also stored in the `meson-info` directory. This dump will be (re)generated each time meson updates the configuration of the build directory. -Additionlly the format of `meson introspect target` was changed: +Additionally the format of `meson introspect target` was changed: - New: the `sources` key. It stores the source files of a target and their compiler parameters. - New: the `defined_in` key. It stores the Meson file where a target is defined diff --git a/docs/markdown/Release-notes-for-0.52.0.md b/docs/markdown/Release-notes-for-0.52.0.md index 5e574bae7..5095d30e3 100644 --- a/docs/markdown/Release-notes-for-0.52.0.md +++ b/docs/markdown/Release-notes-for-0.52.0.md @@ -94,7 +94,7 @@ linker internal re-architecture this has become possible ## Compiler and dynamic linker representation split -0.52.0 includes a massive refactor of the representaitons of compilers to +0.52.0 includes a massive refactor of the representations of compilers to tease apart the representations of compilers and dynamic linkers (ld). This fixes a number of compiler/linker combinations. In particular this fixes use GCC and vanilla clang on macOS. @@ -160,7 +160,7 @@ lib2 = static_library(other_sources, link_whole : lib1, install : true) ``` - `link_with:` of a static library with an uninstalled static library. In the example below, lib2 now implicitly promote `link_with:` to `link_whole:` because -the installed lib2 would oterhwise be unusable. +the installed lib2 would otherwise be unusable. ```meson lib1 = static_library(sources, install : false) lib2 = static_library(sources, link_with : lib1, install : true) diff --git a/docs/markdown/Release-notes-for-0.54.0.md b/docs/markdown/Release-notes-for-0.54.0.md index f9bfcf6d3..833818013 100644 --- a/docs/markdown/Release-notes-for-0.54.0.md +++ b/docs/markdown/Release-notes-for-0.54.0.md @@ -286,7 +286,7 @@ This old behavior is inconsistent with the way Autotools works, which undermines the purpose of distro-integration that is the only reason environment variables are supported at all in Meson. The new behavior is not quite the same, but doesn't conflict: Meson doesn't always -repond to an environment when Autoconf would, but when it does it +respond to an environment when Autoconf would, but when it does it interprets it as Autotools would. ## Added 'pkg_config_libdir' property diff --git a/docs/markdown/Release-notes-for-0.55.0.md b/docs/markdown/Release-notes-for-0.55.0.md index 8d3b4bad4..1b086b26b 100644 --- a/docs/markdown/Release-notes-for-0.55.0.md +++ b/docs/markdown/Release-notes-for-0.55.0.md @@ -93,7 +93,7 @@ Meson now supports passing configuration options to CMake and overriding certain build details extracted from the CMake subproject. The new CMake configuration options object is very similar to the -[[@cfg_data]] object object returned +[[@cfg_data]] object returned by [[configuration_data]]. It is generated by the `subproject_options` function @@ -175,7 +175,7 @@ changed), but is now deprecated. ## String concatenation in meson_options.txt It is now possible to use string concatenation (with the `+` -opperator) in the `meson_options.txt` file. This allows splitting long +operator) in the `meson_options.txt` file. This allows splitting long option descriptions. ```meson diff --git a/docs/markdown/Release-notes-for-0.59.0.md b/docs/markdown/Release-notes-for-0.59.0.md index 8a04d343d..5cdffe867 100644 --- a/docs/markdown/Release-notes-for-0.59.0.md +++ b/docs/markdown/Release-notes-for-0.59.0.md @@ -196,7 +196,7 @@ executable( ## New `build target` methods The [[@build_tgt]] object now supports -the following two functions, to ensure feature compatebility with +the following two functions, to ensure feature compatibility with [[@external_program]] objects: - `found()`: Always returns `true`. This function is meant @@ -205,7 +205,7 @@ the following two functions, to ensure feature compatebility with use-cases where an executable is used instead of an external program. - `path()`: **(deprecated)** does the exact same as `full_path()`. - **NOTE:** This function is solely kept for compatebility + **NOTE:** This function is solely kept for compatibility with `external program` objects. It will be removed once the, also deprecated, corresponding `path()` function in the `external program` object is removed. diff --git a/docs/markdown/Release-notes-for-0.60.0.md b/docs/markdown/Release-notes-for-0.60.0.md index 4bf342c9d..2debfcabf 100644 --- a/docs/markdown/Release-notes-for-0.60.0.md +++ b/docs/markdown/Release-notes-for-0.60.0.md @@ -286,7 +286,7 @@ be flattened. ## The qt modules now accept generated outputs as inputs for qt.compile_* -This means you can uset `custom_target`, custom_target indices +This means you can use `custom_target`, custom_target indices (`custom_target[0]`, for example), or the output of `generator.process` as inputs to the various `qt.compile_*` methods. @@ -357,7 +357,7 @@ are found, and silently continue if Visual Studio activation fails. `meson setup --vsenv` command line argument can now be used to force Visual Studio activation even when other compilers are found. It also make Meson abort with an -error message when activation fails. This is especially useful for Github Action +error message when activation fails. This is especially useful for GitHub Actions because their Windows images have gcc in their PATH by default. `--vsenv` is set by default when using `vs` backend. diff --git a/docs/markdown/Release-notes-for-0.62.0.md b/docs/markdown/Release-notes-for-0.62.0.md index cc32ac688..9a7468fe2 100644 --- a/docs/markdown/Release-notes-for-0.62.0.md +++ b/docs/markdown/Release-notes-for-0.62.0.md @@ -19,9 +19,9 @@ directory, that file is loaded by gdb automatically. ## Print modified environment variables with `meson devenv --dump` -With `--dump` option, all envorinment variables that have been modified are +With `--dump` option, all environment variables that have been modified are printed instead of starting an interactive shell. It can be used by shell -scripts that wish to setup their environment themself. +scripts that wish to setup their environment themselves. ## New `method` and `separator` kwargs on `environment()` and `meson.add_devenv()` diff --git a/docs/markdown/Release-notes-for-0.63.0.md b/docs/markdown/Release-notes-for-0.63.0.md index 9f8da3e1f..3b47ff4eb 100644 --- a/docs/markdown/Release-notes-for-0.63.0.md +++ b/docs/markdown/Release-notes-for-0.63.0.md @@ -112,7 +112,7 @@ and the resulting directory tree will look like ## JAR Resources The ability to add resources to a JAR has been added. Use the `java_resources` -keyword argument. It takes a `sturctured_src` object. +keyword argument. It takes a `structured_src` object. ```meson jar( diff --git a/docs/markdown/Release-notes-for-1.0.0.md b/docs/markdown/Release-notes-for-1.0.0.md index cc29d16d7..42c05ddab 100644 --- a/docs/markdown/Release-notes-for-1.0.0.md +++ b/docs/markdown/Release-notes-for-1.0.0.md @@ -54,7 +54,7 @@ Meson function name styling. The `bindgen` method of the `rust` module now accepts a dependencies argument. Any include paths in these dependencies will be passed to the underlying call to -`clang`, and the call to `bindgen` will correctly depend on any generatd sources. +`clang`, and the call to `bindgen` will correctly depend on any generated sources. ## String arguments to the rust.bindgen include_directories argument diff --git a/docs/markdown/Release-procedure.md b/docs/markdown/Release-procedure.md index a7ef689c6..4a6e7f8a7 100644 --- a/docs/markdown/Release-procedure.md +++ b/docs/markdown/Release-procedure.md @@ -24,7 +24,7 @@ Before a major release is made a stable branch will be made, and will be made, and all bugs effecting the RC will be assigned to this milestone. Patches fixing bugs in the milestone will be picked to the stable branch, and normal development will continue on the master -branch. Every week after after this a new release candidate will be +branch. Every week after this a new release candidate will be made until all bugs are resolved in that milestone. When all of the bugs are fixed the 0.X.0 release will be made. diff --git a/docs/markdown/Rewriter.md b/docs/markdown/Rewriter.md index 535093b86..82f86353d 100644 --- a/docs/markdown/Rewriter.md +++ b/docs/markdown/Rewriter.md @@ -26,7 +26,7 @@ mode", on the other hand, is meant to be used by external programs The rewriter itself is considered stable, however the user interface and the "script mode" API might change in the future. These changes -may also break backwards comaptibility to older releases. +may also break backwards compatibility to older releases. We are also open to suggestions for API improvements. diff --git a/docs/markdown/Rust-module.md b/docs/markdown/Rust-module.md index 031b62a16..43dbb07d7 100644 --- a/docs/markdown/Rust-module.md +++ b/docs/markdown/Rust-module.md @@ -68,7 +68,7 @@ generated = rust.bindgen( ) ``` -If the header depeneds on generated headers, those headers must be passed to +If the header depends on generated headers, those headers must be passed to `bindgen` as well to ensure proper dependency ordering, static headers do not need to be passed, as a proper depfile is generated: diff --git a/docs/markdown/Simple-comparison.md b/docs/markdown/Simple-comparison.md index a8ce17bd8..47faa79ec 100644 --- a/docs/markdown/Simple-comparison.md +++ b/docs/markdown/Simple-comparison.md @@ -29,7 +29,7 @@ how much time the build system takes to check the states of all source files because if any of them could potentially cause a rebuild. Since CMake has two different backends, Make and Ninja, we ran the -tests on both of them. All tests were run on a 2011 era Macbook Pro +tests on both of them. All tests were run on a 2011 era MacBook Pro running Ubuntu 13/04. The tests were run multiple times and we always took the fastest time. diff --git a/docs/markdown/Subprojects.md b/docs/markdown/Subprojects.md index 09ff8bf1e..78239b9fc 100644 --- a/docs/markdown/Subprojects.md +++ b/docs/markdown/Subprojects.md @@ -219,7 +219,7 @@ the following command-line options: * **--wrap-mode=nodownload** Meson will not use the network to download any subprojects or - fetch any wrap information. Only pre-existing sources will be used. + fetch any wrap information. Only preexisting sources will be used. This is useful (mostly for distros) when you want to only use the sources provided by a software release, and want to manually handle or provide missing dependencies. diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 523ee851c..f63125e42 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -766,7 +766,7 @@ additive_expression: multiplicative_expression | (additive_expression additive_o additive_operator: "+" | "-" argument_list: positional_arguments ["," keyword_arguments] | keyword_arguments array_literal: "[" [expression_list] "]" -assignment_statement: expression asssignment_operator expression +assignment_statement: expression assignment_operator expression assignment_operator: "=" | "+=" binary_literal: "0b" BINARY_NUMBER BINARY_NUMBER: /[01]+/ diff --git a/docs/markdown/Users.md b/docs/markdown/Users.md index 929d645d8..1457d12af 100644 --- a/docs/markdown/Users.md +++ b/docs/markdown/Users.md @@ -107,7 +107,7 @@ format files - [Marker](https://github.com/fabiocolacio/Marker), a GTK-3 markdown editor - [Mesa](https://mesa3d.org/), an open source graphics driver project - [Miniz](https://github.com/richgel999/miniz), a zlib replacement library - - [MiracleCast](https://github.com/albfan/miraclecast), connect external monitors to your system via Wifi-Display specification aka Miracast + - [MiracleCast](https://github.com/albfan/miraclecast), connect external monitors to your system via WiFi-Display specification aka Miracast - [mpv](https://github.com/mpv-player/mpv), a free, open source, and cross-platform media player - [mrsh](https://github.com/emersion/mrsh), a minimal POSIX shell - [Nautilus](https://gitlab.gnome.org/GNOME/nautilus), the GNOME file manager diff --git a/docs/markdown/Vala.md b/docs/markdown/Vala.md index 919e305ce..fdc4fbae4 100644 --- a/docs/markdown/Vala.md +++ b/docs/markdown/Vala.md @@ -112,7 +112,7 @@ executable('app_name', sources, dependencies: dependencies) ``` Using `[GtkTemplate]` also requires the GTK+ user interface definition -files to be built in to the binary as GResources. For completeness, +files to be built into the binary as GResources. For completeness, the next example shows this: ```meson @@ -177,7 +177,7 @@ repository](https://gitlab.gnome.org/GNOME/vala-extra-vapis) is a community maintained repository of VAPIs that are not distributed. Developers use the repository to share early work on new bindings and improvements to existing bindings. So the VAPIs can frequently change. -It is recommended VAPIs from this repository are copied in to your +It is recommended VAPIs from this repository are copied into your project's source files. This also works well for starting to write new bindings before they diff --git a/docs/markdown/Windows-module.md b/docs/markdown/Windows-module.md index 3d24d7631..c6d52841d 100644 --- a/docs/markdown/Windows-module.md +++ b/docs/markdown/Windows-module.md @@ -20,7 +20,7 @@ Compiles Windows `rc` files specified in the positional arguments. Returns a list of `CustomTarget` objects that you put in the list of sources for the target you want to have the resources in. -*Since 0.61.0* CustomTargetIndexs and CustomTargets with more than out output +*Since 0.61.0* CustomTargetIndexes and CustomTargets with more than out output *may be used as positional arguments. This method has the following keyword arguments: diff --git a/docs/markdown/Yaml-RefMan.md b/docs/markdown/Yaml-RefMan.md index 1bb800f8d..287279173 100644 --- a/docs/markdown/Yaml-RefMan.md +++ b/docs/markdown/Yaml-RefMan.md @@ -34,7 +34,7 @@ To link to functions, the function name should be put into the tag: `[[]]`. Methods (for all kinds of objects, including modules) can be linked to like this: `[[.]]`. -To link to objects themself, the `[[@]]` syntax can be used. +To link to objects themselves, the `[[@]]` syntax can be used. These tags do **not** need to be put in inline code! A hotdoc extension handles the formatting here. If tags need to be placed (for instance, to include reference @@ -69,7 +69,7 @@ module has its own directory. The module itself **must** be in a file called `module.yaml`. All objects returned by the module are then located next to this file. -The name of the YAML files themself are ignored (with the exception of +The name of the YAML files themselves are ignored (with the exception of `module.yaml`) and carry no specific meaning. However, it is recommended to name the YAML files after the `name` entry of the object. @@ -81,7 +81,7 @@ is to make inheriting functions and arguments easier. # YAML schema -The YAML files themself are structured as follows: +The YAML files themselves are structured as follows: ## Functions diff --git a/docs/markdown/_include_qt_base.md b/docs/markdown/_include_qt_base.md index 46fc43a63..0a1192426 100644 --- a/docs/markdown/_include_qt_base.md +++ b/docs/markdown/_include_qt_base.md @@ -71,7 +71,7 @@ This method takes the following keyword arguments: - `qresources` (string | File)[]: Passed to the RCC compiler - `ui_files`: (string | File | CustomTarget)[]: Passed the `uic` compiler - `moc_sources`: (string | File | CustomTarget)[]: Passed the `moc` compiler. These are converted into .moc files meant to be `#include`ed - - `moc_headers`: (string | File | CustomTarget)[]: Passied the `moc` compiler. These will be converted into .cpp files + - `moc_headers`: (string | File | CustomTarget)[]: Passed the `moc` compiler. These will be converted into .cpp files - `include_directories` (IncludeDirectories | string)[], the directories to add to header search path for `moc` - `moc_extra_arguments` string[]: any additional arguments to `moc`. Since v0.44.0. - `uic_extra_arguments` string[]: any additional arguments to `uic`. Since v0.49.0. diff --git a/docs/markdown/i18n-module.md b/docs/markdown/i18n-module.md index a1efa5aa8..a939a3473 100644 --- a/docs/markdown/i18n-module.md +++ b/docs/markdown/i18n-module.md @@ -27,7 +27,7 @@ argument which is the name of the gettext module. * `preset`: (*Added 0.37.0*) name of a preset list of arguments, current option is `'glib'`, see [source](https://github.com/mesonbuild/meson/blob/master/mesonbuild/modules/i18n.py) - for for their value + for their value * `install`: (*Added 0.43.0*) if false, do not install the built translations. * `install_dir`: (*Added 0.50.0*) override default install location, default is `localedir` diff --git a/docs/refman/generatormd.py b/docs/refman/generatormd.py index 6029016cf..87e54181d 100644 --- a/docs/refman/generatormd.py +++ b/docs/refman/generatormd.py @@ -105,7 +105,7 @@ class GeneratorMD(GeneratorBase): def _link_to_object(self, obj: T.Union[Function, Object], in_code_block: bool = False) -> str: ''' - Generate a palaceholder tag for the the function/method/object documentation. + Generate a palaceholder tag for the function/method/object documentation. This tag is then replaced in the custom hotdoc plugin. ''' prefix = '#' if in_code_block else '' diff --git a/docs/refman/loaderbase.py b/docs/refman/loaderbase.py index 3011126bc..e64134f55 100644 --- a/docs/refman/loaderbase.py +++ b/docs/refman/loaderbase.py @@ -108,7 +108,7 @@ class _Resolver: for obj in func.returns.resolved: obj.data_type.returned_by += [func] - # Handle kwargs inehritance + # Handle kwargs inheritance for base_name in func.kwargs_inherit: base_name = base_name.strip() assert base_name in self.func_map, f'Unknown base function `{base_name}` for {func.name}' @@ -123,7 +123,7 @@ class _Resolver: missing = {k: v for k, v in base.kwargs.items() if k in base_keys - curr_keys} func.kwargs.update(missing) - # Handloe other args inheritance + # Handle other args inheritance _T = T.TypeVar('_T', bound=T.Union[ArgBase, T.List[PosArg]]) def resolve_inherit(name: str, curr: _T, resolver: T.Callable[[Function], _T]) -> _T: if name and not curr: diff --git a/docs/yaml/elementary/str.yml b/docs/yaml/elementary/str.yml index 7b60e1e94..00587cbd6 100644 --- a/docs/yaml/elementary/str.yml +++ b/docs/yaml/elementary/str.yml @@ -39,7 +39,7 @@ methods: # str.replace(old, new) - name: replace - description: Search all occurrences of `old` and and replace it with `new` + description: Search all occurrences of `old` and replace it with `new` returns: str since: 0.58.0 example: | diff --git a/docs/yaml/functions/_build_target_base.yaml b/docs/yaml/functions/_build_target_base.yaml index 767c4da6a..8b169c8f7 100644 --- a/docs/yaml/functions/_build_target_base.yaml +++ b/docs/yaml/functions/_build_target_base.yaml @@ -89,7 +89,7 @@ kwargs: default: false description: | When set to true flags this target as a GUI application - on platforms where this makes a differerence, **deprecated** since + on platforms where this makes a difference, **deprecated** since 0.56.0, use `win_subsystem` instead. link_args: @@ -299,6 +299,6 @@ kwargs: If it is a [[shared_library]] it defaults to "lib", and may be "lib", "dylib", "cdylib", or "proc-macro". If "lib" then Rustc will pick a default, "cdylib" means a C ABI library, "dylib" means a Rust ABI, and - "proc-macro" is a special rust proceedural macro crate. + "proc-macro" is a special rust procedural macro crate. "proc-macro" is new in 0.62.0. diff --git a/docs/yaml/functions/install_headers.yaml b/docs/yaml/functions/install_headers.yaml index 50e1c5500..65489d24f 100644 --- a/docs/yaml/functions/install_headers.yaml +++ b/docs/yaml/functions/install_headers.yaml @@ -67,6 +67,6 @@ kwargs: since: 0.63.0 default: false description: | - Disable stripping child-direcories from header files when installing. + Disable stripping child-directories from header files when installing. This is equivalent to GNU Automake's `nobase` option. diff --git a/docs/yaml/functions/project.yaml b/docs/yaml/functions/project.yaml index a18e8780b..59595cd87 100644 --- a/docs/yaml/functions/project.yaml +++ b/docs/yaml/functions/project.yaml @@ -82,7 +82,7 @@ kwargs: For backwards compatibility reasons you can also pass an array of licenses here. This is not recommended, as it is ambiguous: `license : - ['Apache-2.0', 'GPL-2.0-only']` instead use an SPDX espression: `license + ['Apache-2.0', 'GPL-2.0-only']` instead use an SPDX expression: `license : 'Apache-2.0 OR GPL-2.0-only'`, which makes it clear that the license mean OR, not AND. diff --git a/docs/yaml/objects/build_tgt.yaml b/docs/yaml/objects/build_tgt.yaml index 6ca43f30b..73b9b5da7 100644 --- a/docs/yaml/objects/build_tgt.yaml +++ b/docs/yaml/objects/build_tgt.yaml @@ -53,7 +53,7 @@ methods: deprecated: 0.59.0 description: | Does the exact same as [[build_tgt.full_path]]. **NOTE**: This - function is solely kept for compatebility with [[@external_program]] objects. + function is solely kept for compatibility with [[@external_program]] objects. It will be removed once the, also deprecated, corresponding `path()` function in the [[@external_program]] object is removed. diff --git a/docs/yaml/objects/compiler.yaml b/docs/yaml/objects/compiler.yaml index abf86aa94..4bf69c3b1 100644 --- a/docs/yaml/objects/compiler.yaml +++ b/docs/yaml/objects/compiler.yaml @@ -485,7 +485,7 @@ methods: default: "'off'" description: | Supported values: - - `'off'`: Quietely ignore unsupported arguments + - `'off'`: Quietly ignore unsupported arguments - `'warn'`: Print a warning for unsupported arguments - `'require'`: Abort if at least one argument is not supported @@ -544,7 +544,7 @@ methods: # default: "'off'" # description: | # Supported values: - # - `'off'`: Quietely ignore unsupported arguments + # - `'off'`: Quietly ignore unsupported arguments # - `'warn'`: Print a warning for unsupported arguments # - `'require'`: Abort if at least one argument is not supported diff --git a/docs/yaml/objects/module.yaml b/docs/yaml/objects/module.yaml index cd98faa5e..518c1aa94 100644 --- a/docs/yaml/objects/module.yaml +++ b/docs/yaml/objects/module.yaml @@ -4,7 +4,7 @@ description: | Base type for all modules. Modules provide their own specific implementation methods, but all modules - proivide the following methods: + provide the following methods: methods: - name: found diff --git a/manual tests/12 wrap mirror/meson.build b/manual tests/12 wrap mirror/meson.build index 6645bdf26..d29957728 100644 --- a/manual tests/12 wrap mirror/meson.build +++ b/manual tests/12 wrap mirror/meson.build @@ -1,4 +1,4 @@ project('downloader') -# this test will timeout, showing that a subdomain isn't caught as masquarading url +# this test will timeout, showing that a subdomain isn't caught as masquerading url subproject('zlib') diff --git a/manual tests/3 git wrap/meson.build b/manual tests/3 git wrap/meson.build index 7fd5083ee..14b06714e 100644 --- a/manual tests/3 git wrap/meson.build +++ b/manual tests/3 git wrap/meson.build @@ -1,4 +1,4 @@ -project('git outcheckker', 'c') +project('git outchecker', 'c') sp = subproject('samplesubproject') diff --git a/manual tests/4 standalone binaries/readme.txt b/manual tests/4 standalone binaries/readme.txt index b689779af..39d21f3c6 100644 --- a/manual tests/4 standalone binaries/readme.txt +++ b/manual tests/4 standalone binaries/readme.txt @@ -1,5 +1,5 @@ This directory shows how you can build redistributable binaries. On -OSX this menans building an app bundle and a .dmg installer. On Linux +OSX this means building an app bundle and a .dmg installer. On Linux it means building an archive that bundles its dependencies. On Windows it means building an .exe installer. diff --git a/manual tests/6 hg wrap/meson.build b/manual tests/6 hg wrap/meson.build index c7ac004ca..d0e7550a5 100644 --- a/manual tests/6 hg wrap/meson.build +++ b/manual tests/6 hg wrap/meson.build @@ -1,4 +1,4 @@ -project('Mercurial outcheckker', 'c') +project('Mercurial outchecker', 'c') sp = subproject('samplesubproject') diff --git a/mesonbuild/arglist.py b/mesonbuild/arglist.py index 475d95478..cb74d3185 100644 --- a/mesonbuild/arglist.py +++ b/mesonbuild/arglist.py @@ -198,13 +198,13 @@ class CompilerArgs(T.MutableSequence[str]): """Returns whether the argument can be safely de-duped. In addition to these, we handle library arguments specially. - With GNU ld, we surround library arguments with -Wl,--start/end-gr -> Dedupoup + With GNU ld, we surround library arguments with -Wl,--start/end-group to recursively search for symbols in the libraries. This is not needed with other linkers. """ # A standalone argument must never be deduplicated because it is - # defined by what comes _after_ it. Thus dedupping this: + # defined by what comes _after_ it. Thus deduping this: # -D FOO -D BAR # would yield either # -D FOO BAR diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py index 7484e0427..68e2b6e52 100644 --- a/mesonbuild/ast/interpreter.py +++ b/mesonbuild/ast/interpreter.py @@ -352,7 +352,7 @@ class AstInterpreter(InterpreterBase): return None # Loop detected id_loop_detect += [node.ast_id] - # Try to evealuate the value of the node + # Try to evaluate the value of the node if isinstance(node, IdNode): result = quick_resolve(node) @@ -421,7 +421,7 @@ class AstInterpreter(InterpreterBase): else: args = [args_raw] - flattend_args = [] # type: T.List[TYPE_nvar] + flattened_args = [] # type: T.List[TYPE_nvar] # Resolve the contents of args for i in args: @@ -430,18 +430,18 @@ class AstInterpreter(InterpreterBase): if resolved is not None: if not isinstance(resolved, list): resolved = [resolved] - flattend_args += resolved + flattened_args += resolved elif isinstance(i, (str, bool, int, float)) or include_unknown_args: - flattend_args += [i] - return flattend_args + flattened_args += [i] + return flattened_args def flatten_kwargs(self, kwargs: T.Dict[str, TYPE_nvar], include_unknown_args: bool = False) -> T.Dict[str, TYPE_nvar]: - flattend_kwargs = {} + flattened_kwargs = {} for key, val in kwargs.items(): if isinstance(val, BaseNode): resolved = self.resolve_node(val, include_unknown_args) if resolved is not None: - flattend_kwargs[key] = resolved + flattened_kwargs[key] = resolved elif isinstance(val, (str, bool, int, float)) or include_unknown_args: - flattend_kwargs[key] = val - return flattend_kwargs + flattened_kwargs[key] = val + return flattened_kwargs diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py index e811f11db..3158aa2ee 100644 --- a/mesonbuild/ast/introspection.py +++ b/mesonbuild/ast/introspection.py @@ -263,9 +263,9 @@ class IntrospectionInterpreter(AstInterpreter): # Pop the first element if the function is a build target function if isinstance(curr, FunctionNode) and curr.func_name in BUILD_TARGET_FUNCTIONS: arg_nodes.pop(0) - elemetary_nodes = [x for x in arg_nodes if isinstance(x, (str, StringNode))] + elementary_nodes = [x for x in arg_nodes if isinstance(x, (str, StringNode))] inqueue += [x for x in arg_nodes if isinstance(x, (FunctionNode, ArrayNode, IdNode, ArithmeticNode))] - if elemetary_nodes: + if elementary_nodes: res += [curr] return res diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index d8b05b1b2..2522b62d3 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -545,7 +545,7 @@ class NinjaBackend(backends.Backend): # We want to match 'Note: including file: ' in the line # 'Note: including file: d:\MyDir\include\stdio.h', however # different locales have different messages with a different - # number of colons. Match up to the the drive name 'd:\'. + # number of colons. Match up to the drive name 'd:\'. # When used in cross compilation, the path separator is a # forward slash rather than a backslash so handle both; i.e. # the path is /MyDir/include/stdio.h. @@ -750,7 +750,7 @@ class NinjaBackend(backends.Backend): ''' Adds the source file introspection information for a language of a target - Internal introspection storage formart: + Internal introspection storage format: self.introspection_data = { '': { : { @@ -830,7 +830,7 @@ class NinjaBackend(backends.Backend): self.generate_swift_target(target) return - # Pre-existing target C/C++ sources to be built; dict of full path to + # Preexisting target C/C++ sources to be built; dict of full path to # source relative to build root and the original File object. target_sources: T.MutableMapping[str, File] @@ -839,7 +839,7 @@ class NinjaBackend(backends.Backend): generated_sources: T.MutableMapping[str, File] # List of sources that have been transpiled from a DSL (like Vala) into - # a language that is haneled below, such as C or C++ + # a language that is handled below, such as C or C++ transpiled_sources: T.List[str] if 'vala' in target.compilers: @@ -879,7 +879,7 @@ class NinjaBackend(backends.Backend): mlog.log(mlog.red('FIXME'), msg) # Get a list of all generated headers that will be needed while building - # this target's sources (generated sources and pre-existing sources). + # this target's sources (generated sources and preexisting sources). # This will be set as dependencies of all the target's sources. At the # same time, also deal with generated sources that need to be compiled. generated_source_files = [] @@ -964,7 +964,7 @@ class NinjaBackend(backends.Backend): o, s = self.generate_single_compile(target, src, 'vala', [], header_deps) obj_list.append(o) - # Generate compile targets for all the pre-existing sources for this target + # Generate compile targets for all the preexisting sources for this target for src in target_sources.values(): if not self.environment.is_header(src): if self.environment.is_llvm_ir(src): @@ -1035,8 +1035,8 @@ class NinjaBackend(backends.Backend): rule_name = 'depscan' scan_sources = self.select_sources_to_scan(compiled_sources) - # Dump the sources as a json list. This avoids potential probllems where - # the number of sources passed to depscan exceedes the limit imposed by + # Dump the sources as a json list. This avoids potential problems where + # the number of sources passed to depscan exceeds the limit imposed by # the OS. with open(json_abs, 'w', encoding='utf-8') as f: json.dump(scan_sources, f) @@ -1294,7 +1294,7 @@ class NinjaBackend(backends.Backend): if build.rulename in self.ruledict: build.rule = self.ruledict[build.rulename] else: - mlog.warning(f"build statement for {build.outfilenames} references non-existent rule {build.rulename}") + mlog.warning(f"build statement for {build.outfilenames} references nonexistent rule {build.rulename}") def write_rules(self, outfile): for b in self.build_elements: @@ -1505,7 +1505,7 @@ class NinjaBackend(backends.Backend): T.Tuple[T.MutableMapping[str, File], T.MutableMapping]]: """ Splits the target's sources into .vala, .gs, .vapi, and other sources. - Handles both pre-existing and generated sources. + Handles both preexisting and generated sources. Returns a tuple (vala, vapi, others) each of which is a dictionary with the keys being the path to the file (relative to the build directory) @@ -1515,7 +1515,7 @@ class NinjaBackend(backends.Backend): vapi: T.MutableMapping[str, File] = OrderedDict() others: T.MutableMapping[str, File] = OrderedDict() othersgen: T.MutableMapping[str, File] = OrderedDict() - # Split pre-existing sources + # Split preexisting sources for s in t.get_sources(): # BuildTarget sources are always mesonlib.File files which are # either in the source root, or generated with configure_file and @@ -1928,7 +1928,7 @@ class NinjaBackend(backends.Backend): # before that it would treat linking two static libraries as # whole-archive linking. However, to make this work we have to disable # bundling, which can't be done until 1.63.0… So for 1.61–1.62 we just - # have to hope that the default cases of +whole-archive are sufficent. + # have to hope that the default cases of +whole-archive are sufficient. # See: https://github.com/rust-lang/rust/issues/99429 if mesonlib.version_compare(rustc.version, '>= 1.63.0'): whole_archive = ':+whole-archive,-bundle' @@ -2624,7 +2624,7 @@ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47485''')) # has pdb file called foo.pdb. So will a static library # foo.lib, which clobbers both foo.pdb _and_ the dll file's # export library called foo.lib (by default, currently we name - # them libfoo.a to avoidt this issue). You can give the files + # them libfoo.a to avoid this issue). You can give the files # unique names such as foo_exe.pdb but VC also generates a # bunch of other files which take their names from the target # basename (i.e. "foo") and stomp on each other. diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 37d0365ce..86c50ece5 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -1436,7 +1436,7 @@ class Vs2010Backend(backends.Backend): else: inc_dirs = file_inc_dirs self.add_include_dirs(lang, inc_cl, inc_dirs) - # XXX: Do we need to set the object file name name here too? + # XXX: Do we need to set the object file name here too? previous_objects = [] if self.has_objects(objects, additional_objects, gen_objs): diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 5408b2165..2f325aef5 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -740,7 +740,7 @@ class BuildTarget(Target): self.rpath_dirs_to_remove: T.Set[bytes] = set() self.process_sourcelist(sources) # Objects can be: - # 1. Pre-existing objects provided by the user with the `objects:` kwarg + # 1. Preexisting objects provided by the user with the `objects:` kwarg # 2. Compiled objects created by and extracted from another target self.process_objectlist(objects) self.process_kwargs(kwargs) @@ -811,8 +811,8 @@ class BuildTarget(Target): """Split sources into generated and static sources. Sources can be: - 1. Pre-existing source files in the source tree (static) - 2. Pre-existing sources generated by configure_file in the build tree. + 1. Preexisting source files in the source tree (static) + 2. Preexisting sources generated by configure_file in the build tree. (static as they are only regenerated if meson itself is regenerated) 3. Sources files generated by another target or a Generator (generated) """ @@ -884,7 +884,7 @@ class BuildTarget(Target): missing_languages: T.List[str] = [] if not any([self.sources, self.generated, self.objects, self.structured_sources]): return missing_languages - # Pre-existing sources + # Preexisting sources sources: T.List['FileOrString'] = list(self.sources) generated = self.generated.copy() @@ -1654,7 +1654,7 @@ You probably should put it in link_with instead.''') '\n ' f'If shared_module() was used for {link_target.name} because it has references to undefined symbols,' '\n ' - 'use shared_libary() with `override_options: [\'b_lundef=false\']` instead.') + 'use shared_library() with `override_options: [\'b_lundef=false\']` instead.') link_target.force_soname = True class Generator(HoldableObject): diff --git a/mesonbuild/cmake/common.py b/mesonbuild/cmake/common.py index accb7c937..32a8c6836 100644 --- a/mesonbuild/cmake/common.py +++ b/mesonbuild/cmake/common.py @@ -146,7 +146,7 @@ def cmake_defines_to_args(raw: T.Any, permissive: bool = False) -> T.List[str]: return res -# TODO: this functuin will become obsolete once the `cmake_args` kwarg is dropped +# TODO: this function will become obsolete once the `cmake_args` kwarg is dropped def check_cmake_args(args: T.List[str]) -> T.List[str]: res = [] # type: T.List[str] dis = ['-D' + x for x in blacklist_cmake_defs] diff --git a/mesonbuild/cmake/traceparser.py b/mesonbuild/cmake/traceparser.py index 5fcba806a..7f31f137f 100644 --- a/mesonbuild/cmake/traceparser.py +++ b/mesonbuild/cmake/traceparser.py @@ -288,7 +288,7 @@ class CMakeTraceParser: raise CMakeException(f'CMake: {function}() {error}\n{tline}') def _cmake_set(self, tline: CMakeTraceLine) -> None: - """Handler for the CMake set() function in all variaties. + """Handler for the CMake set() function in all varieties. comes in three flavors: set( [PARENT_SCOPE]) @@ -509,7 +509,7 @@ class CMakeTraceParser: targets += curr.split(';') if not args: - return self._gen_exception('set_property', 'faild to parse argument list', tline) + return self._gen_exception('set_property', 'failed to parse argument list', tline) if len(args) == 1: # Tries to set property to nothing so nothing has to be done @@ -575,7 +575,7 @@ class CMakeTraceParser: targets.append(curr) - # Now we need to try to reconsitute the original quoted format of the + # Now we need to try to reconstitute the original quoted format of the # arguments, as a property value could have spaces in it. Unlike # set_property() this is not context free. There are two approaches I # can think of, both have drawbacks: @@ -586,7 +586,7 @@ class CMakeTraceParser: # # Neither of these is awesome for obvious reasons. I'm going to try # option 1 first and fall back to 2, as 1 requires less code and less - # synchroniztion for cmake changes. + # synchronization for cmake changes. # # With the JSON output format, introduced in CMake 3.17, spaces are # handled properly and we don't have to do either options diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 0feb371bc..5f7bfa44b 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -1228,7 +1228,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): mode: CompileCheckMode = CompileCheckMode.COMPILE) -> CompilerArgs: """Arguments to pass the build_wrapper helper. - This generally needs to be set on a per-language baises. It provides + This generally needs to be set on a per-language basis. It provides a hook for languages to handle dependencies and extra args. The base implementation handles the most common cases, namely adding the check_arguments, unwrapping dependencies, and appending extra args. @@ -1266,7 +1266,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): mode: str = 'compile', want_output: bool = False, disable_cache: bool = False, temp_dir: str = None) -> T.Iterator[T.Optional[CompileResult]]: - """Helper for getting a cacched value when possible. + """Helper for getting a cached value when possible. This method isn't meant to be called externally, it's mean to be wrapped by other methods like compiles() and links(). @@ -1361,7 +1361,7 @@ def get_global_options(lang: str, # If the compiler acts as a linker driver, and we're using the # environment variable flags for both the compiler and linker # arguments, then put the compiler flags in the linker flags as well. - # This is how autotools works, and the env vars freature is for + # This is how autotools works, and the env vars feature is for # autotools compatibility. largs.extend_value(comp_options) diff --git a/mesonbuild/compilers/detect.py b/mesonbuild/compilers/detect.py index 6eca15571..78d7fdda8 100644 --- a/mesonbuild/compilers/detect.py +++ b/mesonbuild/compilers/detect.py @@ -382,7 +382,7 @@ def _detect_c_or_cpp_compiler(env: 'Environment', lang: str, for_machine: Machin if 'Arm C/C++/Fortran Compiler' in out: arm_ver_match = re.search(r'version (\d+)\.(\d+)\.?(\d+)? \(build number (\d+)\)', out) - assert arm_ver_match is not None, 'for mypy' # because mypy *should* be complaning that this could be None + assert arm_ver_match is not None, 'for mypy' # because mypy *should* be complaining that this could be None version = '.'.join([x for x in arm_ver_match.groups() if x is not None]) if lang == 'c': cls = c.ArmLtdClangCCompiler @@ -667,7 +667,7 @@ def detect_fortran_compiler(env: 'Environment', for_machine: MachineChoice) -> C if 'Arm C/C++/Fortran Compiler' in out: cls = fortran.ArmLtdFlangFortranCompiler arm_ver_match = re.search(r'version (\d+)\.(\d+)\.?(\d+)? \(build number (\d+)\)', out) - assert arm_ver_match is not None, 'for mypy' # because mypy *should* be complaning that this could be None + assert arm_ver_match is not None, 'for mypy' # because mypy *should* be complaining that this could be None version = '.'.join([x for x in arm_ver_match.groups() if x is not None]) linker = guess_nix_linker(env, compiler, cls, version, for_machine) return cls( @@ -1073,7 +1073,7 @@ def detect_d_compiler(env: 'Environment', for_machine: MachineChoice) -> Compile if 'LLVM D compiler' in out: cls = d.LLVMDCompiler # LDC seems to require a file - # We cannot use NamedTemproraryFile on windows, its documented + # We cannot use NamedTemporaryFile on windows, its documented # to not work for our uses. So, just use mkstemp and only have # one path for simplicity. o, f = tempfile.mkstemp('.d') @@ -1111,7 +1111,7 @@ def detect_d_compiler(env: 'Environment', for_machine: MachineChoice) -> Compile elif 'The D Language Foundation' in out or 'Digital Mars' in out: cls = d.DmdDCompiler # DMD seems to require a file - # We cannot use NamedTemproraryFile on windows, its documented + # We cannot use NamedTemporaryFile on windows, its documented # to not work for our uses. So, just use mkstemp and only have # one path for simplicity. o, f = tempfile.mkstemp('.d') diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index 8c17b5b06..f8c7ebcd2 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -16,7 +16,7 @@ from __future__ import annotations """Mixin classes to be shared between C and C++ compilers. -Without this we'll end up with awful diamond inherintance problems. The goal +Without this we'll end up with awful diamond inheritance problems. The goal of this is to have mixin's, which are classes that are designed *not* to be standalone, they only work through inheritance. """ @@ -432,7 +432,7 @@ class CLikeCompiler(Compiler): extra_args: T.Union[None, arglist.CompilerArgs, T.List[str], T.Callable[[CompileCheckMode], T.List[str]]], dependencies: T.Optional[T.List['Dependency']], mode: CompileCheckMode = CompileCheckMode.COMPILE) -> arglist.CompilerArgs: - # TODO: the caller should handle the listfing of these arguments + # TODO: the caller should handle the listing of these arguments if extra_args is None: extra_args = [] else: diff --git a/mesonbuild/compilers/mixins/visualstudio.py b/mesonbuild/compilers/mixins/visualstudio.py index 12522e140..76d9829c7 100644 --- a/mesonbuild/compilers/mixins/visualstudio.py +++ b/mesonbuild/compilers/mixins/visualstudio.py @@ -423,7 +423,7 @@ class MSVCCompiler(VisualStudioLikeCompiler): def __init__(self, target: str): super().__init__(target) - # Visual Studio 2013 and erlier don't support the /utf-8 argument. + # Visual Studio 2013 and earlier don't support the /utf-8 argument. # We want to remove it. We also want to make an explicit copy so we # don't mutate class constant state if mesonlib.version_compare(self.version, '<19.00') and '/utf-8' in self.always_args: diff --git a/mesonbuild/coredata.py b/mesonbuild/coredata.py index 8ddc91001..c77942286 100644 --- a/mesonbuild/coredata.py +++ b/mesonbuild/coredata.py @@ -472,7 +472,7 @@ class CoreData: # want to overwrite options for such subprojects. self.initialized_subprojects: T.Set[str] = set() - # For host == build configuraitons these caches should be the same. + # For host == build configurations these caches should be the same. self.deps: PerMachine[DependencyCache] = PerMachineDefaultable.default( self.is_cross_build(), DependencyCache(self.options, MachineChoice.BUILD), @@ -586,7 +586,7 @@ class CoreData: except TypeError: return value if option.name.endswith('dir') and value.is_absolute() and \ - option not in BULITIN_DIR_NOPREFIX_OPTIONS: + option not in BUILTIN_DIR_NOPREFIX_OPTIONS: try: # Try to relativize the path. value = value.relative_to(prefix) @@ -707,7 +707,7 @@ class CoreData: elif key.name in {'wrap_mode', 'force_fallback_for'}: # We could have the system dependency cached for a dependency that # is now forced to use subproject fallback. We probably could have - # more fine grained cache invalidation, but better be safe. + # more fine-grained cache invalidation, but better be safe. self.clear_deps_cache() dirty = True @@ -838,7 +838,7 @@ class CoreData: if pfk in options: prefix = self.sanitize_prefix(options[pfk]) dirty |= self.options[OptionKey('prefix')].set_value(prefix) - for key in BULITIN_DIR_NOPREFIX_OPTIONS: + for key in BUILTIN_DIR_NOPREFIX_OPTIONS: if key not in options: dirty |= self.options[key].set_value(BUILTIN_OPTIONS[key].prefixed_default(key, prefix)) @@ -862,7 +862,7 @@ class CoreData: def set_default_options(self, default_options: T.MutableMapping[OptionKey, str], subproject: str, env: 'Environment') -> None: # Main project can set default options on subprojects, but subprojects - # can only set default options on themself. + # can only set default options on themselves. # Preserve order: if env.options has 'buildtype' it must come after # 'optimization' if it is in default_options. options: T.MutableMapping[OptionKey, T.Any] = OrderedDict() @@ -1194,7 +1194,7 @@ class BuiltinOption(T.Generic[_T, _U]): if self.opt_type in [UserComboOption, UserIntegerOption]: return self.default try: - return BULITIN_DIR_NOPREFIX_OPTIONS[name][prefix] + return BUILTIN_DIR_NOPREFIX_OPTIONS[name][prefix] except KeyError: pass return self.default @@ -1283,7 +1283,7 @@ BUILTIN_OPTIONS_PER_MACHINE: 'MutableKeyedOptionDictType' = OrderedDict([ # Special prefix-dependent defaults for installation directories that reside in # a path outside of the prefix in FHS and common usage. -BULITIN_DIR_NOPREFIX_OPTIONS: T.Dict[OptionKey, T.Dict[str, str]] = { +BUILTIN_DIR_NOPREFIX_OPTIONS: T.Dict[OptionKey, T.Dict[str, str]] = { OptionKey('sysconfdir'): {'/usr': '/etc'}, OptionKey('localstatedir'): {'/usr': '/var', '/usr/local': '/var/local'}, OptionKey('sharedstatedir'): {'/usr': '/var/lib', '/usr/local': '/var/local/lib'}, diff --git a/mesonbuild/dependencies/boost.py b/mesonbuild/dependencies/boost.py index 4ebd88d7b..44f1baf4a 100644 --- a/mesonbuild/dependencies/boost.py +++ b/mesonbuild/dependencies/boost.py @@ -80,7 +80,7 @@ if T.TYPE_CHECKING: # 2. Find all boost libraries # 2.1 Add all libraries in lib* # 2.2 Filter out non boost libraries -# 2.3 Filter the renaining libraries based on the meson requirements (static/shared, etc.) +# 2.3 Filter the remaining libraries based on the meson requirements (static/shared, etc.) # 2.4 Ensure that all libraries have the same boost tag (and are thus compatible) # 3. Select the libraries matching the requested modules @@ -243,7 +243,7 @@ class BoostLibraryFile(): return any(self.mod_name.startswith(x) for x in BoostLibraryFile.boost_python_libs) def fix_python_name(self, tags: T.List[str]) -> T.List[str]: - # Handle the boost_python naming madeness. + # Handle the boost_python naming madness. # See https://github.com/mesonbuild/meson/issues/4788 for some distro # specific naming variations. other_tags = [] # type: T.List[str] diff --git a/mesonbuild/dependencies/cmake.py b/mesonbuild/dependencies/cmake.py index abd31a138..b5ddd28e2 100644 --- a/mesonbuild/dependencies/cmake.py +++ b/mesonbuild/dependencies/cmake.py @@ -489,7 +489,7 @@ class CMakeDependency(ExternalDependency): libs_raw = [x for x in self.traceparser.get_cmake_var('PACKAGE_LIBRARIES') if x] # CMake has a "fun" API, where certain keywords describing - # configurations can be in the *_LIBRARIES vraiables. See: + # configurations can be in the *_LIBRARIES variables. See: # - https://github.com/mesonbuild/meson/issues/9197 # - https://gitlab.freedesktop.org/libnice/libnice/-/issues/140 # - https://cmake.org/cmake/help/latest/command/target_link_libraries.html#overview (the last point in the section) @@ -505,7 +505,7 @@ class CMakeDependency(ExternalDependency): libs += [i] # According to the CMake docs, a keyword only works for the # directly the following item and all items without a keyword - # are implizitly `general` + # are implicitly `general` cfg_matches = True # Try to use old style variables if no module is specified diff --git a/mesonbuild/dependencies/data/CMakeListsLLVM.txt b/mesonbuild/dependencies/data/CMakeListsLLVM.txt index f12dddc0e..4a9382207 100644 --- a/mesonbuild/dependencies/data/CMakeListsLLVM.txt +++ b/mesonbuild/dependencies/data/CMakeListsLLVM.txt @@ -42,7 +42,7 @@ function(meson_llvm_cmake_dynamic_available mod out) return() endif() - # Complex heurisic to filter all pseudo-components and skip invalid names + # Complex heuristic to filter all pseudo-components and skip invalid names # LLVM_DYLIB_COMPONENTS will be 'all', because in other case we returned # in previous check. 'all' is also handled there. set(llvm_pseudo_components "native" "backend" "engine" "all-targets") diff --git a/mesonbuild/dependencies/misc.py b/mesonbuild/dependencies/misc.py index 7b075c487..0c747c4a5 100644 --- a/mesonbuild/dependencies/misc.py +++ b/mesonbuild/dependencies/misc.py @@ -332,7 +332,7 @@ class CursesSystemDependency(SystemDependency): ('curses', ['curses.h']), ] - # Not sure how else to elegently break out of both loops + # Not sure how else to elegantly break out of both loops for lib, headers in candidates: l = self.clib_compiler.find_library(lib, env, []) if l: diff --git a/mesonbuild/dependencies/pkgconfig.py b/mesonbuild/dependencies/pkgconfig.py index 2ef22e9ea..8dfb128ca 100644 --- a/mesonbuild/dependencies/pkgconfig.py +++ b/mesonbuild/dependencies/pkgconfig.py @@ -415,7 +415,7 @@ class PkgConfigDependency(ExternalDependency): else: variable = out.strip() - # pkg-config doesn't distinguish between empty and non-existent variables + # pkg-config doesn't distinguish between empty and nonexistent variables # use the variable list to check for variable existence if not variable: ret, out, _ = self._call_pkgbin(['--print-variables', self.name]) diff --git a/mesonbuild/dependencies/qt.py b/mesonbuild/dependencies/qt.py index 6dd712d00..6b8c6945f 100644 --- a/mesonbuild/dependencies/qt.py +++ b/mesonbuild/dependencies/qt.py @@ -260,7 +260,7 @@ class QmakeQtDependency(_QtBase, ConfigToolDependency, metaclass=abc.ABCMeta): self.tools = [f'qmake{self.qtver}', f'qmake-{self.name}', 'qmake'] # Add additional constraints that the Qt version is met, but preserve - # any version requrements the user has set as well. For example, if Qt5 + # any version requirements the user has set as well. For example, if Qt5 # is requested, add "">= 5, < 6", but if the user has ">= 5.6", don't # lose that. kwargs = kwargs.copy() @@ -325,7 +325,7 @@ class QmakeQtDependency(_QtBase, ConfigToolDependency, metaclass=abc.ABCMeta): self.compile_args.append('-I' + directory) libfiles = self.clib_compiler.find_library( self.qtpkgname + module + modules_lib_suffix, self.env, - mesonlib.listify(libdir)) # TODO: shouldn't be necissary + mesonlib.listify(libdir)) # TODO: shouldn't be necessary if libfiles: libfile = libfiles[0] else: diff --git a/mesonbuild/envconfig.py b/mesonbuild/envconfig.py index 90117c180..50c974bd1 100644 --- a/mesonbuild/envconfig.py +++ b/mesonbuild/envconfig.py @@ -28,7 +28,7 @@ from pathlib import Path # and cross file currently), and also assists with the reading environment # variables. # -# At this time there isn't an ironclad difference between this an other sources +# At this time there isn't an ironclad difference between this and other sources # of state like `coredata`. But one rough guide is much what is in `coredata` is # the *output* of the configuration process: the final decisions after tests. # This, on the other hand has *inputs*. The config files are parsed, but @@ -167,7 +167,7 @@ class Properties: return language + '_stdlib' in self.properties # Some of get_stdlib, get_root, get_sys_root are wider than is actually - # true, but without heterogenious dict annotations it's not practical to + # true, but without heterogeneous dict annotations it's not practical to # narrow them def get_stdlib(self, language: str) -> T.Union[str, T.List[str]]: stdlib = self.properties[language + '_stdlib'] diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index 02a33376f..ccd31ebaa 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -674,7 +674,7 @@ class Environment: # time) until we're instantiating that `Compiler` # object. This is required so that passing # `-Dc_args=` on the command line and `$CFLAGS` - # have subtely different behavior. `$CFLAGS` will be + # have subtly different behavior. `$CFLAGS` will be # added to the linker command line if the compiler # acts as a linker driver, `-Dc_args` will not. # diff --git a/mesonbuild/interpreter/compiler.py b/mesonbuild/interpreter/compiler.py index d56591bdf..c9ea8803c 100644 --- a/mesonbuild/interpreter/compiler.py +++ b/mesonbuild/interpreter/compiler.py @@ -1,4 +1,4 @@ -# SPDX-Licnese-Identifier: Apache-2.0 +# SPDX-License-Identifier: Apache-2.0 # Copyright 2012-2021 The Meson development team # Copyright © 2021 Intel Corporation from __future__ import annotations @@ -60,7 +60,7 @@ if T.TYPE_CHECKING: args: T.List[str] dependencies: T.List[dependencies.Dependency] - class CompupteIntKW(CommonKW): + class ComputeIntKW(CommonKW): guess: T.Optional[int] high: T.Optional[int] @@ -405,7 +405,7 @@ class CompilerHolder(ObjectHolder['Compiler']): KwargInfo('guess', (int, NoneType)), *_COMMON_KWS, ) - def compute_int_method(self, args: T.Tuple[str], kwargs: 'CompupteIntKW') -> int: + def compute_int_method(self, args: T.Tuple[str], kwargs: 'ComputeIntKW') -> int: expression = args[0] extra_args = functools.partial(self._determine_args, kwargs['no_builtin_args'], kwargs['include_directories'], kwargs['args']) deps, msg = self._determine_dependencies(kwargs['dependencies'], compile_only=self.compiler.is_cross) diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py index bbc34a430..96d4af00d 100644 --- a/mesonbuild/interpreter/interpreter.py +++ b/mesonbuild/interpreter/interpreter.py @@ -235,7 +235,7 @@ class InterpreterRuleRelaxation(Enum): generate a Meson AST via introspection, etc. ''' - ALLOW_BUILD_DIR_FILE_REFFERENCES = 1 + ALLOW_BUILD_DIR_FILE_REFERENCES = 1 permitted_dependency_kwargs = { 'allow_fallback', @@ -1001,7 +1001,7 @@ class Interpreter(InterpreterBase, HoldableObject): # Duplicates are possible when subproject uses files from project root if build_def_files: self.build_def_files.update(build_def_files) - # We always need the subi.build_def_files, to propgate sub-sub-projects + # We always need the subi.build_def_files, to propagate sub-sub-projects self.build_def_files.update(subi.build_def_files) self.build.merge(subi.build) self.build.subprojects[subp_name] = subi.project_version @@ -1048,7 +1048,7 @@ class Interpreter(InterpreterBase, HoldableObject): [str(f) for f in cm_int.bs_files], is_translated=True, relaxations={ - InterpreterRuleRelaxation.ALLOW_BUILD_DIR_FILE_REFFERENCES, + InterpreterRuleRelaxation.ALLOW_BUILD_DIR_FILE_REFERENCES, } ) result.cm_interpreter = cm_int @@ -1365,7 +1365,7 @@ class Interpreter(InterpreterBase, HoldableObject): section, values, kwargs['bool_yn'], kwargs['list_sep'], self.subproject) def _print_summary(self) -> None: - # Add automatic 'Supbrojects' section in main project. + # Add automatic 'Subprojects' section in main project. all_subprojects = collections.OrderedDict() for name, subp in sorted(self.subprojects.items()): value = subp.found() @@ -1997,7 +1997,7 @@ class Interpreter(InterpreterBase, HoldableObject): build_by_default = kwargs['build_always'] build_always_stale = kwargs['build_by_default'] - # These are are nullaable so that we can know whether they're explicitly + # These are nullable so that we can know whether they're explicitly # set or not. If they haven't been overwritten, set them to their true # default if build_by_default is None: @@ -2019,9 +2019,9 @@ class Interpreter(InterpreterBase, HoldableObject): command[0] = self.find_program_impl([command[0]]) if len(inputs) > 1 and kwargs['feed']: - raise InvalidArguments('custom_target: "feed" keyword argument can only be used used with a single input') + raise InvalidArguments('custom_target: "feed" keyword argument can only be used with a single input') if len(kwargs['output']) > 1 and kwargs['capture']: - raise InvalidArguments('custom_target: "capture" keyword argument can only be used used with a single output') + raise InvalidArguments('custom_target: "capture" keyword argument can only be used with a single output') if kwargs['capture'] and kwargs['console']: raise InvalidArguments('custom_target: "capture" and "console" keyword arguments are mutually exclusive') for c in command: @@ -2370,7 +2370,7 @@ class Interpreter(InterpreterBase, HoldableObject): absname = os.path.join(self.environment.get_source_dir(), buildfilename) if not os.path.isfile(absname): self.subdir = prev_subdir - raise InterpreterException(f"Non-existent build file '{buildfilename!s}'") + raise InterpreterException(f"Nonexistent build file '{buildfilename!s}'") with open(absname, encoding='utf-8') as f: code = f.read() assert isinstance(code, str) @@ -3034,7 +3034,7 @@ class Interpreter(InterpreterBase, HoldableObject): inputtype = 'directory' else: inputtype = 'file' - if InterpreterRuleRelaxation.ALLOW_BUILD_DIR_FILE_REFFERENCES in self.relaxations and builddir in norm.parents: + if InterpreterRuleRelaxation.ALLOW_BUILD_DIR_FILE_REFERENCES in self.relaxations and builddir in norm.parents: return if srcdir not in norm.parents: # Grabbing files outside the source tree is ok. diff --git a/mesonbuild/interpreter/kwargs.py b/mesonbuild/interpreter/kwargs.py index fb02374f6..3c1cb00d9 100644 --- a/mesonbuild/interpreter/kwargs.py +++ b/mesonbuild/interpreter/kwargs.py @@ -57,7 +57,7 @@ class FuncTest(FuncBenchmark): """Keyword Arguments for `test` - `test` only adds the `is_prallel` argument over benchmark, so inherintance + `test` only adds the `is_parallel` argument over benchmark, so inheritance is helpful here. """ diff --git a/mesonbuild/interpreter/mesonmain.py b/mesonbuild/interpreter/mesonmain.py index 3e7562975..2ea3163c2 100644 --- a/mesonbuild/interpreter/mesonmain.py +++ b/mesonbuild/interpreter/mesonmain.py @@ -377,7 +377,7 @@ class MesonMain(MesonInterpreterObject): def _override_dependency_impl(self, name: str, dep: dependencies.Dependency, kwargs: 'FuncOverrideDependency', static: T.Optional[bool], permissive: bool = False) -> None: # We need the cast here as get_dep_identifier works on such a dict, - # which FuncOverrideDependency is, but mypy can't fgure that out + # which FuncOverrideDependency is, but mypy can't figure that out nkwargs = T.cast('T.Dict[str, T.Any]', kwargs.copy()) if static is None: del nkwargs['static'] diff --git a/mesonbuild/interpreter/type_checking.py b/mesonbuild/interpreter/type_checking.py index e1ee82a93..9b2e46caf 100644 --- a/mesonbuild/interpreter/type_checking.py +++ b/mesonbuild/interpreter/type_checking.py @@ -87,9 +87,9 @@ def _install_mode_validator(mode: T.List[T.Union[str, bool, int]]) -> T.Optional return f'permission character 9 must be "-", "t", "T", or "x", not {perms[8]}' if len(mode) >= 2 and not isinstance(mode[1], (int, str, bool)): - return 'second componenent can only be a string, number, or False' + return 'second component can only be a string, number, or False' if len(mode) >= 3 and not isinstance(mode[2], (int, str, bool)): - return 'third componenent can only be a string, number, or False' + return 'third component can only be a string, number, or False' return None @@ -211,7 +211,7 @@ def _env_validator(value: T.Union[EnvironmentVariables, T.List['TYPE_var'], T.Di return None def _options_validator(value: T.Union[EnvironmentVariables, T.List['TYPE_var'], T.Dict[str, 'TYPE_var'], str, None]) -> T.Optional[str]: - # Reusing the env validator is a littl overkill, but nicer than duplicating the code + # Reusing the env validator is a little overkill, but nicer than duplicating the code return _env_validator(value, allow_dict_list=False) def split_equal_string(input: str) -> T.Tuple[str, str]: diff --git a/mesonbuild/interpreterbase/decorators.py b/mesonbuild/interpreterbase/decorators.py index 9defb9966..3ffa67aad 100644 --- a/mesonbuild/interpreterbase/decorators.py +++ b/mesonbuild/interpreterbase/decorators.py @@ -470,7 +470,7 @@ def typed_kwargs(name: str, *types: KwargInfo, allow_unknown: bool = False) -> T information. For non-required values it sets the value to a default, which means the value will always be provided. - If type tyhpe is a :class:ContainerTypeInfo, then the default value will be + If type is a :class:ContainerTypeInfo, then the default value will be passed as an argument to the container initializer, making a shallow copy :param name: the name of the function, including the object it's attached to @@ -583,7 +583,7 @@ def typed_kwargs(name: str, *types: KwargInfo, allow_unknown: bool = False) -> T else: # set the value to the default, this ensuring all kwargs are present # This both simplifies the typing checking and the usage - assert check_value_type(types_tuple, info.default), f'In funcion {name} default value of {info.name} is not a valid type, got {type(info.default)} expected {types_description(types_tuple)}' + assert check_value_type(types_tuple, info.default), f'In function {name} default value of {info.name} is not a valid type, got {type(info.default)} expected {types_description(types_tuple)}' # Create a shallow copy of the container. This allows mutable # types to be used safely as default values kwargs[info.name] = copy.copy(info.default) diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py index b1d077996..5f854d0fa 100644 --- a/mesonbuild/interpreterbase/interpreterbase.py +++ b/mesonbuild/interpreterbase/interpreterbase.py @@ -525,14 +525,14 @@ class InterpreterBase: return None def method_call(self, node: mparser.MethodNode) -> T.Optional[InterpreterObject]: - invokable = node.source_object + invocable = node.source_object obj: T.Optional[InterpreterObject] - if isinstance(invokable, mparser.IdNode): - object_display_name = f'variable "{invokable.value}"' - obj = self.get_variable(invokable.value) + if isinstance(invocable, mparser.IdNode): + object_display_name = f'variable "{invocable.value}"' + obj = self.get_variable(invocable.value) else: - object_display_name = invokable.__class__.__name__ - obj = self.evaluate_statement(invokable) + object_display_name = invocable.__class__.__name__ + obj = self.evaluate_statement(invocable) method_name = node.name (h_args, h_kwargs) = self.reduce_arguments(node.args) (args, kwargs) = self._unholder_args(h_args, h_kwargs) diff --git a/mesonbuild/linkers/detect.py b/mesonbuild/linkers/detect.py index 97e770c42..59f1d780a 100644 --- a/mesonbuild/linkers/detect.py +++ b/mesonbuild/linkers/detect.py @@ -96,7 +96,7 @@ def guess_win_linker(env: 'Environment', compiler: T.List[str], comp_class: T.Ty if value is not None and invoked_directly: compiler = value - # We've already hanedled the non-direct case above + # We've already handled the non-direct case above p, o, e = Popen_safe(compiler + check_args) if 'LLD' in o.split('\n', maxsplit=1)[0]: diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py index 5799caf76..4c00032d4 100644 --- a/mesonbuild/linkers/linkers.py +++ b/mesonbuild/linkers/linkers.py @@ -928,7 +928,7 @@ class WASMDynamicLinker(GnuLikeDynamicLinkerMixin, PosixDynamicLinkerMixin, Dyna class CcrxDynamicLinker(DynamicLinker): - """Linker for Renesis CCrx compiler.""" + """Linker for Renesas CCrx compiler.""" id = 'rlink' @@ -1216,7 +1216,7 @@ NvidiaHPC_StaticLinker = PGIStaticLinker class VisualStudioLikeLinkerMixin: - """Mixin class for for dynamic linkers that act like Microsoft's link.exe.""" + """Mixin class for dynamic linkers that act like Microsoft's link.exe.""" if T.TYPE_CHECKING: for_machine = MachineChoice.HOST diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 27e9929ce..91e87fa09 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -207,10 +207,10 @@ def set_mode(path: str, mode: T.Optional['FileMode'], default_umask: T.Union[str except PermissionError as e: print(f'{path!r}: Unable to set owner {mode.owner!r} and group {mode.group!r}: {e.strerror}, ignoring...') except LookupError: - print(f'{path!r}: Non-existent owner {mode.owner!r} or group {mode.group!r}: ignoring...') + print(f'{path!r}: Nonexistent owner {mode.owner!r} or group {mode.group!r}: ignoring...') except OSError as e: if e.errno == errno.EINVAL: - print(f'{path!r}: Non-existent numeric owner {mode.owner!r} or group {mode.group!r}: ignoring...') + print(f'{path!r}: Nonexistent numeric owner {mode.owner!r} or group {mode.group!r}: ignoring...') else: raise # Must set permissions *after* setting owner/group otherwise the diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 019b1eae7..b6577dc97 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -2149,7 +2149,7 @@ class GnomeModule(ExtensionModule): ) # So to try our best to get this to just work we need: - # - link with with the correct library + # - link with the correct library # - include the vapi and dependent vapi files in sources # - add relevant directories to include dirs incs = [build.IncludeDirs(state.subdir, ['.'] + vapi_includes, False)] diff --git a/mesonbuild/modules/keyval.py b/mesonbuild/modules/keyval.py index 1ba2f1c9a..48afe8149 100644 --- a/mesonbuild/modules/keyval.py +++ b/mesonbuild/modules/keyval.py @@ -55,7 +55,7 @@ class KeyvalModule(ExtensionModule): return result @noKwargs - @typed_pos_args('keyval.laod', (str, mesonlib.File)) + @typed_pos_args('keyval.load', (str, mesonlib.File)) def load(self, state: 'ModuleState', args: T.Tuple['mesonlib.FileOrString'], kwargs: T.Dict[str, T.Any]) -> T.Dict[str, str]: s = args[0] is_built = False diff --git a/mesonbuild/modules/windows.py b/mesonbuild/modules/windows.py index 494cfbffd..ed1bef1d5 100644 --- a/mesonbuild/modules/windows.py +++ b/mesonbuild/modules/windows.py @@ -164,7 +164,7 @@ class WindowsModule(ExtensionModule): elif isinstance(src, build.CustomTargetIndex): FeatureNew.single_use('windows.compile_resource CustomTargetIndex in positional arguments', '0.61.0', state.subproject, location=state.current_node) - # This dance avoids a case where two indexs of the same + # This dance avoids a case where two indexes of the same # target are given as separate arguments. yield (f'{src.get_id()}_{src.target.get_outputs().index(src.output)}', f'windows_compile_resources_{src.get_filename()}', src) diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 53550b518..f7cf77070 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -185,7 +185,7 @@ def returncode_to_status(retcode: int) -> str: # functions here because the status returned by subprocess is munged. It # returns a negative value if the process was killed by a signal rather than # the raw status returned by `wait()`. Also, If a shell sits between Meson - # the the actual unit test that shell is likely to convert a termination due + # the actual unit test that shell is likely to convert a termination due # to a signal into an exit status of 128 plus the signal number. if retcode < 0: signum = -retcode diff --git a/mesonbuild/programs.py b/mesonbuild/programs.py index 64f7c29a0..4b6669897 100644 --- a/mesonbuild/programs.py +++ b/mesonbuild/programs.py @@ -354,7 +354,7 @@ class OverrideProgram(ExternalProgram): def find_external_program(env: 'Environment', for_machine: MachineChoice, name: str, display_name: str, default_names: T.List[str], allow_default_for_cross: bool = True) -> T.Generator['ExternalProgram', None, None]: - """Find an external program, chcking the cross file plus any default options.""" + """Find an external program, checking the cross file plus any default options.""" # Lookup in cross or machine file. potential_cmd = env.lookup_binary_entry(for_machine, name) if potential_cmd is not None: diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py index 4c32ff19e..a9b2e881c 100644 --- a/mesonbuild/rewriter.py +++ b/mesonbuild/rewriter.py @@ -569,27 +569,27 @@ class Rewriter: if key not in arg_node.kwargs: arg_node.kwargs[key] = None - modifyer = kwargs_def[key](arg_node.kwargs[key]) - if not modifyer.can_modify(): + modifier = kwargs_def[key](arg_node.kwargs[key]) + if not modifier.can_modify(): mlog.log(' -- Skipping', mlog.bold(key), 'because it is to complex to modify') # Apply the operation val_str = str(val) if cmd['operation'] == 'set': mlog.log(' -- Setting', mlog.bold(key), 'to', mlog.yellow(val_str)) - modifyer.set_value(val) + modifier.set_value(val) elif cmd['operation'] == 'add': mlog.log(' -- Adding', mlog.yellow(val_str), 'to', mlog.bold(key)) - modifyer.add_value(val) + modifier.add_value(val) elif cmd['operation'] == 'remove': mlog.log(' -- Removing', mlog.yellow(val_str), 'from', mlog.bold(key)) - modifyer.remove_value(val) + modifier.remove_value(val) elif cmd['operation'] == 'remove_regex': mlog.log(' -- Removing all values matching', mlog.yellow(val_str), 'from', mlog.bold(key)) - modifyer.remove_regex(val) + modifier.remove_regex(val) # Write back the result - arg_node.kwargs[key] = modifyer.get_node() + arg_node.kwargs[key] = modifier.get_node() num_changed += 1 # Convert the keys back to IdNode's diff --git a/mesonbuild/scripts/cmake_run_ctgt.py b/mesonbuild/scripts/cmake_run_ctgt.py index a788ba597..755530a68 100755 --- a/mesonbuild/scripts/cmake_run_ctgt.py +++ b/mesonbuild/scripts/cmake_run_ctgt.py @@ -35,7 +35,7 @@ def run(argsv: T.List[str]) -> int: commands += [[]] continue - i = i.replace('"', '') # Remove lefover quotes + i = i.replace('"', '') # Remove leftover quotes commands[-1] += [i] # Execute diff --git a/mesonbuild/scripts/depfixer.py b/mesonbuild/scripts/depfixer.py index ae18594b7..b9c58fee5 100644 --- a/mesonbuild/scripts/depfixer.py +++ b/mesonbuild/scripts/depfixer.py @@ -350,7 +350,7 @@ class Elf(DataSizes): sys.exit(msg) # The linker does read-only string deduplication. If there is a # string that shares a suffix with the rpath, they might get - # dedupped. This means changing the rpath string might break something + # deduped. This means changing the rpath string might break something # completely unrelated. This has already happened once with X.org. # Thus we want to keep this change as small as possible to minimize # the chance of obliterating other strings. It might still happen diff --git a/mesonbuild/utils/universal.py b/mesonbuild/utils/universal.py index e06eaaa78..8c35803cd 100644 --- a/mesonbuild/utils/universal.py +++ b/mesonbuild/utils/universal.py @@ -2295,7 +2295,7 @@ class OptionKey: def evolve(self, name: T.Optional[str] = None, subproject: T.Optional[str] = None, machine: T.Optional[MachineChoice] = None, lang: T.Optional[str] = '', module: T.Optional[str] = '') -> 'OptionKey': - """Create a new copy of this key, but with alterted members. + """Create a new copy of this key, but with altered members. For example: >>> a = OptionKey('foo', '', MachineChoice.Host) @@ -2318,11 +2318,11 @@ class OptionKey: return self.evolve(subproject='') def as_build(self) -> 'OptionKey': - """Convenience method for key.evolve(machine=MachinceChoice.BUILD).""" + """Convenience method for key.evolve(machine=MachineChoice.BUILD).""" return self.evolve(machine=MachineChoice.BUILD) def as_host(self) -> 'OptionKey': - """Convenience method for key.evolve(machine=MachinceChoice.HOST).""" + """Convenience method for key.evolve(machine=MachineChoice.HOST).""" return self.evolve(machine=MachineChoice.HOST) def is_backend(self) -> bool: diff --git a/mesonbuild/utils/vsenv.py b/mesonbuild/utils/vsenv.py index d862e5acc..3c2687884 100644 --- a/mesonbuild/utils/vsenv.py +++ b/mesonbuild/utils/vsenv.py @@ -70,7 +70,7 @@ def _setup_vsenv(force: bool) -> bool: ) bat_info = json.loads(bat_json) if not bat_info: - # VS installer instelled but not VS itself maybe? + # VS installer installed but not VS itself maybe? raise MesonException('Could not parse vswhere.exe output') bat_root = pathlib.Path(bat_info[0]['installationPath']) if windows_detect_native_arch() == 'arm64': diff --git a/run_project_tests.py b/run_project_tests.py index fc9e6f908..448d559d2 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -153,7 +153,7 @@ class InstalledFile: if self.language in {'c', 'cpp'}: has_pdb = canonical_compiler == 'msvc' elif self.language == 'd': - # dmd's optlink does not genearte pdb iles + # dmd's optlink does not generate pdb files has_pdb = env.coredata.compilers.host['d'].linker.id in {'link', 'lld-link'} # Abort if the platform does not match diff --git a/test cases/cmake/9 disabled subproject/meson.build b/test cases/cmake/9 disabled subproject/meson.build index c153fa3a3..b22f9599c 100644 --- a/test cases/cmake/9 disabled subproject/meson.build +++ b/test cases/cmake/9 disabled subproject/meson.build @@ -2,5 +2,5 @@ project('cmakeSubTest', ['c', 'cpp']) cm = import('cmake') -sub_pro = cm.subproject('nothinig', required: false) +sub_pro = cm.subproject('nothing', required: false) assert(not sub_pro.found(), 'subproject found() reports wrong value') diff --git a/test cases/common/14 configure file/meson.build b/test cases/common/14 configure file/meson.build index 569dd09b7..90a468f5e 100644 --- a/test cases/common/14 configure file/meson.build +++ b/test cases/common/14 configure file/meson.build @@ -161,7 +161,7 @@ cfile = configure_file(input : 'config.h.in', install_dir : false, configuration : conf) -# test intsall_dir with install: false +# test install_dir with install: false cfile = configure_file(input : 'config.h.in', output : 'do_not_get_installed_in_install_dir.h', install : false, diff --git a/test cases/common/158 disabler/meson.build b/test cases/common/158 disabler/meson.build index d132e2b52..65ca5fdf5 100644 --- a/test cases/common/158 disabler/meson.build +++ b/test cases/common/158 disabler/meson.build @@ -97,7 +97,7 @@ assert(if_is_not_disabled, 'Disabler in is_variable should not skip blocks') get_d = get_variable('d6') assert(is_disabler(get_d), 'get_variable should yield a disabler') -get_fallback_d = get_variable('nonexistant', disabler()) +get_fallback_d = get_variable('nonexistent', disabler()) assert(is_disabler(get_fallback_d), 'get_variable fallback should yield a disabler') var_true = true diff --git a/test cases/common/182 find override/meson.build b/test cases/common/182 find override/meson.build index 8dcbac76b..f21700140 100644 --- a/test cases/common/182 find override/meson.build +++ b/test cases/common/182 find override/meson.build @@ -18,7 +18,7 @@ assert(tool.found()) assert(tool.full_path() != '') assert(tool.full_path() == tool.path()) -# six_meson_exe is an overritten project executable +# six_meson_exe is an overridden project executable six_prog = find_program('six_meson_exe') assert(six_prog.found()) assert(six_prog.full_path() != '') diff --git a/test cases/common/189 check header/meson.build b/test cases/common/189 check header/meson.build index 98b395de5..1d3eb45df 100644 --- a/test cases/common/189 check header/meson.build +++ b/test cases/common/189 check header/meson.build @@ -44,5 +44,5 @@ foreach comp : [meson.get_compiler('c'), meson.get_compiler('cpp')] # This header exists in the source and the builddir, but we still must not # find it since we are looking in the system directories. assert(not comp.check_header(non_existent_header, prefix : fallback), - 'Found non-existent header.') + 'Found nonexistent header.') endforeach diff --git a/test cases/common/196 subproject with features/meson.build b/test cases/common/196 subproject with features/meson.build index 5bdfefbc0..130c69a07 100644 --- a/test cases/common/196 subproject with features/meson.build +++ b/test cases/common/196 subproject with features/meson.build @@ -10,7 +10,7 @@ disabled_subproj = subproject('disabled_sub', required: get_option('disabled-sub assert(disabled_subproj.found() == false, 'Disabled subproject should be NOT found') disabled_dep = dependency('', fallback: ['disabled_sub', 'libSub'], required: false) -assert(disabled_dep.found() == false, 'Subprojetc was disabled, it should never be built.') +assert(disabled_dep.found() == false, 'Subproject was disabled, it should never be built.') nothing = executable('nothing', 'nothing.c', dependencies: [disabled_dep]) subproj_with_missing_dep = subproject('auto_sub_with_missing_dep', required: get_option('auto-sub-with-missing-dep')) diff --git a/test cases/common/20 global arg/prog.c b/test cases/common/20 global arg/prog.c index 2a71236b6..c70a669f6 100644 --- a/test cases/common/20 global arg/prog.c +++ b/test cases/common/20 global arg/prog.c @@ -11,7 +11,7 @@ #endif #if !defined(GLOBAL_HOST) && !defined(GLOBAL_BUILD) - #error "Neither global_host nor glogal_build is set." + #error "Neither global_host nor global_build is set." #endif #if defined(GLOBAL_HOST) && defined(GLOBAL_BUILD) diff --git a/test cases/common/220 fs module/meson.build b/test cases/common/220 fs module/meson.build index d38c87232..a1e9c44fc 100644 --- a/test cases/common/220 fs module/meson.build +++ b/test cases/common/220 fs module/meson.build @@ -120,7 +120,7 @@ assert(not fs.is_samepath(f1, 'subdir/subdirfile.txt'), 'is_samepath known bad c assert(not fs.is_samepath('not-a-path', f2), 'is_samepath should not error if path(s) do not exist') f = files('meson.build', 'subdir/../meson.build') -assert(fs.is_samepath(f[0], f[1]), 'is_samepath not detercting same files') +assert(fs.is_samepath(f[0], f[1]), 'is_samepath not detecting same files') if not is_windows and build_machine.system() != 'cygwin' assert(fs.is_samepath(symlink, 'meson.build'), 'symlink is_samepath fail') diff --git a/test cases/common/222 native prop/meson.build b/test cases/common/222 native prop/meson.build index 87523719e..88e32ec20 100644 --- a/test cases/common/222 native prop/meson.build +++ b/test cases/common/222 native prop/meson.build @@ -8,16 +8,16 @@ x = meson.get_external_property('astring', native: true) assert(x=='mystring', 'did not get native property with native:true and non-cross build.') x = meson.get_external_property('astring', 'fallback', native: false) -assert(x==ref, 'did not get get native property with native:false and non-cross build.') +assert(x==ref, 'did not get native property with native:false and non-cross build.') -x = meson.get_external_property('notexist', 'fallback') +x = meson.get_external_property('nonexistent', 'fallback') assert(x=='fallback', 'fallback did not work') -x = meson.get_external_property('notexist', 'fallback', native: true) +x = meson.get_external_property('nonexistent', 'fallback', native: true) assert(x=='fallback', 'fallback native:true did not work') -x = meson.get_external_property('notexist', 'fallback', native: false) +x = meson.get_external_property('nonexistent', 'fallback', native: false) assert(x=='fallback', 'fallback native:false did not work') diff --git a/test cases/common/227 very long commmand line/codegen.py b/test cases/common/227 very long command line/codegen.py similarity index 100% rename from test cases/common/227 very long commmand line/codegen.py rename to test cases/common/227 very long command line/codegen.py diff --git a/test cases/common/227 very long commmand line/main.c b/test cases/common/227 very long command line/main.c similarity index 100% rename from test cases/common/227 very long commmand line/main.c rename to test cases/common/227 very long command line/main.c diff --git a/test cases/common/227 very long commmand line/meson.build b/test cases/common/227 very long command line/meson.build similarity index 99% rename from test cases/common/227 very long commmand line/meson.build rename to test cases/common/227 very long command line/meson.build index f8df3115b..e4661b0af 100644 --- a/test cases/common/227 very long commmand line/meson.build +++ b/test cases/common/227 very long command line/meson.build @@ -8,7 +8,7 @@ if build_machine.system() == 'windows' limit = 32767 # NOTE: filename limit is 260 characters unless # 1. Python >= 3.6 is being used - # 2. Windows 10 registry has been edited to enable long pathnaems + # 2. Windows 10 registry has been edited to enable long pathnames # ninja backend uses absolute filenames, so we ensure they don't exceed 260. elif build_machine.system() == 'cygwin' # cygwin-to-win32: see above diff --git a/test cases/common/227 very long commmand line/name_gen.py b/test cases/common/227 very long command line/name_gen.py similarity index 100% rename from test cases/common/227 very long commmand line/name_gen.py rename to test cases/common/227 very long command line/name_gen.py diff --git a/test cases/common/235 invalid standard overriden to valid/main.c b/test cases/common/235 invalid standard overridden to valid/main.c similarity index 100% rename from test cases/common/235 invalid standard overriden to valid/main.c rename to test cases/common/235 invalid standard overridden to valid/main.c diff --git a/test cases/common/235 invalid standard overriden to valid/meson.build b/test cases/common/235 invalid standard overridden to valid/meson.build similarity index 100% rename from test cases/common/235 invalid standard overriden to valid/meson.build rename to test cases/common/235 invalid standard overridden to valid/meson.build diff --git a/test cases/common/235 invalid standard overriden to valid/test.json b/test cases/common/235 invalid standard overridden to valid/test.json similarity index 100% rename from test cases/common/235 invalid standard overriden to valid/test.json rename to test cases/common/235 invalid standard overridden to valid/test.json diff --git a/test cases/common/26 find program/meson.build b/test cases/common/26 find program/meson.build index 5d38d0b36..3c4d15cda 100644 --- a/test cases/common/26 find program/meson.build +++ b/test cases/common/26 find program/meson.build @@ -35,5 +35,5 @@ assert(prog.found(), 'Program version should match') prog = find_program('test_subdir.py', required : false) assert(not prog.found(), 'Program should not be found') -prog = find_program('test_subdir.py', dirs : ['/donotexist', meson.current_source_dir() / 'scripts']) +prog = find_program('test_subdir.py', dirs : ['/nonexistent', meson.current_source_dir() / 'scripts']) assert(prog.found(), 'Program should be found') diff --git a/test cases/common/27 multiline string/meson.build b/test cases/common/27 multiline string/meson.build index a87d29ad9..39d2438d0 100644 --- a/test cases/common/27 multiline string/meson.build +++ b/test cases/common/27 multiline string/meson.build @@ -34,4 +34,4 @@ int main(void) { return 0; }''' -assert(cc.compiles(prog), 'multline test compile failed') +assert(cc.compiles(prog), 'multiline test compile failed') diff --git a/test cases/common/32 has header/meson.build b/test cases/common/32 has header/meson.build index 8096763a9..e6f6efb81 100644 --- a/test cases/common/32 has header/meson.build +++ b/test cases/common/32 has header/meson.build @@ -49,6 +49,6 @@ foreach fallback : fallbacks # This header exists in the source and the builddir, but we still must not # find it since we are looking in the system directories. assert(not comp.has_header(non_existent_header, prefix : fallback), - 'Found non-existent header.') + 'Found nonexistent header.') endforeach endforeach diff --git a/test cases/common/36 has function/meson.build b/test cases/common/36 has function/meson.build index a3f0a3c9d..bb3e86976 100644 --- a/test cases/common/36 has function/meson.build +++ b/test cases/common/36 has function/meson.build @@ -37,11 +37,11 @@ foreach cc : compilers if cc.has_function('hfkerhisadf', prefix : '#include', args : unit_test_args) - error('Found non-existent function "hfkerhisadf".') + error('Found nonexistent function "hfkerhisadf".') endif if cc.has_function('hfkerhisadf', args : unit_test_args) - error('Found non-existent function "hfkerhisadf".') + error('Found nonexistent function "hfkerhisadf".') endif # With glibc (before 2.32, see below) on Linux, lchmod is a stub that will diff --git a/test cases/common/40 options/meson_options.txt b/test cases/common/40 options/meson_options.txt index ecb024db8..ad48141d6 100644 --- a/test cases/common/40 options/meson_options.txt +++ b/test cases/common/40 options/meson_options.txt @@ -5,7 +5,7 @@ option('array_opt', type : 'array', choices : ['one', 'two', 'three'], value : [ option('free_array_opt', type : 'array') option('integer_opt', type : 'integer', min : 0, max : -(-5), value : 3) option('neg' + '_' + 'int' + '_' + 'opt', type : 'integer', min : -5, max : 5, value : -3) -option('CaseSenSiTivE', type : 'string', value: 'Some CAPS', description : 'An option with mixed capitaliziation') +option('CaseSenSiTivE', type : 'string', value: 'Some CAPS', description : 'An option with mixed capitalization') option('CASESENSITIVE', type : 'string', value: 'ALL CAPS', description : 'An option with all caps') option('boolean_string', type : 'boolean', value : 'false') diff --git a/test cases/common/42 subproject/meson.build b/test cases/common/42 subproject/meson.build index ae68aa6e2..c2c0122f1 100644 --- a/test cases/common/42 subproject/meson.build +++ b/test cases/common/42 subproject/meson.build @@ -26,5 +26,5 @@ meson.install_dependency_manifest('share/sublib/sublib.depmf') unknown_var = sub.get_variable('does-not-exist', []) if unknown_var != [] - error ('unexpetced fallback value for subproject.get_variable()') + error ('unexpected fallback value for subproject.get_variable()') endif diff --git a/test cases/common/56 array methods/meson.build b/test cases/common/56 array methods/meson.build index d323db8b2..e9e4969c7 100644 --- a/test cases/common/56 array methods/meson.build +++ b/test cases/common/56 array methods/meson.build @@ -18,7 +18,7 @@ if not file_list.contains(file_a[0]) endif if file_list.contains(file_c[0]) - error('Contains with ObjectHolder lists found non existent object') + error('Contains with ObjectHolder lists found nonexistent object') endif if empty.contains('abc') diff --git a/test cases/common/98 subproject subdir/meson.build b/test cases/common/98 subproject subdir/meson.build index 3053b3b91..ef053d86c 100644 --- a/test cases/common/98 subproject subdir/meson.build +++ b/test cases/common/98 subproject subdir/meson.build @@ -27,7 +27,7 @@ d = dependency('sub-notfound', fallback : 'sub_novar', required : false) assert(not d.found(), 'Dependency should be not-found') # Verify that implicit fallback works because subprojects/sub_implicit directory exists -d = dependency('sub_implicit', default_options: 'opt=overriden') +d = dependency('sub_implicit', default_options: 'opt=overridden') assert(d.found(), 'Should implicitly fallback') # Verify that implicit fallback works because sub_implicit.wrap has diff --git a/test cases/common/98 subproject subdir/subprojects/sub_implicit/meson.build b/test cases/common/98 subproject subdir/subprojects/sub_implicit/meson.build index 9f436042f..8002e9bcd 100644 --- a/test cases/common/98 subproject subdir/subprojects/sub_implicit/meson.build +++ b/test cases/common/98 subproject subdir/subprojects/sub_implicit/meson.build @@ -10,4 +10,4 @@ sub_implicit_provide2_dep = dep # This one is not overridden but the wrap file tells the variable name to use. glib_dep = dep -assert(get_option('opt') == 'overriden') \ No newline at end of file +assert(get_option('opt') == 'overridden') diff --git a/test cases/failing/129 generator host binary/meson.build b/test cases/failing/129 generator host binary/meson.build index fc1f9beb2..e76933878 100644 --- a/test cases/failing/129 generator host binary/meson.build +++ b/test cases/failing/129 generator host binary/meson.build @@ -8,7 +8,7 @@ add_languages('c', native : false) exe = executable('exe', 'exe.c', native : false) -gen = generator(exe, output : '@BASENAME@.c', arguments : ['@INPUT@', '@OUTPU@']) +gen = generator(exe, output : '@BASENAME@.c', arguments : ['@INPUT@', '@OUTPUT@']) foo = gen.process('lib.in') library('foo', foo) diff --git a/test cases/failing/3 missing subdir/test.json b/test cases/failing/3 missing subdir/test.json index 562de2545..e70f6dec3 100644 --- a/test cases/failing/3 missing subdir/test.json +++ b/test cases/failing/3 missing subdir/test.json @@ -3,7 +3,7 @@ { "comment": "'missing/meson.build' gets transformed with os.path.sep separators", "match": "re", - "line": "test cases/failing/3 missing subdir/meson\\.build:3:0: ERROR: Non\\-existent build file 'missing[\\\\/]meson\\.build'" + "line": "test cases/failing/3 missing subdir/meson\\.build:3:0: ERROR: Nonexistent build file 'missing[\\\\/]meson\\.build'" } ] } diff --git a/test cases/failing/4 missing meson.build/test.json b/test cases/failing/4 missing meson.build/test.json index 3857090b1..e111087b7 100644 --- a/test cases/failing/4 missing meson.build/test.json +++ b/test cases/failing/4 missing meson.build/test.json @@ -3,7 +3,7 @@ { "match": "re", "comment": "'subdir/meson.build' gets transformed with os.path.sep separators", - "line": "test cases/failing/4 missing meson\\.build/meson\\.build:3:0: ERROR: Non\\-existent build file 'subdir[\\\\/]meson\\.build'" + "line": "test cases/failing/4 missing meson\\.build/meson\\.build:3:0: ERROR: Nonexistent build file 'subdir[\\\\/]meson\\.build'" } ] } diff --git a/test cases/failing/59 bad option argument/meson_options.txt b/test cases/failing/59 bad option argument/meson_options.txt index de1fff6fb..0e0372b89 100644 --- a/test cases/failing/59 bad option argument/meson_options.txt +++ b/test cases/failing/59 bad option argument/meson_options.txt @@ -1 +1 @@ -option('name', type : 'string', vaule : 'foo') +option('name', type : 'string', value_ : 'foo') diff --git a/test cases/failing/59 bad option argument/test.json b/test cases/failing/59 bad option argument/test.json index 28aa0caba..9d22a9a22 100644 --- a/test cases/failing/59 bad option argument/test.json +++ b/test cases/failing/59 bad option argument/test.json @@ -1,7 +1,7 @@ { "stdout": [ { - "line": "test cases/failing/59 bad option argument/meson_options.txt:1:0: ERROR: string option got unknown keyword arguments \"vaule\"" + "line": "test cases/failing/59 bad option argument/meson_options.txt:1:0: ERROR: string option got unknown keyword arguments \"value_\"" } ] } diff --git a/test cases/failing/70 override used/meson.build b/test cases/failing/70 override used/meson.build index 128108e30..582fc1b05 100644 --- a/test cases/failing/70 override used/meson.build +++ b/test cases/failing/70 override used/meson.build @@ -1,4 +1,4 @@ -project('overridde an already found exe') +project('override an already found exe') old = find_program('something.py') replacement = find_program('other.py') diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in b/test cases/failing/75 non-ascii in ascii encoded configure file/config9.h.in similarity index 100% rename from test cases/failing/75 non ascii in ascii encoded configure file/config9.h.in rename to test cases/failing/75 non-ascii in ascii encoded configure file/config9.h.in diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/meson.build b/test cases/failing/75 non-ascii in ascii encoded configure file/meson.build similarity index 62% rename from test cases/failing/75 non ascii in ascii encoded configure file/meson.build rename to test cases/failing/75 non-ascii in ascii encoded configure file/meson.build index 26da80eab..eadb627cd 100644 --- a/test cases/failing/75 non ascii in ascii encoded configure file/meson.build +++ b/test cases/failing/75 non-ascii in ascii encoded configure file/meson.build @@ -1,5 +1,5 @@ -project('non acsii to ascii encoding') -# Writing a non ASCII character with a ASCII encoding should fail +project('non-ascii to ascii encoding') +# Writing a non-ASCII character with a ASCII encoding should fail conf9 = configuration_data() conf9.set('var', 'д') configure_file( diff --git a/test cases/failing/75 non ascii in ascii encoded configure file/test.json b/test cases/failing/75 non-ascii in ascii encoded configure file/test.json similarity index 79% rename from test cases/failing/75 non ascii in ascii encoded configure file/test.json rename to test cases/failing/75 non-ascii in ascii encoded configure file/test.json index 27cb0ab8d..3d797f923 100644 --- a/test cases/failing/75 non ascii in ascii encoded configure file/test.json +++ b/test cases/failing/75 non-ascii in ascii encoded configure file/test.json @@ -2,7 +2,7 @@ "stdout": [ { "match": "re", - "line": "test cases/failing/75 non ascii in ascii encoded configure file/meson\\.build:5:0: ERROR: Could not write output file .*[\\\\/]config9\\.h: 'ascii' codec can't encode character '\\\\u0434' in position 17: ordinal not in range\\(128\\)" + "line": "test cases/failing/75 non-ascii in ascii encoded configure file/meson\\.build:5:0: ERROR: Could not write output file .*[\\\\/]config9\\.h: 'ascii' codec can't encode character '\\\\u0434' in position 17: ordinal not in range\\(128\\)" } ] } diff --git a/test cases/failing/83 dub libray/meson.build b/test cases/failing/83 dub library/meson.build similarity index 100% rename from test cases/failing/83 dub libray/meson.build rename to test cases/failing/83 dub library/meson.build diff --git a/test cases/failing/83 dub library/test.json b/test cases/failing/83 dub library/test.json new file mode 100644 index 000000000..e4248f4f0 --- /dev/null +++ b/test cases/failing/83 dub library/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/83 dub library/meson.build:11:0: ERROR: Dependency \"dubtestproject\" not found" + } + ] +} diff --git a/test cases/failing/83 dub libray/test.json b/test cases/failing/83 dub libray/test.json deleted file mode 100644 index 4dcbbedda..000000000 --- a/test cases/failing/83 dub libray/test.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "stdout": [ - { - "line": "test cases/failing/83 dub libray/meson.build:11:0: ERROR: Dependency \"dubtestproject\" not found" - } - ] -} diff --git a/test cases/frameworks/1 boost/meson.build b/test cases/frameworks/1 boost/meson.build index 821bb6277..2e22cbf34 100644 --- a/test cases/frameworks/1 boost/meson.build +++ b/test cases/frameworks/1 boost/meson.build @@ -17,7 +17,7 @@ linkdep = dependency('boost', static: s, modules : ['thread', 'system', 'dat testdep = dependency('boost', static: s, modules : ['unit_test_framework']) nomoddep = dependency('boost', static: s) extralibdep = dependency('boost', static: s, modules : ['thread', 'system', 'date_time', 'log_setup', 'log', 'filesystem', 'regex']) -notfound = dependency('boost', static: s, modules : ['this_should_not_exist_on_any_systen'], required: false) +notfound = dependency('boost', static: s, modules : ['this_should_not_exist_on_any_system'], required: false) assert(not notfound.found()) diff --git a/test cases/frameworks/21 libwmf/meson.build b/test cases/frameworks/21 libwmf/meson.build index 9dbab6a86..5892932a7 100644 --- a/test cases/frameworks/21 libwmf/meson.build +++ b/test cases/frameworks/21 libwmf/meson.build @@ -10,7 +10,7 @@ libwmf_ver = libwmf_dep.version() assert(libwmf_ver.split('.').length() > 1, 'libwmf version is "@0@"'.format(libwmf_ver)) message('libwmf version is "@0@"'.format(libwmf_ver)) # Workaround for Debian bug 912563 where libwmf-devel returns cflags -# that do not not have Freetype include paths but their headers +# that do not have Freetype include paths but their headers # use them unconditionally. ft_dep = dependency('freetype2') e = executable('libwmf_prog', 'libwmf_prog.c', dependencies : [libwmf_dep, ft_dep]) diff --git a/test cases/frameworks/25 hdf5/meson.build b/test cases/frameworks/25 hdf5/meson.build index 0df2ffdd4..b9f5784b4 100644 --- a/test cases/frameworks/25 hdf5/meson.build +++ b/test cases/frameworks/25 hdf5/meson.build @@ -29,7 +29,7 @@ if test_fortran # Search paths don't work correctly here and -lgfortran doesn't work test_fortran = false elif host_machine.system() == 'windows' and cpp.get_id() != 'gcc' and fc.get_id() == 'gcc' - # mixing gfotran with non-gcc doesn't work on windows + # mixing gfortran with non-gcc doesn't work on windows test_fortran = false endif diff --git a/test cases/frameworks/4 qt/meson.build b/test cases/frameworks/4 qt/meson.build index 735b3f9c4..66a4443f3 100644 --- a/test cases/frameworks/4 qt/meson.build +++ b/test cases/frameworks/4 qt/meson.build @@ -65,7 +65,7 @@ foreach qt : ['qt4', 'qt5', 'qt6'] extra_cpp_args = [] if meson.is_unity() extra_cpp_args += '-DUNITY_BUILD' - prep_rcc = qtmodule.preprocess(qt + '_unity_ressource', qresources : ['stuff.qrc', 'stuff2.qrc'], method : get_option('method')) + prep_rcc = qtmodule.preprocess(qt + '_unity_resource', qresources : ['stuff.qrc', 'stuff2.qrc'], method : get_option('method')) else prep_rcc = qtmodule.preprocess(qresources : ['stuff.qrc', 'stuff2.qrc'], method : get_option('method')) endif diff --git a/test cases/frameworks/4 qt/subfolder/meson.build b/test cases/frameworks/4 qt/subfolder/meson.build index f1b84e6ae..652d14719 100644 --- a/test cases/frameworks/4 qt/subfolder/meson.build +++ b/test cases/frameworks/4 qt/subfolder/meson.build @@ -23,7 +23,7 @@ rc_file = configure_file( extra_cpp_args = [] if meson.is_unity() extra_cpp_args += '-DUNITY_BUILD' - qresources = qtmodule.preprocess(qt + '_subfolder_unity_ressource',qresources : ['resources/stuff3.qrc', rc_file]) + qresources = qtmodule.preprocess(qt + '_subfolder_unity_resource',qresources : ['resources/stuff3.qrc', rc_file]) else qresources = qtmodule.preprocess(qresources : ['resources/stuff3.qrc', rc_file]) endif diff --git a/test cases/frameworks/7 gnome/gir/copy.py b/test cases/frameworks/7 gnome/gir/copy.py index fa70145b5..e92deaf5d 100755 --- a/test cases/frameworks/7 gnome/gir/copy.py +++ b/test cases/frameworks/7 gnome/gir/copy.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # SPDX-License-Identifier: Apache-2.0 -# Copyright © 2021 Intel Corproation +# Copyright © 2021 Intel Corporation import argparse import shutil diff --git a/test cases/frameworks/7 gnome/gir/meson.build b/test cases/frameworks/7 gnome/gir/meson.build index fbff2060e..f53eca604 100644 --- a/test cases/frameworks/7 gnome/gir/meson.build +++ b/test cases/frameworks/7 gnome/gir/meson.build @@ -4,7 +4,7 @@ libsources = ['meson-sample.c', 'meson-sample.h'] lib2sources = ['meson-sample2.c', 'meson-sample2.h'] gen_source = custom_target( - 'meson_smaple3.h', + 'meson_sample3.h', input : 'meson-sample.h', output : 'meson-sample3.h', command : [find_program('copy.py'), '@INPUT@', '@OUTPUT@'], diff --git a/test cases/linuxlike/13 cmake dependency/cmake_fake1/cmMesonTestF1Config.cmake b/test cases/linuxlike/13 cmake dependency/cmake_fake1/cmMesonTestF1Config.cmake index 4b3f81479..2d8318ffb 100644 --- a/test cases/linuxlike/13 cmake dependency/cmake_fake1/cmMesonTestF1Config.cmake +++ b/test cases/linuxlike/13 cmake dependency/cmake_fake1/cmMesonTestF1Config.cmake @@ -5,7 +5,7 @@ if(ZLIB_FOUND OR ZLIB_Found) set(cmMesonTestF1_LIBRARIES general ${ZLIB_LIBRARY}) set(cmMesonTestF1_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR}) - add_library(CMMesonTESTf1::evil_non_standard_trget UNKNOWN IMPORTED) + add_library(CMMesonTESTf1::evil_non_standard_target UNKNOWN IMPORTED) else() set(cmMesonTestF1_FOUND OFF) endif() diff --git a/test cases/linuxlike/13 cmake dependency/test.json b/test cases/linuxlike/13 cmake dependency/test.json index 1505986ee..484ce202c 100644 --- a/test cases/linuxlike/13 cmake dependency/test.json +++ b/test cases/linuxlike/13 cmake dependency/test.json @@ -8,7 +8,7 @@ "line": "WARNING: Could not find and exact match for the CMake dependency cmMesonTestF1." }, { - "line": " ['CMMesonTESTf1::evil_non_standard_trget']" + "line": " ['CMMesonTESTf1::evil_non_standard_target']" } ] } diff --git a/test cases/linuxlike/5 dependency versions/meson.build b/test cases/linuxlike/5 dependency versions/meson.build index 164e679c4..4038ee96d 100644 --- a/test cases/linuxlike/5 dependency versions/meson.build +++ b/test cases/linuxlike/5 dependency versions/meson.build @@ -82,7 +82,7 @@ assert(fakezlib_dep.type_name() == 'internal', 'fakezlib_dep should be of type " # Verify that once we got a system dependency, we won't fallback if a newer # version is requested. d = dependency('zlib', version: '>= 999', - fallback : ['donotexist', 'fakezlib_dep'], + fallback : ['nonexistent', 'fakezlib_dep'], required: false) assert(not d.found(), 'version should not match and it should not fallback') diff --git a/test cases/native/2 global arg/prog.c b/test cases/native/2 global arg/prog.c index 2a71236b6..c70a669f6 100644 --- a/test cases/native/2 global arg/prog.c +++ b/test cases/native/2 global arg/prog.c @@ -11,7 +11,7 @@ #endif #if !defined(GLOBAL_HOST) && !defined(GLOBAL_BUILD) - #error "Neither global_host nor glogal_build is set." + #error "Neither global_host nor global_build is set." #endif #if defined(GLOBAL_HOST) && defined(GLOBAL_BUILD) diff --git a/test cases/python/6 failing subproject/subprojects/bar/meson.build b/test cases/python/6 failing subproject/subprojects/bar/meson.build index 21431cace..a5534ced0 100644 --- a/test cases/python/6 failing subproject/subprojects/bar/meson.build +++ b/test cases/python/6 failing subproject/subprojects/bar/meson.build @@ -1,4 +1,4 @@ project('bar', 'cpp') python = import('python').find_installation('python3') -dependency('nonexistant-dependency') +dependency('nonexistent-dependency') diff --git a/test cases/rust/19 structured sources/meson.build b/test cases/rust/19 structured sources/meson.build index d84e83f15..d5b3909ea 100644 --- a/test cases/rust/19 structured sources/meson.build +++ b/test cases/rust/19 structured sources/meson.build @@ -27,7 +27,7 @@ target = executable( ), ) -# Should not be coppied +# Should not be copied executable( 'no_copy_target', structured_sources( diff --git a/test cases/rust/9 unit tests/test2.rs b/test cases/rust/9 unit tests/test2.rs index 9623c7c24..e06860510 100644 --- a/test cases/rust/9 unit tests/test2.rs +++ b/test cases/rust/9 unit tests/test2.rs @@ -3,8 +3,8 @@ use std::env; fn main() { let args: Vec = env::args().collect(); - let first = args[1].parse::().expect("Invliad value for first argument."); - let second = args[2].parse::().expect("Invliad value for second argument."); + let first = args[1].parse::().expect("Invalid value for first argument."); + let second = args[2].parse::().expect("Invalid value for second argument."); let new = test::add(first, second); println!("New value: {}", new); diff --git a/test cases/unit/63 cmake parser/meson.build b/test cases/unit/63 cmake parser/meson.build index 472561d69..d2a80c9e7 100644 --- a/test cases/unit/63 cmake parser/meson.build +++ b/test cases/unit/63 cmake parser/meson.build @@ -9,11 +9,11 @@ assert(dep.get_variable(cmake : 'VAR_WITH_SPACES') == 'With Spaces', 'set() with assert(dep.get_variable(cmake : 'VAR_WITHOUT_SPACES_PS') == 'NoSpaces', 'set(PARENT_SCOPE) without spaces incorrect') assert(dep.get_variable(cmake : 'VAR_WITH_SPACES_PS') == 'With Spaces', 'set(PARENT_SCOPE) with spaces incorrect') -assert(dep.get_variable(cmake : 'VAR_THAT_IS_UNSET', default_value : 'sentinal') == 'sentinal', 'set() to unset is incorrect') +assert(dep.get_variable(cmake : 'VAR_THAT_IS_UNSET', default_value : 'sentinel') == 'sentinel', 'set() to unset is incorrect') assert(dep.get_variable(cmake : 'CACHED_STRING_NS') == 'foo', 'set(CACHED) without spaces is incorrect') assert(dep.get_variable(cmake : 'CACHED_STRING_WS') == 'foo bar', 'set(CACHED STRING) with spaces is incorrect') assert(dep.get_variable(cmake : 'CACHED_STRING_ARRAY_NS') == 'foo;bar', 'set(CACHED STRING) without spaces is incorrect') assert(dep.get_variable(cmake : 'CACHED_STRING_ARRAY_WS') == 'foo;foo bar;bar', 'set(CACHED STRING[]) with spaces is incorrect') # We don't support this, so it should be unset. -assert(dep.get_variable(cmake : 'ENV{var}', default_value : 'sentinal') == 'sentinal', 'set(ENV) should be ignored') +assert(dep.get_variable(cmake : 'ENV{var}', default_value : 'sentinel') == 'sentinel', 'set(ENV) should be ignored') diff --git a/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c b/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c index 67261cb1d..fb9a9c2fb 100644 --- a/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c +++ b/test cases/unit/77 nostdlib/subprojects/mylibc/libc.c @@ -1,5 +1,5 @@ /* Do not use this as the basis of your own libc. - * The code is probably unoptimal or wonky, as I + * The code is probably suboptimal or wonky, as I * had no prior experience with this, but instead * just fiddled with the code until it worked. */ diff --git a/test cases/unit/87 run native test/meson.build b/test cases/unit/87 run native test/meson.build index 3bf419c14..e706dd790 100644 --- a/test cases/unit/87 run native test/meson.build +++ b/test cases/unit/87 run native test/meson.build @@ -1,6 +1,6 @@ project('run native test', ['c']) -executable('terget_exe', 'main.c') +executable('target_exe', 'main.c') native_exe = executable('native_exe', 'main.c', native: true) test('native_exe', native_exe, args: ['native_test_has_run.stamp']) diff --git a/test cases/unit/98 link full name/proguser/receiver.c b/test cases/unit/98 link full name/proguser/receiver.c index 65e9d8ea1..d661ae4ca 100644 --- a/test cases/unit/98 link full name/proguser/receiver.c +++ b/test cases/unit/98 link full name/proguser/receiver.c @@ -6,7 +6,7 @@ int __attribute__((weak)) get_checked(void) { #define CHECK_VALUE (100) #define TEST_SUCCESS (0) -#define TEST_FAILTURE (-1) +#define TEST_FAILURE (-1) int main(void) { if (get_checked() == CHECK_VALUE) { @@ -14,5 +14,5 @@ int main(void) { return TEST_SUCCESS; } fprintf(stdout,"bad\n"); - return TEST_FAILTURE; + return TEST_FAILURE; } diff --git a/tools/boost_names.py b/tools/boost_names.py index b716ccb8b..f27d524e0 100755 --- a/tools/boost_names.py +++ b/tools/boost_names.py @@ -277,12 +277,12 @@ def main() -> int: ''')) for mod in modules: - desc_excaped = re.sub(r"'", "\\'", mod.desc) + desc_escaped = re.sub(r"'", "\\'", mod.desc) print(textwrap.indent(textwrap.dedent(f"""\ '{mod.key}': BoostModule( name='{mod.name}', key='{mod.key}', - desc='{desc_excaped}', + desc='{desc_escaped}', libs={[x.name for x in mod.libs]}, ),\ """), ' ')) diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 0581caf91..a8ec787b8 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -679,7 +679,7 @@ class AllPlatformTests(BasePlatformTests): with open(os.path.join(self.logdir, 'testlog-good.txt'), encoding='utf-8') as f: exclude_suites_log = f.read() self.assertNotIn('buggy', exclude_suites_log) - # --suite overrides add_test_setup(xclude_suites) + # --suite overrides add_test_setup(exclude_suites) self._run(self.mtest_command + ['--setup=good', '--suite', 'buggy']) with open(os.path.join(self.logdir, 'testlog-good.txt'), encoding='utf-8') as f: include_suites_log = f.read() @@ -2228,7 +2228,7 @@ class AllPlatformTests(BasePlatformTests): msg = ('''DEPRECATION: target prog links against shared module mymod, which is incorrect. This will be an error in the future, so please use shared_library() for mymod instead. If shared_module() was used for mymod because it has references to undefined symbols, - use shared_libary() with `override_options: ['b_lundef=false']` instead.''') + use shared_library() with `override_options: ['b_lundef=false']` instead.''') self.assertIn(msg, out) def test_mixed_language_linker_check(self): diff --git a/unittests/darwintests.py b/unittests/darwintests.py index 6bf15aa26..254b3d068 100644 --- a/unittests/darwintests.py +++ b/unittests/darwintests.py @@ -138,7 +138,7 @@ class DarwinTests(BasePlatformTests): def test_objc_versions(self): # Objective-C always uses the C standard version. - # Objecttive-C++ always uses the C++ standard version. + # Objective-C++ always uses the C++ standard version. # This is what most people seem to want and in addition # it is the only setup supported by Xcode. testdir = os.path.join(self.objc_test_dir, '1 simple') diff --git a/unittests/internaltests.py b/unittests/internaltests.py index 28e536626..baeaacd62 100644 --- a/unittests/internaltests.py +++ b/unittests/internaltests.py @@ -1101,7 +1101,7 @@ class InternalTests(unittest.TestCase): _(None, mock.Mock(), ['string', 'var', 'args', 0], None) self.assertEqual(str(cm.exception), 'foo argument 4 was of type "int" but should have been "str"') - def test_typed_pos_args_varargs_invalid_mulitple_types(self) -> None: + def test_typed_pos_args_varargs_invalid_multiple_types(self) -> None: @typed_pos_args('foo', str, varargs=(str, list)) def _(obj, node, args: T.Tuple[str, T.List[str]], kwargs) -> None: self.assertTrue(False) # should not be reachable diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py index 235d7dc39..5a9c01d04 100644 --- a/unittests/machinefiletests.py +++ b/unittests/machinefiletests.py @@ -140,7 +140,7 @@ class NativeFileTests(BasePlatformTests): return batfile def helper_for_compiler(self, lang, cb, for_machine = MachineChoice.HOST): - """Helper for generating tests for overriding compilers for langaugages + """Helper for generating tests for overriding compilers for languages with more than one implementation, such as C, C++, ObjC, ObjC++, and D. """ env = get_fake_env() diff --git a/unittests/rewritetests.py b/unittests/rewritetests.py index 4979c5123..ca30fe9c2 100644 --- a/unittests/rewritetests.py +++ b/unittests/rewritetests.py @@ -156,7 +156,7 @@ class RewriterTests(BasePlatformTests): } self.assertDictEqual(out, expected) - def test_tatrget_add(self): + def test_target_add(self): self.prime('1 basic') self.rewrite(self.builddir, os.path.join(self.builddir, 'addTgt.json')) out = self.rewrite(self.builddir, os.path.join(self.builddir, 'info.json'))