tree-sitter 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +36 -0
- data/Rakefile +49 -0
- data/ext/tree-sitter/extconf.rb +34 -0
- data/ext/tree-sitter/tree-sitter.c +114 -0
- data/ext/tree-sitter/tree-sitter.h +15 -0
- data/ext/tree-sitter/tree-sitter/Makefile +360 -0
- data/ext/tree-sitter/tree-sitter/README.md +224 -0
- data/ext/tree-sitter/tree-sitter/compiler.target.mk +238 -0
- data/ext/tree-sitter/tree-sitter/doc/grammar-schema.json +249 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/CMakeLists.txt +57 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/LICENSE.md +21 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/README.md +64 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/appveyor.yml +12 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/adapters/adapter.h +12 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/adapters/adapters.h +16 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/adapters/snowhouse.h +22 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_exception.h +51 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeCloseTo.h +55 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeEmpty.h +32 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeFalsy.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeGTE.h +45 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeGreaterThan.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeLTE.h +45 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeLessThan.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeNull.h +29 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/BeTruthy.h +35 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/Contain.h +58 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/Equal.h +90 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/MatchProxy.h +43 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/Matcher.h +74 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/MatcherException.h +16 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/ThrowException.h +60 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/ValueProxy.h +26 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/matchers.h +19 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/matchers/must.h +36 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/CMakeLists.txt +49 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/LICENSE_1_0.txt +23 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/README.md +419 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/cross_compile.sh +50 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/basic_assertions.cpp +228 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/boolean_operators.cpp +48 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/container_spec.cpp +85 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/custom_matchers_test.cpp +69 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/exceptions_tests.cpp +97 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/expression_error_handling.cpp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/main.cpp +43 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/map_tests.cpp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/operator_tests.cpp +137 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/sequence_container_tests.cpp +192 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/string_line_tests.cpp +179 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/string_tests.cpp +65 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/stringize_tests.cpp +111 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/example/tests.h +16 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/assert.h +126 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/assertionexception.h +58 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/assertmacro.h +22 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/constraints.h +23 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/containsconstraint.h +80 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/endswithconstraint.h +53 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/equalsconstraint.h +83 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/equalscontainerconstraint.h +80 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/equalswithdeltaconstraint.h +51 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/expressions/andexpression.h +46 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/expressions/expression.h +38 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/expressions/expression_fwd.h +15 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/expressions/notexpression.h +44 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/expressions/orexpression.h +46 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/fulfillsconstraint.h +51 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/haslengthconstraint.h +60 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/isgreaterthanconstraint.h +55 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/isgreaterthanorequaltoconstraint.h +55 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/islessthanconstraint.h +54 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/islessthanorequaltoconstraint.h +55 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/constraints/startswithconstraint.h +52 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/exceptions.h +120 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/constraintadapter.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/constraintlist.h +91 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/expressionbuilder.h +357 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/fluent.h +38 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/andoperator.h +54 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/alloperator.h +35 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/atleastoperator.h +41 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/atmostoperator.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/collectionconstraintevaluator.h +113 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/collectionoperator.h +24 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/exactlyoperator.h +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/collections/noneoperator.h +33 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/constraintoperator.h +70 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/invalidexpressionexception.h +28 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/notoperator.h +53 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/fluent/operators/oroperator.h +55 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/snowhouse.h +33 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/stringize.h +104 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/assertion_frameworks/snowhouse/snowhouse/stringizers.h +60 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/bandit.h +44 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/context.h +97 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/external/optionparser.h +2825 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/failure_formatters/default_failure_formatter.h +30 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/failure_formatters/failure_formatter.h +13 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/failure_formatters/failure_formatters.h +16 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/failure_formatters/visual_studio_failure_formatter.h +36 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/grammar.h +185 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/listener.h +27 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/options.h +117 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/registration/registrar.h +25 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/registration/registration.h +7 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/registration/spec_registry.h +17 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/colorizer.h +141 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/dots_reporter.h +76 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/info_reporter.h +319 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/progress_reporter.h +116 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/reporters.h +53 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/single_line_reporter.h +86 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/spec_reporter.h +126 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/test_run_summary.h +90 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/reporters/xunit_reporter.h +109 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/run_policies/always_run_policy.h +16 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/run_policies/bandit_run_policy.h +168 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/run_policies/never_run_policy.h +14 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/run_policies/run_policies.h +9 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/run_policies/run_policy.h +66 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/runner.h +103 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/bandit/test_run_error.h +12 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/CMake/cotire.cmake +3695 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/CMakeLists.txt +11 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/HISTORY.md +281 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/MANUAL.md +780 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/OpenCV-2.3.1.patch +299 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/README.md +24 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/bullet-2.80-rev2531.patch +389 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clang-3.0.src.patch +35 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clang-3.1.src.patch +35 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clang-3.3.src.patch +46 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clang-3.4.src.patch +48 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clang-3.5.src.patch +39 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/clapack-3.2.1-CMAKE.patch +93 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/cmake-2.8.7.patch +218 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/cminpack-1.1.4.patch +18 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/fsedit-qt5.patch +74 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/fseditor-1.0.patch +68 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/hdf5-1.8.8.patch +118 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/libpng-1.5.9.patch +38 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/llvm-3.0.src.patch +69 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/llvm-3.1.src.patch +69 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/llvm-3.3.src.patch +128 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/llvm-3.4.src.patch +100 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/llvm-3.5.src.patch +99 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/yaml-cpp.patch +37 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/Patches/zlib-1.2.6.patch +23 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/README.md +137 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/license +22 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/CMakeLists.txt +33 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/example.cpp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/example.h +10 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/log.cpp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/log.h +10 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cmake/cotire/src/main.cpp +12 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/cross_compile.sh +43 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/before_each_after_each.spec.cpp +78 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/context.spec.cpp +44 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/describe.spec.cpp +117 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/failure_formatters/default_formatter.spec.cpp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/failure_formatters/visual_studio_failure_formatter.spec.cpp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/fakes/fake_context.h +69 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/fakes/fake_reporter.h +78 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/fakes/fakes.h +8 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/fakes/logging_fake.h +32 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/fuzzbox.spec.cpp +77 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/it.spec.cpp +355 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/main.cpp +6 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_close_to.cpp +112 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_empty.cpp +89 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_falsy.cpp +85 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_greater_than.cpp +105 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_gte.cpp +120 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_less_than.cpp +105 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_lte.cpp +119 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_null.cpp +43 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/be_truthy.cpp +85 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/contain.cpp +156 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/equal.cpp +218 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/matchers/throw_exception.cpp +105 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/options.spec.cpp +134 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/reporters/colorizer.spec.cpp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/reporters/dots_reporter.spec.cpp +206 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/reporters/info_reporter.spec.cpp +377 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/reporters/single_line_reporter.spec.cpp +201 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/reporters/xunit_reporter.spec.cpp +161 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/run.spec.cpp +77 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/run_policies/bandit_run_policy.spec.cpp +247 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/specs.h +10 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/synopsis.spec.cpp +54 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/util/argv_helper.h +62 -0
- data/ext/tree-sitter/tree-sitter/externals/bandit/specs/util/util.h +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/AUTHORS +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/DEPS +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/LICENSE +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/OWNERS +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/PRESUBMIT.py +120 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/buildbot/buildbot_run.py +190 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/codereview.settings +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/data/win/large-pdb-shim.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/gyp +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/gyp.bat +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/gyp_main.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/gyptest.py +274 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSNew.py +340 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSProject.py +208 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSSettings.py +1076 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSSettings_test.py +1483 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSToolFile.py +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSUserFile.py +147 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSUtil.py +267 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/MSVSVersion.py +409 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/__init__.py +537 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/__init__.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/common.py +521 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/common.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/common_test.py +72 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/easy_xml.py +157 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/easy_xml_test.py +103 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/flock_tool.py +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/__init__.py +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/__init__.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/android.py +1072 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/cmake.py +1143 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/dump_dependency_json.py +81 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/eclipse.py +335 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/gypd.py +87 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/gypsh.py +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/make.py +2181 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/make.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/msvs.py +3342 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/msvs_test.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/ninja.py +2160 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/ninja_test.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/xcode.py +1224 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/xcode.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/generator/xcode_test.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/input.py +2809 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/input.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/input_test.py +90 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/mac_tool.py +510 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/msvs_emulation.py +972 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/ninja_syntax.py +160 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/ordered_dict.py +289 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/win_tool.py +292 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/xcode_emulation.py +1499 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/xcode_emulation.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/xcodeproj_file.py +2889 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/xcodeproj_file.pyc +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylib/gyp/xml_fix.py +69 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/pylintrc +307 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/samples/samples +81 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/samples/samples.bat +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/setup.py +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-bare/gyptest-bare.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-bare/src/bare.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-bare/src/bare.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/gyptest-all.py +72 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/actions.gyp +226 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/copy.py +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/filter.py +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/foo.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/input.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-multiple/src/main.c +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-none/gyptest-none.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-none/src/fake_cross.py +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-none/src/foo.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-none/src/none_with_source_files.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-subdir/gyptest-action.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-subdir/src/make-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-subdir/src/none.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-subdir/src/subdir/make-subdir-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions-subdir/src/subdir/subdir.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/generated-header/action.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/generated-header/main.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/generated-header/test.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/gyptest-all.py +102 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/gyptest-default.py +69 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/gyptest-errors.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/gyptest-generated-header.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/action_missing_name.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/actions.gyp +114 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/confirm-dep-files.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir1/counter.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir1/executable.gyp +74 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir1/make-prog1.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir1/make-prog2.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir1/program.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir2/make-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir2/none.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir3/generate_main.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/actions/src/subdir3/null_input.gyp +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/additional-targets/gyptest-additional.py +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/additional-targets/src/all.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/additional-targets/src/dir1/actions.gyp +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/additional-targets/src/dir1/emit.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/additional-targets/src/dir1/lib1.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/gyptest-assembly.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/gyptest-override.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/as.bat +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/assembly.gyp +62 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/lib1.S +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/lib1.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/override.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/override_asm.asm +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/assembly/src/program.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/build-option/gyptest-build.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/build-option/hello.c +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/build-option/hello.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/gyptest-all.py +85 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/gyptest-default.py +85 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/builddir.gypi +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/func1.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/func2.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/func3.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/func4.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/func5.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/prog1.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/prog1.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/prog2.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/prog2.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/prog3.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/prog3.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/subdir4/prog4.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/builddir/src/subdir2/subdir3/subdir4/subdir5/prog5.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cflags/cflags.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cflags/cflags.gyp +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cflags/gyptest-cflags.py +104 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compilable/gyptest-headers.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compilable/src/headers.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compilable/src/lib1.cpp +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compilable/src/lib1.hpp +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compilable/src/program.cpp +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/compiler-global-settings.gyp.in +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/compiler-host.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/compiler.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/cxxtest.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/gyptest-compiler-env.py +112 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/gyptest-compiler-global-settings.py +73 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/my_cc.py +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/my_cxx.py +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/my_ld.py +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/compiler-override/test.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/basics/configurations.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/basics/configurations.gyp +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/basics/gyptest-configurations.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/inheritance/configurations.c +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/inheritance/configurations.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/inheritance/gyptest-inheritance.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/actions.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/all_dependent_settings.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/configurations.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/dependencies.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/direct_dependent_settings.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/gyptest-configurations.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/libraries.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/link_settings.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/sources.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/standalone_static_library.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/target_name.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/invalid/type.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/target_platform/configurations.gyp +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/target_platform/front.c +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/target_platform/gyptest-target_platform.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/target_platform/left.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/target_platform/right.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/x64/configurations.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/x64/configurations.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/configurations/x64/gyptest-x86.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-all.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-attribs.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-default.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-samedir.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-slash.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/gyptest-updir.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/copies-attribs.gyp +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/copies-samedir.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/copies-slash.gyp +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/copies-updir.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/copies.gyp +70 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/directory/file3 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/directory/file4 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/directory/subdir/file5 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/executable-file.sh +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/file1 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/file2 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/copies/src/parentdir/subdir/file6 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/custom-generator/gyptest-custom-generator.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/custom-generator/mygenerator.py +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/custom-generator/test.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cxxflags/cxxflags.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cxxflags/cxxflags.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/cxxflags/gyptest-cxxflags.py +65 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines-escaping/defines-escaping.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines-escaping/defines-escaping.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines-escaping/gyptest-defines-escaping.py +184 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/defines-env.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/defines.c +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/defines.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/gyptest-define-override.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/gyptest-defines-env-regyp.py +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/gyptest-defines-env.py +85 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/defines/gyptest-defines.py +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/a.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/b/b.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/b/b.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/b/b3.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/c/c.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/c/c.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/c/d.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/double_dependency.gyp +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/double_dependent.gyp +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/extra_targets.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/gyptest-double-dependency.py +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/gyptest-extra-targets.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/gyptest-lib-only.py +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/gyptest-none-traversal.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/gyptest-sharedlib-linksettings.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/lib_only.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/main.c +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/none_traversal.gyp +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/sharedlib-linksettings/program.c +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/sharedlib-linksettings/sharedlib.c +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/sharedlib-linksettings/staticlib.c +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependencies/sharedlib-linksettings/test.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependency-copy/gyptest-copy.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependency-copy/src/copies.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependency-copy/src/file1.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/dependency-copy/src/file2.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/duplicate_basenames.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/duplicate_node.gyp +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/duplicate_rule.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/duplicate_targets.gyp +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/gyptest-errors.py +47 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/missing_dep.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/errors/missing_targets.gyp +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/escaping/colon/test.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/escaping/gyptest-colon.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/exclusion/exclusion.gyp +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/exclusion/gyptest-exclusion.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/exclusion/hello.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/gyptest-cross.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/bogus1.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/bogus2.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/cross.gyp +83 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/cross_compile.gypi +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/fake_cross.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/program.cc +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/test1.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/test2.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/test3.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/test4.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/external-cross-compile/src/tochar.py +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/actions.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/actions-out/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/executable.gyp +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/make-prog1.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/make-prog2.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir1/program.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir2/actions-out/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir2/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir2/make-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/actions/subdir2/none.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/copies-out/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/copies.gyp +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/file1 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/file2 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/subdir/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/subdir/copies-out/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/subdir/file3 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/subdir/file4 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/copies/subdir/subdir.gyp +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-actions.py +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-copies.py +59 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-depth.py +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-mac-bundle.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-relocate.py +60 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-rules.py +59 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-subdir2-deep.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-symlink.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/gyptest-top-all.py +54 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/Info.plist +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/app.order +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/header.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/resource.sb +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/mac-bundle/test.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/copy-file.py +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/rules.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/define3.in0 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/define4.in0 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/executable.gyp +59 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/function1.in1 +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/function2.in1 +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir1/program.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/file1.in0 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/file2.in0 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/file3.in1 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/file4.in1 +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/none.gyp +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/rules/subdir2/rules-out/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/inc.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/inc1/include1.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/prog1.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/prog1.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/deeper/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/deeper/deeper.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/deeper/deeper.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/deeper/deeper.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/inc2/include2.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/prog2.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir2/prog2.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir3/build/README.txt +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir3/inc3/include3.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir3/prog3.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/subdir3/prog3.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/generator-output/src/symroot.gypi +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/gyp-defines/defines.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/gyp-defines/echo.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/gyp-defines/gyptest-multiple-values.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/gyp-defines/gyptest-regyp.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/a.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/a.h +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/b.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/b.h +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/c.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/c.h +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/d.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/emit.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/src/hard_dependency.gyp +78 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-all.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-default.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-disable-regyp.py +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-regyp-output.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-regyp.py +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/gyptest-target.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/hello.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/hello.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/hello2.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/hello/hello2.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/gyptest-home-includes-config-arg.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/gyptest-home-includes-config-env.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/gyptest-home-includes-regyp.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/gyptest-home-includes.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/src/all.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/home_dot_gyp/src/printfoo.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/gyptest-all.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/gyptest-default.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/inc.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/inc1/include1.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/includes.c +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/includes.gyp +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/shadow1/shadow.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/shadow2/shadow.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/subdir/inc.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/subdir/inc2/include2.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/subdir/subdir_includes.c +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/include_dirs/src/subdir/subdir_includes.gyp +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/intermediate_dir/gyptest-intermediate-dir.py +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/intermediate_dir/src/script.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/intermediate_dir/src/shared_infile.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/intermediate_dir/src/test.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/intermediate_dir/src/test2.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/English.lproj/MainMenu.xib +4119 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/English.lproj/Main_iPhone.storyboard +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/TestApp-Info.plist +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/check_no_signature.py +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/main.m +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/only-compile-in-32-bits.m +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/TestApp/only-compile-in-64-bits.m +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/test-archs.gyp +110 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/test-device.gyp +79 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/app-bundle/test.gyp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/deployment-target/check-version-min.c +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/deployment-target/deployment-target.gyp +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/gyptest-app-ios.py +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/gyptest-archs.py +106 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/gyptest-deployment-target.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ios/gyptest-per-config-settings.py +147 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/lib/README.txt +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/lib/TestCmd.py +1597 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/lib/TestCommon.py +570 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/lib/TestGyp.py +1117 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/gyptest-shared-obj-install-path.py +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/gyptest-shared.py +84 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/gyptest-static.py +84 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/lib1.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/lib1_moveable.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/lib2.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/lib2_moveable.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/library.gyp +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/program.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library/src/shared_dependency.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/gyptest-library-dirs.py +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/README.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/hello.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/mylib.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/mylib.h +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/test-win.gyp +60 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/library_dirs/subdir/test.gyp +68 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/link-objects/base.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/link-objects/extra.c +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/link-objects/gyptest-all.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/link-objects/link-objects.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/linux/gyptest-implicit-rpath.py +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/linux/implicit-rpath/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/linux/implicit-rpath/main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/linux/implicit-rpath/test.gyp +47 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/action-envvars/action/action.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/action-envvars/action/action.sh +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist-error.strings +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/English.lproj/InfoPlist.strings +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/English.lproj/MainMenu.xib +4119 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16be.strings +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/English.lproj/utf-16le.strings +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/TestApp-Info.plist +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.h +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/TestAppAppDelegate.m +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/TestApp/main.m +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/empty.c +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/test-error.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/app-bundle/test.gyp +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/empty_main.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/file.mm +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/header.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/my_file.cc +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/my_main_file.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/test-archs-multiarch.gyp +72 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/test-archs-x86_64.gyp +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/archs/test-no-archs.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/bundle-resources/change.sh +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/bundle-resources/executable-file.sh +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/bundle-resources/secret.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/bundle-resources/test.gyp +59 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/ccfile.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/ccfile_withcflags.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/cfile.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/cppfile.cpp +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/cppfile_withcflags.cpp +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/cxxfile.cxx +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/cxxfile_withcflags.cxx +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/mfile.m +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/mmfile.mm +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/mmfile_withcflags.mm +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/cflags/test.gyp +132 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-language-standard/c++11.cc +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-language-standard/c++98.cc +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-language-standard/clang-cxx-language-standard.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-library/clang-cxx-library.gyp +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-library/libc++.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/clang-cxx-library/libstdc++.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/copy-dylib/empty.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/copy-dylib/test.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/debuginfo/file.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/debuginfo/test.gyp +82 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/depend-on-bundle/English.lproj/InfoPlist.strings +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/depend-on-bundle/Info.plist +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/depend-on-bundle/bundle.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/depend-on-bundle/executable.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/depend-on-bundle/test.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/deployment-target/check-version-min.c +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/deployment-target/deployment-target.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework-dirs/calculate.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework-dirs/framework-dirs.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework-headers/myframework.h +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework-headers/myframework.m +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework-headers/test.gyp +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/English.lproj/InfoPlist.strings +2 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/Info.plist +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/ObjCVector.h +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/ObjCVector.mm +63 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/ObjCVectorInternal.h +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/TestFramework/TestFramework_Prefix.pch +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/empty.c +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/framework/framework.gyp +71 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/global-settings/src/dir1/dir1.gyp +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/global-settings/src/dir2/dir2.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/global-settings/src/dir2/file.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-action-envvars.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-app-error.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-app.py +119 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-archs.py +89 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-bundle-resources.py +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-cflags.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-clang-cxx-language-standard.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-clang-cxx-library.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-copies.py +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-copy-dylib.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-debuginfo.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-depend-on-bundle.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-deployment-target.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-framework-dirs.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-framework-headers.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-framework.py +74 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-global-settings.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-infoplist-process.py +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-installname.py +79 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-ldflags-passed-to-libtool.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-ldflags.py +68 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-libraries.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-loadable-module.py +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-missing-cfbundlesignature.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-non-strs-flattened-to-env.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-objc-arc.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-objc-gc.py +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild-copy-bundle.py +75 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild-defaults.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild-fail.py +67 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild-multiple-configurations.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild-static-library.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-postbuild.py +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-prefixheader.py +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-rebuild.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-rpath.py +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-sdkroot.py +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-sourceless-module.py +72 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-strip-default.py +95 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-strip.py +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-type-envvars.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-unicode-settings.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-xcode-env-order.py +94 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-xcode-gcc-clang.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-xcode-gcc.py +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/gyptest-xctest.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/infoplist-process/Info.plist +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/infoplist-process/main.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/infoplist-process/test1.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/infoplist-process/test2.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/infoplist-process/test3.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/installname/Info.plist +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/installname/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/installname/main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/installname/test.gyp +93 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags-libtool/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags-libtool/test.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags/subdirectory/Info.plist +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags/subdirectory/file.c +2 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags/subdirectory/symbol_list.def +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/ldflags/subdirectory/test.gyp +66 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/libraries/subdir/README.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/libraries/subdir/hello.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/libraries/subdir/mylib.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/libraries/subdir/test.gyp +65 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/loadable-module/Info.plist +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/loadable-module/module.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/loadable-module/test.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/missing-cfbundlesignature/Info.plist +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/missing-cfbundlesignature/Other-Info.plist +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/missing-cfbundlesignature/Third-Info.plist +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/missing-cfbundlesignature/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/missing-cfbundlesignature/test.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/non-strs-flattened-to-env/Info.plist +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/non-strs-flattened-to-env/main.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/non-strs-flattened-to-env/test.gyp +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/c-file.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/cc-file.cc +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/m-file-no-arc.m +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/m-file.m +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/mm-file-no-arc.mm +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/mm-file.mm +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-arc/test.gyp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/c-file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/cc-file.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/main.m +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/needs-gc-mm.mm +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/needs-gc.m +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/objc-gc/test.gyp +102 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/Framework-Info.plist +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/TestApp-Info.plist +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/copied.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/empty.c +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/main.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/postbuild-copy-framework.sh +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/resource_file.sb +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-copy-bundle/test.gyp +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-defaults/Info.plist +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-defaults/main.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-defaults/postbuild-defaults.sh +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-defaults/test.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-fail/file.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-fail/postbuild-fail.sh +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-fail/test.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-fail/touch-dynamic.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-fail/touch-static.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-multiple-configurations/main.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-multiple-configurations/postbuild-touch-file.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-multiple-configurations/test.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-static-library/empty.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-static-library/postbuild-touch-file.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuild-static-library/test.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/copy.sh +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/file.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/file_g.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/file_h.c +4 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/script/shared_library_postbuild.sh +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/script/static_library_postbuild.sh +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/subdirectory/copied_file.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/subdirectory/nested_target.gyp +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/postbuilds/test.gyp +93 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/file.cc +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/file.m +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/file.mm +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/header.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/prefixheader/test.gyp +82 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rebuild/TestApp-Info.plist +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rebuild/delay-touch.sh +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rebuild/empty.c +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rebuild/main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rebuild/test.gyp +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rpath/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rpath/main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/rpath/test.gyp +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sdkroot/file.cc +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sdkroot/test.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sdkroot/test_shorthand.sh +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sourceless-module/empty.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sourceless-module/empty.txt +2 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sourceless-module/fun.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/sourceless-module/test.gyp +96 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/file.c +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/main.c +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/strip.saves +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/subdirectory/nested_file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/subdirectory/nested_strip.saves +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/subdirectory/subdirectory.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/subdirectory/test_reading_save_file_from_postbuild.sh +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/test-defaults.gyp +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/strip/test.gyp +119 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/file.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test.gyp +100 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_bundle_executable.sh +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_bundle_loadable_module.sh +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_bundle_shared_library.sh +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_nonbundle_executable.sh +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_nonbundle_loadable_module.sh +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_nonbundle_none.sh +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_nonbundle_shared_library.sh +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/type_envvars/test_nonbundle_static_library.sh +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/unicode-settings/file.cc +2 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/unicode-settings/test.gyp +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/unicode-settings/test_bundle_display_name.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/Info.plist +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/file.ext1 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/file.ext2 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/file.ext3 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/main.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-env-order/test.gyp +121 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/aliasing.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/test-clang.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/test.gyp +60 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/valid_c.c +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/valid_cc.cc +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/valid_m.m +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/valid_mm.mm +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/warn_about_invalid_offsetof_macro.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xcode-gcc/warn_about_missing_newline.c +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/MyClass.h +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/MyClass.m +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/TestCase.m +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/resource.txt +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/test.gyp +47 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/mac/xctest/test.xcodeproj/xcshareddata/xcschemes/classes.xcscheme +69 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/dependencies.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/gyptest-dependencies.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/gyptest-noload.py +57 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/main.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/main.h +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/noload/all.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/noload/lib/shared.c +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/noload/lib/shared.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/noload/lib/shared.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make/noload/main.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/basics/gyptest-make_global_settings.py +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/basics/make_global_settings.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/env-wrapper/gyptest-wrapper.py +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/env-wrapper/wrapper.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/wrapper/gyptest-wrapper.py +47 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/make_global_settings/wrapper/wrapper.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/file0 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/file1 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/file2 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/file3 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/file4 +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/gyptest-many-actions-unsorted.py +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/gyptest-many-actions.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/many-actions-unsorted.gyp +154 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/many-actions/many-actions.gyp +1817 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/module/gyptest-default.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/module/src/lib1.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/module/src/lib2.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/module/src/module.gyp +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/module/src/program.c +111 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/buildevents/buildevents.gyp +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/buildevents/gyptest-msbuild-supports-prepostbuild.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/buildevents/gyptest-ninja-warnings.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/buildevents/main.cc +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/config_attrs/gyptest-config_attrs.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/config_attrs/hello.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/config_attrs/hello.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/express/base/base.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/express/express.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/express/gyptest-express.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/external.gyp +68 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/external_builder.py +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/gyptest-all.py +59 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/hello.cpp +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/hello.z +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/msbuild_action.py +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/external_builder/msbuild_rule.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/filters/filters.gyp +47 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/filters/gyptest-filters-2008.py +68 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/filters/gyptest-filters-2010.py +57 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/gyptest-all.py +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/hello.cpp +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/hello_exclude.gyp +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/list_excluded/hello_mac.cpp +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/missing_sources/gyptest-missing.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/missing_sources/hello_missing.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/props/AppName.props +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/props/AppName.vsprops +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/props/gyptest-props.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/props/hello.c +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/props/hello.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/common.gypi +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/gyptest-shared_output.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/hello.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/hello.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/there/there.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/shared_output/there/there.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/uldi2010/gyptest-all.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/uldi2010/hello.c +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/uldi2010/hello.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/msvs/uldi2010/hello2.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/gyptest-all.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/gyptest-default.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/src/common.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/src/multiple.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/src/prog1.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/multiple-targets/src/prog2.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/gyptest-action-dependencies.py +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/a.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/a.h +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/action_dependencies.gyp +88 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/b.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/b.h +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/c.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/c.h +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/action_dependencies/src/emit.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/chained-dependency/chained-dependency.gyp +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/chained-dependency/chained.c +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/chained-dependency/gyptest-chained-dependency.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/normalize-paths-win/gyptest-normalize-paths.py +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/normalize-paths-win/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/normalize-paths-win/normalize-paths.gyp +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/s-needs-no-depfiles/empty.s +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/s-needs-no-depfiles/gyptest-s-needs-no-depfiles.py +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/s-needs-no-depfiles/s-needs-no-depfiles.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/solibs_avoid_relinking/gyptest-solibs-avoid-relinking.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/solibs_avoid_relinking/main.cc +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/solibs_avoid_relinking/solib.cc +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/solibs_avoid_relinking/solibs_avoid_relinking.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/use-custom-environment-files/gyptest-use-custom-environment-files.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/ninja/use-custom-environment-files/use-custom-environment-files.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-cpp/gyptest-no-cpp.py +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-cpp/src/call-f-main.c +2 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-cpp/src/empty-main.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-cpp/src/f.cc +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-cpp/src/test.gyp +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-output/gyptest-no-output.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/no-output/src/nooutput.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/product/gyptest-product.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/product/hello.c +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/product/product.gyp +128 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/gyptest-prune-targets.py +64 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/lib1.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/lib2.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/lib3.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/lib_indirect.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/program.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/test1.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/prune_targets/test2.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/a/a.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/a/a.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/a/c/c.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/a/c/c.gyp +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/b/b.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/foo/b/b.gyp +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/relative/gyptest-default.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rename/filecase/file.c +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rename/filecase/test-casesensitive.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rename/filecase/test.gyp +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rename/gyptest-filecase.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/restat/gyptest-restat.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/restat/src/create_intermediate.py +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/restat/src/restat.gyp +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/restat/src/touch.py +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/gyptest-dirname.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/actions.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/copy-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/a/b/c.gencc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/a/b/c.printvars +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/foo/bar/baz.gencc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/foo/bar/baz.printvars +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/input-rule-dirname.gyp +92 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/main.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-dirname/src/subdir/printvars.py +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/gyptest-all.py +70 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/gyptest-default.py +91 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/src/main.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/src/make-sources.py +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/src/prog1.in +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/src/prog2.in +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-rebuild/src/same_target.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-use-built-dependencies/gyptest-use-built-dependencies.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-use-built-dependencies/src/main.cc +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-use-built-dependencies/src/use-built-dependencies-rule.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/gyptest-rules-variables.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/input_ext.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/input_name/test.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/input_path/subdir/test.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/subdir/input_dirname.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/subdir/test.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/test.input_root.c +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules-variables/src/variables.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/gyptest-all.py +69 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/gyptest-default.py +55 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/gyptest-input-root.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/gyptest-special-variables.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/actions.gyp +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/an_asm.S +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/as.bat +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/copy-file.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/external/external.gyp +66 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/external/file1.in +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/external/file2.in +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/input-root.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/noaction/file1.in +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/noaction/no_action_with_rules_fails.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/rule.py +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/somefile.ext +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/special-variables.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir1/executable.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir1/function1.in +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir1/function2.in +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir1/program.c +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/file1.in +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/file2.in +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/never_used.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/no_action.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/no_inputs.gyp +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir2/none.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir3/executable2.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir3/function3.in +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir3/program.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir4/asm-function.assem +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir4/build-asm.gyp +49 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/rules/src/subdir4/program.c +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/gyptest-all.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/gyptest-default.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/gyptest-library.py +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/library/one/sub.gyp +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/library/test.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/library/two/sub.gyp +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/src/all.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/src/subdir1/executable.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/src/subdir1/main1.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/src/subdir2/executable.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-gyp-name/src/subdir2/main2.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-rule-output-file-name/gyptest-all.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-rule-output-file-name/src/subdir1/subdir1.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-rule-output-file-name/src/subdir2/subdir2.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-rule-output-file-name/src/subdirs.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-rule-output-file-name/src/touch.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/gyptest-all.py +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/gyptest-default.py +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/gyptest-fail-shared.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/gyptest-fail-static.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/gyptest-pass-executable.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/all.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/double-executable.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/double-shared.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/double-static.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/func.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/prog1.c +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/prog2.c +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/prog3.c +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/subdir1/func.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-source-file-name/src/subdir2/func.c +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/gyptest-all.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/src/subdir1/subdir1.gyp +66 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/src/subdir2/subdir2.gyp +66 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/src/subdirs.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name-different-directory/src/touch.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name/gyptest-same-target-name.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name/src/all.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name/src/executable1.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/same-target-name/src/executable2.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sanitize-rule-names/blah.S +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sanitize-rule-names/gyptest-sanitize-rule-names.py +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sanitize-rule-names/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sanitize-rule-names/sanitize-rule-names.gyp +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sanitize-rule-names/script.py +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/self-dependency/common.gypi +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/self-dependency/dep.gyp +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/self-dependency/gyptest-self-dependency.py +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/self-dependency/self_dependency.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/gyptest-all.py +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/gyptest-relocate.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/src/build/all.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/src/prog1/prog1.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/src/prog1/prog1.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/src/prog2/prog2.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/sibling/src/prog2/prog2.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/small/gyptest-small.py +55 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone-static-library/gyptest-standalone-static-library.py +52 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone-static-library/invalid.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone-static-library/mylib.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone-static-library/mylib.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone-static-library/prog.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone/gyptest-standalone.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/standalone/standalone.gyp +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-SYMROOT-all.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-SYMROOT-default.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-subdir-all.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-subdir-default.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-subdir2-deep.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-top-all.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/gyptest-top-default.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/prog1.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/prog1.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/subdir/prog2.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/subdir/prog2.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/subdir/subdir2/prog3.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/subdir/subdir2/prog3.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/subdirectory/src/symroot.gypi +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/target/gyptest-target.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/target/hello.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/target/target.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toolsets/gyptest-toolsets.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toolsets/main.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toolsets/toolsets.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toolsets/toolsets.gyp +62 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toolsets/toolsets_shared.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toplevel-dir/gyptest-toplevel-dir.py +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toplevel-dir/src/sub1/main.gyp +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toplevel-dir/src/sub1/prog1.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toplevel-dir/src/sub2/prog2.c +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/toplevel-dir/src/sub2/prog2.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands-repeated.gyp +128 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands-repeated.gyp.stdout +136 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands-repeated.gypd.golden +77 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands.gyp +91 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands.gyp.ignore-env.stdout +96 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands.gyp.stdout +96 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands.gypd.golden +66 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/commands.gypi +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/gyptest-commands-ignore-env.py +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/gyptest-commands-repeated.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/gyptest-commands.py +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/test.py +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/commands/update_golden +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/filelist.gyp.stdout +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/filelist.gypd.golden +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/gyptest-filelist-golden.py +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/gyptest-filelist.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/src/dummy.py +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/src/filelist.gyp +93 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/src/filelist2.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/filelist/update_golden +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/latelate/gyptest-latelate.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/latelate/src/latelate.gyp +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/latelate/src/program.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/variable-in-path/C1/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/variable-in-path/gyptest-variable-in-path.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/variables/variable-in-path/variable-in-path.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/asm-files/asm-files.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/asm-files/b.s +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/asm-files/c.S +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/asm-files/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/batch-file-action/batch-file-action.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/batch-file-action/infile +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/batch-file-action/somecmd.bat +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/command-quote/a.S +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/command-quote/bat with spaces.bat +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/command-quote/command-quote.gyp +84 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/command-quote/go.bat +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/command-quote/subdir/and/another/in-subdir.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/additional-include-dirs.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/additional-include-dirs.gyp +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/additional-options.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/additional-options.gyp +31 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/analysis.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/buffer-security-check.gyp +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/buffer-security.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/character-set-mbcs.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/character-set-unicode.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/character-set.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/debug-format.gyp +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/default-char-is-unsigned.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/default-char-is-unsigned.gyp +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/disable-specific-warnings.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/disable-specific-warnings.gyp +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/exception-handling-on.cc +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/exception-handling.gyp +46 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/force-include-files-with-precompiled.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/force-include-files.cc +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/force-include-files.gyp +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/function-level-linking.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/function-level-linking.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/optimizations.gyp +207 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/pdbname-override.gyp +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/pdbname.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/pdbname.gyp +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/precomp.cc +6 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/rtti-on.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/rtti.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-checks.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-checks.gyp +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-library-md.cc +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-library-mdd.cc +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-library-mt.cc +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-library-mtd.cc +19 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/runtime-library.gyp +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/subdir/header.h +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type1.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/treat-wchar-t-as-built-in-type2.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/uninit.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-as-error.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-as-error.gyp +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-level.gyp +115 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-level1.cc +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-level2.cc +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-level3.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/compiler-flags/warning-level4.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/generator-output-different-drive/gyptest-generator-output-different-drive.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/generator-output-different-drive/prog.c +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/generator-output-different-drive/prog.gyp +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-asm-files.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-additional-include-dirs.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-additional-options.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-analysis.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-buffer-security-check.py +53 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-character-set.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-debug-format.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-default-char-is-unsigned.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-disable-specific-warnings.py +32 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-exception-handling.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-force-include-files.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-function-level-linking.py +52 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-optimizations.py +105 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-pdbname-override.py +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-pdbname.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-rtti.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-runtime-checks.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-runtime-library.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-treat-wchar-t-as-built-in-type.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-warning-as-error.py +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-cl-warning-level.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-command-quote.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-lib-ltcg.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-additional-deps.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-additional-options.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-aslr.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-base-address.py +62 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-debug-info.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-default-libs.py +22 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-deffile.py +43 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-defrelink.py +51 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-delay-load-dlls.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-embed-manifest.py +99 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-enable-uac.py +95 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-entrypointsymbol.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-fixed-base.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-force-symbol-reference.py +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-generate-manifest.py +127 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-incremental.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-large-address-aware.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-large-pdb.py +70 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-library-adjust.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-library-directories.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-ltcg.py +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-mapfile.py +44 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-nodefaultlib.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-nxcompat.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-opt-icf.py +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-opt-ref.py +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-ordering.py +101 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-outputfile.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-pdb-output.py +34 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-pdb.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-pgo.py +75 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-profile.py +37 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-restat-importlib.py +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-shard.py +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-subsystem.py +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-target-machine.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-tsaware.py +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-uldi.py +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-unsupported-manifest.py +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-update-manifest.py +103 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-link-warnings-as-errors.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-long-command-line.py +23 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-macro-projectname.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-macro-targetname.py +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-macro-vcinstalldir.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-macros-containing-gyp.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-macros-in-inputs-and-outputs.py +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-midl-rules.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-quoting-commands.py +25 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/gyptest-rc-build.py +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/idl-rules/basic-idl.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/idl-rules/history_indexer.idl +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/idl-rules/history_indexer_user.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/importlib/has-exports.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/importlib/hello.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/importlib/importlib.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/large-pdb/dllmain.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/large-pdb/large-pdb.gyp +98 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/large-pdb/main.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/lib-flags/answer.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/lib-flags/answer.h +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/lib-flags/ltcg.gyp +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/a/x.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/a/z.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/additional-deps.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/additional-deps.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/additional-options.gyp +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/aslr.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/b/y.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/base-address.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/debug-info.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/deffile-multiple.gyp +17 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/deffile.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/deffile.def +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/deffile.gyp +38 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/delay-load-dlls.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/delay-load.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/embed-manifest.gyp +109 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/enable-uac.gyp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/entrypointsymbol.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/entrypointsymbol.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/extra.manifest +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/extra2.manifest +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/fixed-base.gyp +52 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/force-symbol-reference.gyp +39 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/generate-manifest.gyp +166 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/incremental.gyp +65 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/inline_test.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/inline_test.h +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/inline_test_main.cc +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/large-address-aware.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/library-adjust.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/library-adjust.gyp +16 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/library-directories-define.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/library-directories-reference.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/library-directories.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/link-ordering.gyp +95 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/link-warning.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/ltcg.gyp +42 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/main-crt.c +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/manifest-in-comment.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/mapfile.cc +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/mapfile.gyp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/no-default-libs.cc +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/no-default-libs.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/nodefaultlib.cc +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/nodefaultlib.gyp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/nxcompat.gyp +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/opt-icf.cc +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/opt-icf.gyp +63 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/opt-ref.cc +11 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/opt-ref.gyp +56 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/outputfile.gyp +58 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/pdb-output.gyp +36 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/pgo.gyp +143 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/profile.gyp +50 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/program-database.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/subdir/library.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/subsystem-windows.cc +9 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/subsystem.gyp +70 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/target-machine.gyp +48 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/tsaware.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/unsupported-manifest.gyp +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/update_pgd.py +35 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/warn-as-error.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/x.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/y.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/linker-flags/z.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/long-command-line/function.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/long-command-line/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/long-command-line/long-command-line.gyp +54 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/precompiled/gyptest-all.py +21 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/precompiled/hello.c +14 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/precompiled/hello.gyp +28 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/precompiled/hello2.c +13 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/precompiled/precomp.c +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/Resource.h +26 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello.cpp +30 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello.gyp +92 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello.h +3 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello.ico +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello.rc +86 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/hello3.rc +87 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/small.ico +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/subdir/hello2.rc +87 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/subdir/include.h +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/rc-build/targetver.h +24 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/shard/hello1.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/shard/hello2.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/shard/hello3.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/shard/hello4.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/shard/shard.gyp +20 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/uldi/a.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/uldi/b.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/uldi/main.cc +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/uldi/uldi.gyp +45 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/as.py +18 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/containing-gyp.gyp +40 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/do_stuff.py +8 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/hello.cc +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/input-output-macros.gyp +33 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/input.S +0 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/projectname.gyp +29 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/stuff.blah +1 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/targetname.gyp +52 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/test_exists.py +10 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/test/win/vs-macros/vcinstalldir.gyp +41 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/README +15 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/Xcode/README +5 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/README +12 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/gyp-tests.el +63 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/gyp.el +252 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/run-unit-tests.sh +7 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/testdata/media.gyp +1105 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/graphviz.py +100 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/pretty_gyp.py +155 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/pretty_sln.py +168 -0
- data/ext/tree-sitter/tree-sitter/externals/gyp/tools/pretty_vcproj.py +329 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/AUTHORS +20 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/LICENSE +26 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/Makefile.in +68 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/README.md +97 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/bindings/python/example/test.json +88 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/bindings/python/example/test.py +11 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/bindings/python/jsonparser.pyx +9 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/bindings/python/setup.py +14 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/bindings/python/wrap_json.c +95 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/configure +3796 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/configure.ac +30 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/examples/test_json.c +180 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/json-parser.pc.in +10 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/json.c +1011 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/json.h +283 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/ext-invalid-0001.json +3 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/ext-invalid-0002.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/ext-valid-0001.json +9 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/ext-valid-0002.json +4 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/ext-valid-0003.json +3 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0000.json +0 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0001.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0002.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0003.json +88 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0004.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0005.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0006.json +3 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0007.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0008.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0009.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/invalid-0010.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/test.py +70 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0000.json +88 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0001.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0002.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0003.json +3 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0004.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0005.json +15 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0006.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0007.json +2 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0008.json +8 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0009.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0010.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0011.json +1 -0
- data/ext/tree-sitter/tree-sitter/externals/json-parser/tests/valid-0012.json +5 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/CMakeLists.txt +31 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/Doxyfile +1528 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/LICENSE.md +93 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/MANIFEST +7 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/Makefile +145 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/NEWS.md +234 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/README.md +67 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/appveyor.yml +42 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/Makefile +39 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/bench.c +56 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/icu.c +61 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/unistring.c +60 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/util.c +39 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/bench/util.h +22 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/data/Makefile +63 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/data/charwidths.jl +190 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/data/data_generator.rb +328 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/lump.md +27 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/case.c +50 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/charwidth.c +71 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/graphemetest.c +74 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/iterate.c +160 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/normtest.c +64 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/printproperty.c +51 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/tests.c +46 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/tests.h +23 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/test/valid.c +41 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/utf8proc.c +644 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/utf8proc.h +601 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/utf8proc_data.c +16752 -0
- data/ext/tree-sitter/tree-sitter/externals/utf8proc/utils.cmake +20 -0
- data/ext/tree-sitter/tree-sitter/gyp-mac-tool +511 -0
- data/ext/tree-sitter/tree-sitter/include/tree_sitter/compiler.h +32 -0
- data/ext/tree-sitter/tree-sitter/include/tree_sitter/parser.h +188 -0
- data/ext/tree-sitter/tree-sitter/include/tree_sitter/runtime.h +126 -0
- data/ext/tree-sitter/tree-sitter/out/Release/libcompiler.a +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/libruntime.a +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/linker.lock +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/externals/json-parser/json.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/externals/utf8proc/utf8proc.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/build_lex_table.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/build_parse_table.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/build_tables.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/lex_conflict_manager.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/lex_item.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/lex_item_transitions.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/lookahead_set.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/parse_item.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/parse_item_set_builder.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/recovery_tokens.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/build_tables/rule_can_be_blank.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/compile.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/generate_code/c_code.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/lex_table.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/parse_grammar.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/parse_table.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/precedence_range.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/expand_repeats.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/expand_tokens.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/extract_choices.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/extract_tokens.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/flatten_grammar.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/intern_symbols.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/is_token.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/normalize_rules.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/parse_regex.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/prepare_grammar.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/prepare_grammar/token_description.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rule.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/blank.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/built_in_symbols.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/character_range.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/character_set.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/choice.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/metadata.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/named_symbol.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/pattern.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/repeat.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/rules.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/seq.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/string.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/symbol.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/rules/visitor.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/syntax_grammar.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/util/string_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/compiler/src/compiler/variable.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/externals/utf8proc/utf8proc.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/document.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/error_costs.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/language.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/lexer.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/node.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/parser.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/stack.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/string_input.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/tree.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/runtime/src/runtime/utf16.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/build_tables/distinctive_tokens_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/build_tables/lex_conflict_manager_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/build_tables/lex_item_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/build_tables/parse_item_set_builder_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/build_tables/rule_can_be_blank_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/expand_repeats_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/expand_tokens_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/extract_choices_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/extract_tokens_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/flatten_grammar_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/intern_symbols_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/prepare_grammar/parse_regex_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/rules/character_set_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/rules/choice_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/rules/repeat_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/compiler/util/string_helpers_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/encoding_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/load_language.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/point_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/random_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/read_test_entries.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/record_alloc.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/rule_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/scope_sequence.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/spy_input.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/spy_logger.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/stderr_logger.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/stream_methods.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/helpers/tree_helpers.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/integration/compile_grammar_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/integration/corpus_specs.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/runtime/document_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/runtime/node_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/runtime/parser_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/runtime/stack_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/runtime/tree_spec.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/obj.target/tests/spec/specs.o +0 -0
- data/ext/tree-sitter/tree-sitter/out/Release/tests +0 -0
- data/ext/tree-sitter/tree-sitter/project.Makefile +6 -0
- data/ext/tree-sitter/tree-sitter/project.gyp +175 -0
- data/ext/tree-sitter/tree-sitter/runtime.target.mk +174 -0
- data/ext/tree-sitter/tree-sitter/script/check-mallocs +20 -0
- data/ext/tree-sitter/tree-sitter/script/ci +7 -0
- data/ext/tree-sitter/tree-sitter/script/clean +7 -0
- data/ext/tree-sitter/tree-sitter/script/configure +7 -0
- data/ext/tree-sitter/tree-sitter/script/fetch-fixtures +28 -0
- data/ext/tree-sitter/tree-sitter/script/format +7 -0
- data/ext/tree-sitter/tree-sitter/script/lint +14 -0
- data/ext/tree-sitter/tree-sitter/script/test +122 -0
- data/ext/tree-sitter/tree-sitter/script/trim-whitespace +3 -0
- data/ext/tree-sitter/tree-sitter/script/util/valgrind.supp +256 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/build_tables/distinctive_tokens_spec.cc +34 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/build_tables/lex_conflict_manager_spec.cc +88 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/build_tables/lex_item_spec.cc +517 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/build_tables/parse_item_set_builder_spec.cc +133 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/build_tables/rule_can_be_blank_spec.cc +60 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/expand_repeats_spec.cc +152 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/expand_tokens_spec.cc +109 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/extract_choices_spec.cc +106 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/extract_tokens_spec.cc +251 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/flatten_grammar_spec.cc +89 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/intern_symbols_spec.cc +89 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/prepare_grammar/parse_regex_spec.cc +245 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/rules/character_set_spec.cc +337 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/rules/choice_spec.cc +53 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/rules/repeat_spec.cc +22 -0
- data/ext/tree-sitter/tree-sitter/spec/compiler/util/string_helpers_spec.cc +26 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/error_corpus/c_errors.txt +130 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/error_corpus/javascript_errors.txt +157 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/error_corpus/json_errors.txt +56 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/error_corpus/python_errors.txt +29 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/external_scanners/extra_external_tokens.c +42 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/external_scanners/percent_strings.c +118 -0
- data/ext/tree-sitter/tree-sitter/spec/fixtures/external_scanners/shared_external_tokens.c +63 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/dedent.h +12 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/encoding_helpers.cc +58 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/encoding_helpers.h +15 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/equals_pointer.h +37 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/load_language.cc +206 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/load_language.h +12 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/point_helpers.cc +45 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/point_helpers.h +23 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/random_helpers.cc +35 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/random_helpers.h +8 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/read_test_entries.cc +105 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/read_test_entries.h +15 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/record_alloc.cc +84 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/record_alloc.h +16 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/rule_helpers.cc +55 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/rule_helpers.h +21 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/scope_sequence.cc +106 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/scope_sequence.h +16 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/spy_input.cc +133 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/spy_input.h +39 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/spy_logger.cc +22 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/spy_logger.h +15 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/stderr_logger.cc +22 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/stderr_logger.h +8 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/stream_methods.cc +140 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/stream_methods.h +136 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/tree_helpers.cc +50 -0
- data/ext/tree-sitter/tree-sitter/spec/helpers/tree_helpers.h +16 -0
- data/ext/tree-sitter/tree-sitter/spec/integration/compile_grammar_spec.cc +847 -0
- data/ext/tree-sitter/tree-sitter/spec/integration/corpus_specs.cc +185 -0
- data/ext/tree-sitter/tree-sitter/spec/runtime/document_spec.cc +372 -0
- data/ext/tree-sitter/tree-sitter/spec/runtime/node_spec.cc +436 -0
- data/ext/tree-sitter/tree-sitter/spec/runtime/parser_spec.cc +479 -0
- data/ext/tree-sitter/tree-sitter/spec/runtime/stack_spec.cc +571 -0
- data/ext/tree-sitter/tree-sitter/spec/runtime/tree_spec.cc +439 -0
- data/ext/tree-sitter/tree-sitter/spec/spec_helper.h +19 -0
- data/ext/tree-sitter/tree-sitter/spec/specs.cc +16 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_lex_table.cc +195 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_lex_table.h +18 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_parse_table.cc +604 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_parse_table.h +22 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_tables.cc +27 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/build_tables.h +24 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/conflict_type.h +16 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_conflict_manager.cc +55 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_conflict_manager.h +31 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_item.cc +118 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_item.h +82 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_item_transitions.cc +188 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lex_item_transitions.h +17 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lookahead_set.cc +47 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/lookahead_set.h +28 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/parse_item.cc +148 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/parse_item.h +65 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/parse_item_set_builder.cc +167 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/parse_item_set_builder.h +35 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/recovery_tokens.cc +89 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/recovery_tokens.h +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/remove_duplicate_states.h +65 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/rule_can_be_blank.cc +44 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/build_tables/rule_can_be_blank.h +14 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/compile.cc +72 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/compile.h +16 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/compile_error.h +28 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/generate_code/c_code.cc +691 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/generate_code/c_code.h +21 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/grammar.h +20 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/lex_table.cc +78 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/lex_table.h +75 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/lexical_grammar.h +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/parse_grammar.cc +335 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/parse_grammar.h +20 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/parse_table.cc +258 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/parse_table.h +106 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/precedence_range.cc +45 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/precedence_range.h +23 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/expand_repeats.cc +80 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/expand_repeats.h +16 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/expand_tokens.cc +88 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/expand_tokens.h +18 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/extract_choices.cc +55 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/extract_choices.h +15 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/extract_tokens.cc +213 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/extract_tokens.h +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/flatten_grammar.cc +124 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/flatten_grammar.h +20 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/initial_syntax_grammar.h +24 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/intern_symbols.cc +110 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/intern_symbols.h +20 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/interned_grammar.h +24 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/is_token.cc +30 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/is_token.h +14 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/normalize_rules.cc +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/normalize_rules.h +14 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/parse_regex.cc +252 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/parse_regex.h +17 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/prepare_grammar.cc +69 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/prepare_grammar.h +21 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/token_description.cc +69 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/prepare_grammar/token_description.h +15 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rule.cc +15 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rule.h +45 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules.h +28 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/blank.cc +36 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/blank.h +25 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/built_in_symbols.cc +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/built_in_symbols.h +16 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/character_range.cc +36 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/character_range.h +25 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/character_set.cc +220 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/character_set.h +59 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/choice.cc +78 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/choice.h +28 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/metadata.cc +98 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/metadata.h +51 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/named_symbol.cc +35 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/named_symbol.h +26 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/pattern.cc +36 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/pattern.h +26 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/repeat.cc +44 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/repeat.h +27 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/rules.cc +108 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/seq.cc +57 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/seq.h +29 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/string.cc +35 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/string.h +26 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/symbol.cc +82 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/symbol.h +55 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/visitor.cc +44 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/rules/visitor.h +234 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/syntax_grammar.cc +34 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/syntax_grammar.h +52 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/util/hash_combine.h +24 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/util/string_helpers.cc +54 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/util/string_helpers.h +19 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/variable.cc +11 -0
- data/ext/tree-sitter/tree-sitter/src/compiler/variable.h +27 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/alloc.h +85 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/array.h +137 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/document.c +152 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/document.h +17 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/error_costs.c +28 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/error_costs.h +25 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/language.c +56 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/language.h +70 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/length.h +59 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/lexer.c +131 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/lexer.h +40 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/node.c +393 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/node.h +8 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/parser.c +1227 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/parser.h +41 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/point.h +46 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/reduce_action.h +32 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/reusable_node.h +50 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/stack.c +658 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/stack.h +130 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/string_input.c +50 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/string_input.h +17 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/tree.c +551 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/tree.h +117 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/tree_path.h +217 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/utf16.c +24 -0
- data/ext/tree-sitter/tree-sitter/src/runtime/utf16.h +20 -0
- data/ext/tree-sitter/tree-sitter/tests.Makefile +6 -0
- data/ext/tree-sitter/tree-sitter/tests.gyp +58 -0
- data/ext/tree-sitter/tree-sitter/tests.target.mk +176 -0
- data/lib/tree-sitter.rb +11 -0
- data/lib/tree-sitter/version.rb +3 -0
- data/test/test_helper.rb +9 -0
- data/test/tree-sitter/fixtures/arithmetic/grammar.json +67 -0
- data/test/tree-sitter/fixtures/ruby/grammar.json +4803 -0
- data/test/tree-sitter/test_basic.rb +7 -0
- data/test/tree-sitter/test_document.rb +7 -0
- data/test/tree-sitter/test_grammar.rb +34 -0
- data/tree-sitter.gemspec +33 -0
- metadata +2018 -0
@@ -0,0 +1,1117 @@
|
|
1
|
+
# Copyright (c) 2012 Google Inc. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
"""
|
6
|
+
TestGyp.py: a testing framework for GYP integration tests.
|
7
|
+
"""
|
8
|
+
|
9
|
+
import collections
|
10
|
+
import itertools
|
11
|
+
import os
|
12
|
+
import re
|
13
|
+
import shutil
|
14
|
+
import stat
|
15
|
+
import subprocess
|
16
|
+
import sys
|
17
|
+
import tempfile
|
18
|
+
|
19
|
+
import TestCmd
|
20
|
+
import TestCommon
|
21
|
+
from TestCommon import __all__
|
22
|
+
|
23
|
+
__all__.extend([
|
24
|
+
'TestGyp',
|
25
|
+
])
|
26
|
+
|
27
|
+
def remove_debug_line_numbers(contents):
|
28
|
+
"""Function to remove the line numbers from the debug output
|
29
|
+
of gyp and thus remove the exremem fragility of the stdout
|
30
|
+
comparison tests.
|
31
|
+
"""
|
32
|
+
lines = contents.splitlines()
|
33
|
+
# split each line on ":"
|
34
|
+
lines = [l.split(":", 3) for l in lines]
|
35
|
+
# join each line back together while ignoring the
|
36
|
+
# 3rd column which is the line number
|
37
|
+
lines = [len(l) > 3 and ":".join(l[3:]) or l for l in lines]
|
38
|
+
return "\n".join(lines)
|
39
|
+
|
40
|
+
def match_modulo_line_numbers(contents_a, contents_b):
|
41
|
+
"""File contents matcher that ignores line numbers."""
|
42
|
+
contents_a = remove_debug_line_numbers(contents_a)
|
43
|
+
contents_b = remove_debug_line_numbers(contents_b)
|
44
|
+
return TestCommon.match_exact(contents_a, contents_b)
|
45
|
+
|
46
|
+
class TestGypBase(TestCommon.TestCommon):
|
47
|
+
"""
|
48
|
+
Class for controlling end-to-end tests of gyp generators.
|
49
|
+
|
50
|
+
Instantiating this class will create a temporary directory and
|
51
|
+
arrange for its destruction (via the TestCmd superclass) and
|
52
|
+
copy all of the non-gyptest files in the directory hierarchy of the
|
53
|
+
executing script.
|
54
|
+
|
55
|
+
The default behavior is to test the 'gyp' or 'gyp.bat' file in the
|
56
|
+
current directory. An alternative may be specified explicitly on
|
57
|
+
instantiation, or by setting the TESTGYP_GYP environment variable.
|
58
|
+
|
59
|
+
This class should be subclassed for each supported gyp generator
|
60
|
+
(format). Various abstract methods below define calling signatures
|
61
|
+
used by the test scripts to invoke builds on the generated build
|
62
|
+
configuration and to run executables generated by those builds.
|
63
|
+
"""
|
64
|
+
|
65
|
+
build_tool = None
|
66
|
+
build_tool_list = []
|
67
|
+
|
68
|
+
_exe = TestCommon.exe_suffix
|
69
|
+
_obj = TestCommon.obj_suffix
|
70
|
+
shobj_ = TestCommon.shobj_prefix
|
71
|
+
_shobj = TestCommon.shobj_suffix
|
72
|
+
lib_ = TestCommon.lib_prefix
|
73
|
+
_lib = TestCommon.lib_suffix
|
74
|
+
dll_ = TestCommon.dll_prefix
|
75
|
+
_dll = TestCommon.dll_suffix
|
76
|
+
|
77
|
+
# Constants to represent different targets.
|
78
|
+
ALL = '__all__'
|
79
|
+
DEFAULT = '__default__'
|
80
|
+
|
81
|
+
# Constants for different target types.
|
82
|
+
EXECUTABLE = '__executable__'
|
83
|
+
STATIC_LIB = '__static_lib__'
|
84
|
+
SHARED_LIB = '__shared_lib__'
|
85
|
+
|
86
|
+
def __init__(self, gyp=None, *args, **kw):
|
87
|
+
self.origin_cwd = os.path.abspath(os.path.dirname(sys.argv[0]))
|
88
|
+
self.extra_args = sys.argv[1:]
|
89
|
+
|
90
|
+
if not gyp:
|
91
|
+
gyp = os.environ.get('TESTGYP_GYP')
|
92
|
+
if not gyp:
|
93
|
+
if sys.platform == 'win32':
|
94
|
+
gyp = 'gyp.bat'
|
95
|
+
else:
|
96
|
+
gyp = 'gyp'
|
97
|
+
self.gyp = os.path.abspath(gyp)
|
98
|
+
self.no_parallel = False
|
99
|
+
|
100
|
+
self.initialize_build_tool()
|
101
|
+
|
102
|
+
kw.setdefault('match', TestCommon.match_exact)
|
103
|
+
|
104
|
+
# Put test output in out/testworkarea by default.
|
105
|
+
# Use temporary names so there are no collisions.
|
106
|
+
workdir = os.path.join('out', kw.get('workdir', 'testworkarea'))
|
107
|
+
# Create work area if it doesn't already exist.
|
108
|
+
if not os.path.isdir(workdir):
|
109
|
+
os.makedirs(workdir)
|
110
|
+
|
111
|
+
kw['workdir'] = tempfile.mktemp(prefix='testgyp.', dir=workdir)
|
112
|
+
|
113
|
+
formats = kw.pop('formats', [])
|
114
|
+
|
115
|
+
super(TestGypBase, self).__init__(*args, **kw)
|
116
|
+
|
117
|
+
excluded_formats = set([f for f in formats if f[0] == '!'])
|
118
|
+
included_formats = set(formats) - excluded_formats
|
119
|
+
if ('!'+self.format in excluded_formats or
|
120
|
+
included_formats and self.format not in included_formats):
|
121
|
+
msg = 'Invalid test for %r format; skipping test.\n'
|
122
|
+
self.skip_test(msg % self.format)
|
123
|
+
|
124
|
+
self.copy_test_configuration(self.origin_cwd, self.workdir)
|
125
|
+
self.set_configuration(None)
|
126
|
+
|
127
|
+
# Set $HOME so that gyp doesn't read the user's actual
|
128
|
+
# ~/.gyp/include.gypi file, which may contain variables
|
129
|
+
# and other settings that would change the output.
|
130
|
+
os.environ['HOME'] = self.workpath()
|
131
|
+
# Clear $GYP_DEFINES for the same reason.
|
132
|
+
if 'GYP_DEFINES' in os.environ:
|
133
|
+
del os.environ['GYP_DEFINES']
|
134
|
+
|
135
|
+
def built_file_must_exist(self, name, type=None, **kw):
|
136
|
+
"""
|
137
|
+
Fails the test if the specified built file name does not exist.
|
138
|
+
"""
|
139
|
+
return self.must_exist(self.built_file_path(name, type, **kw))
|
140
|
+
|
141
|
+
def built_file_must_not_exist(self, name, type=None, **kw):
|
142
|
+
"""
|
143
|
+
Fails the test if the specified built file name exists.
|
144
|
+
"""
|
145
|
+
return self.must_not_exist(self.built_file_path(name, type, **kw))
|
146
|
+
|
147
|
+
def built_file_must_match(self, name, contents, **kw):
|
148
|
+
"""
|
149
|
+
Fails the test if the contents of the specified built file name
|
150
|
+
do not match the specified contents.
|
151
|
+
"""
|
152
|
+
return self.must_match(self.built_file_path(name, **kw), contents)
|
153
|
+
|
154
|
+
def built_file_must_not_match(self, name, contents, **kw):
|
155
|
+
"""
|
156
|
+
Fails the test if the contents of the specified built file name
|
157
|
+
match the specified contents.
|
158
|
+
"""
|
159
|
+
return self.must_not_match(self.built_file_path(name, **kw), contents)
|
160
|
+
|
161
|
+
def built_file_must_not_contain(self, name, contents, **kw):
|
162
|
+
"""
|
163
|
+
Fails the test if the specified built file name contains the specified
|
164
|
+
contents.
|
165
|
+
"""
|
166
|
+
return self.must_not_contain(self.built_file_path(name, **kw), contents)
|
167
|
+
|
168
|
+
def copy_test_configuration(self, source_dir, dest_dir):
|
169
|
+
"""
|
170
|
+
Copies the test configuration from the specified source_dir
|
171
|
+
(the directory in which the test script lives) to the
|
172
|
+
specified dest_dir (a temporary working directory).
|
173
|
+
|
174
|
+
This ignores all files and directories that begin with
|
175
|
+
the string 'gyptest', and all '.svn' subdirectories.
|
176
|
+
"""
|
177
|
+
for root, dirs, files in os.walk(source_dir):
|
178
|
+
if '.svn' in dirs:
|
179
|
+
dirs.remove('.svn')
|
180
|
+
dirs = [ d for d in dirs if not d.startswith('gyptest') ]
|
181
|
+
files = [ f for f in files if not f.startswith('gyptest') ]
|
182
|
+
for dirname in dirs:
|
183
|
+
source = os.path.join(root, dirname)
|
184
|
+
destination = source.replace(source_dir, dest_dir)
|
185
|
+
os.mkdir(destination)
|
186
|
+
if sys.platform != 'win32':
|
187
|
+
shutil.copystat(source, destination)
|
188
|
+
for filename in files:
|
189
|
+
source = os.path.join(root, filename)
|
190
|
+
destination = source.replace(source_dir, dest_dir)
|
191
|
+
shutil.copy2(source, destination)
|
192
|
+
|
193
|
+
def initialize_build_tool(self):
|
194
|
+
"""
|
195
|
+
Initializes the .build_tool attribute.
|
196
|
+
|
197
|
+
Searches the .build_tool_list for an executable name on the user's
|
198
|
+
$PATH. The first tool on the list is used as-is if nothing is found
|
199
|
+
on the current $PATH.
|
200
|
+
"""
|
201
|
+
for build_tool in self.build_tool_list:
|
202
|
+
if not build_tool:
|
203
|
+
continue
|
204
|
+
if os.path.isabs(build_tool):
|
205
|
+
self.build_tool = build_tool
|
206
|
+
return
|
207
|
+
build_tool = self.where_is(build_tool)
|
208
|
+
if build_tool:
|
209
|
+
self.build_tool = build_tool
|
210
|
+
return
|
211
|
+
|
212
|
+
if self.build_tool_list:
|
213
|
+
self.build_tool = self.build_tool_list[0]
|
214
|
+
|
215
|
+
def relocate(self, source, destination):
|
216
|
+
"""
|
217
|
+
Renames (relocates) the specified source (usually a directory)
|
218
|
+
to the specified destination, creating the destination directory
|
219
|
+
first if necessary.
|
220
|
+
|
221
|
+
Note: Don't use this as a generic "rename" operation. In the
|
222
|
+
future, "relocating" parts of a GYP tree may affect the state of
|
223
|
+
the test to modify the behavior of later method calls.
|
224
|
+
"""
|
225
|
+
destination_dir = os.path.dirname(destination)
|
226
|
+
if not os.path.exists(destination_dir):
|
227
|
+
self.subdir(destination_dir)
|
228
|
+
os.rename(source, destination)
|
229
|
+
|
230
|
+
def report_not_up_to_date(self):
|
231
|
+
"""
|
232
|
+
Reports that a build is not up-to-date.
|
233
|
+
|
234
|
+
This provides common reporting for formats that have complicated
|
235
|
+
conditions for checking whether a build is up-to-date. Formats
|
236
|
+
that expect exact output from the command (make) can
|
237
|
+
just set stdout= when they call the run_build() method.
|
238
|
+
"""
|
239
|
+
print "Build is not up-to-date:"
|
240
|
+
print self.banner('STDOUT ')
|
241
|
+
print self.stdout()
|
242
|
+
stderr = self.stderr()
|
243
|
+
if stderr:
|
244
|
+
print self.banner('STDERR ')
|
245
|
+
print stderr
|
246
|
+
|
247
|
+
def run_gyp(self, gyp_file, *args, **kw):
|
248
|
+
"""
|
249
|
+
Runs gyp against the specified gyp_file with the specified args.
|
250
|
+
"""
|
251
|
+
|
252
|
+
# When running gyp, and comparing its output we use a comparitor
|
253
|
+
# that ignores the line numbers that gyp logs in its debug output.
|
254
|
+
if kw.pop('ignore_line_numbers', False):
|
255
|
+
kw.setdefault('match', match_modulo_line_numbers)
|
256
|
+
|
257
|
+
# TODO: --depth=. works around Chromium-specific tree climbing.
|
258
|
+
depth = kw.pop('depth', '.')
|
259
|
+
run_args = ['--depth='+depth, '--format='+self.format, gyp_file]
|
260
|
+
if self.no_parallel:
|
261
|
+
run_args += ['--no-parallel']
|
262
|
+
run_args.extend(self.extra_args)
|
263
|
+
run_args.extend(args)
|
264
|
+
return self.run(program=self.gyp, arguments=run_args, **kw)
|
265
|
+
|
266
|
+
def run(self, *args, **kw):
|
267
|
+
"""
|
268
|
+
Executes a program by calling the superclass .run() method.
|
269
|
+
|
270
|
+
This exists to provide a common place to filter out keyword
|
271
|
+
arguments implemented in this layer, without having to update
|
272
|
+
the tool-specific subclasses or clutter the tests themselves
|
273
|
+
with platform-specific code.
|
274
|
+
"""
|
275
|
+
if kw.has_key('SYMROOT'):
|
276
|
+
del kw['SYMROOT']
|
277
|
+
super(TestGypBase, self).run(*args, **kw)
|
278
|
+
|
279
|
+
def set_configuration(self, configuration):
|
280
|
+
"""
|
281
|
+
Sets the configuration, to be used for invoking the build
|
282
|
+
tool and testing potential built output.
|
283
|
+
"""
|
284
|
+
self.configuration = configuration
|
285
|
+
|
286
|
+
def configuration_dirname(self):
|
287
|
+
if self.configuration:
|
288
|
+
return self.configuration.split('|')[0]
|
289
|
+
else:
|
290
|
+
return 'Default'
|
291
|
+
|
292
|
+
def configuration_buildname(self):
|
293
|
+
if self.configuration:
|
294
|
+
return self.configuration
|
295
|
+
else:
|
296
|
+
return 'Default'
|
297
|
+
|
298
|
+
#
|
299
|
+
# Abstract methods to be defined by format-specific subclasses.
|
300
|
+
#
|
301
|
+
|
302
|
+
def build(self, gyp_file, target=None, **kw):
|
303
|
+
"""
|
304
|
+
Runs a build of the specified target against the configuration
|
305
|
+
generated from the specified gyp_file.
|
306
|
+
|
307
|
+
A 'target' argument of None or the special value TestGyp.DEFAULT
|
308
|
+
specifies the default argument for the underlying build tool.
|
309
|
+
A 'target' argument of TestGyp.ALL specifies the 'all' target
|
310
|
+
(if any) of the underlying build tool.
|
311
|
+
"""
|
312
|
+
raise NotImplementedError
|
313
|
+
|
314
|
+
def built_file_path(self, name, type=None, **kw):
|
315
|
+
"""
|
316
|
+
Returns a path to the specified file name, of the specified type.
|
317
|
+
"""
|
318
|
+
raise NotImplementedError
|
319
|
+
|
320
|
+
def built_file_basename(self, name, type=None, **kw):
|
321
|
+
"""
|
322
|
+
Returns the base name of the specified file name, of the specified type.
|
323
|
+
|
324
|
+
A bare=True keyword argument specifies that prefixes and suffixes shouldn't
|
325
|
+
be applied.
|
326
|
+
"""
|
327
|
+
if not kw.get('bare'):
|
328
|
+
if type == self.EXECUTABLE:
|
329
|
+
name = name + self._exe
|
330
|
+
elif type == self.STATIC_LIB:
|
331
|
+
name = self.lib_ + name + self._lib
|
332
|
+
elif type == self.SHARED_LIB:
|
333
|
+
name = self.dll_ + name + self._dll
|
334
|
+
return name
|
335
|
+
|
336
|
+
def run_built_executable(self, name, *args, **kw):
|
337
|
+
"""
|
338
|
+
Runs an executable program built from a gyp-generated configuration.
|
339
|
+
|
340
|
+
The specified name should be independent of any particular generator.
|
341
|
+
Subclasses should find the output executable in the appropriate
|
342
|
+
output build directory, tack on any necessary executable suffix, etc.
|
343
|
+
"""
|
344
|
+
raise NotImplementedError
|
345
|
+
|
346
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
347
|
+
"""
|
348
|
+
Verifies that a build of the specified target is up to date.
|
349
|
+
|
350
|
+
The subclass should implement this by calling build()
|
351
|
+
(or a reasonable equivalent), checking whatever conditions
|
352
|
+
will tell it the build was an "up to date" null build, and
|
353
|
+
failing if it isn't.
|
354
|
+
"""
|
355
|
+
raise NotImplementedError
|
356
|
+
|
357
|
+
|
358
|
+
class TestGypGypd(TestGypBase):
|
359
|
+
"""
|
360
|
+
Subclass for testing the GYP 'gypd' generator (spit out the
|
361
|
+
internal data structure as pretty-printed Python).
|
362
|
+
"""
|
363
|
+
format = 'gypd'
|
364
|
+
def __init__(self, gyp=None, *args, **kw):
|
365
|
+
super(TestGypGypd, self).__init__(*args, **kw)
|
366
|
+
# gypd implies the use of 'golden' files, so parallelizing conflicts as it
|
367
|
+
# causes ordering changes.
|
368
|
+
self.no_parallel = True
|
369
|
+
|
370
|
+
|
371
|
+
class TestGypCustom(TestGypBase):
|
372
|
+
"""
|
373
|
+
Subclass for testing the GYP with custom generator
|
374
|
+
"""
|
375
|
+
|
376
|
+
def __init__(self, gyp=None, *args, **kw):
|
377
|
+
self.format = kw.pop("format")
|
378
|
+
super(TestGypCustom, self).__init__(*args, **kw)
|
379
|
+
|
380
|
+
|
381
|
+
class TestGypAndroid(TestGypBase):
|
382
|
+
"""
|
383
|
+
Subclass for testing the GYP Android makefile generator. Note that
|
384
|
+
build/envsetup.sh and lunch must have been run before running tests.
|
385
|
+
|
386
|
+
TODO: This is currently an incomplete implementation. We do not support
|
387
|
+
run_built_executable(), so we pass only tests which do not use this. As a
|
388
|
+
result, support for host targets is not properly tested.
|
389
|
+
"""
|
390
|
+
format = 'android'
|
391
|
+
|
392
|
+
# Note that we can't use mmm as the build tool because ...
|
393
|
+
# - it builds all targets, whereas we need to pass a target
|
394
|
+
# - it is a function, whereas the test runner assumes the build tool is a file
|
395
|
+
# Instead we use make and duplicate the logic from mmm.
|
396
|
+
build_tool_list = ['make']
|
397
|
+
|
398
|
+
# We use our custom target 'gyp_all_modules', as opposed to the 'all_modules'
|
399
|
+
# target used by mmm, to build only those targets which are part of the gyp
|
400
|
+
# target 'all'.
|
401
|
+
ALL = 'gyp_all_modules'
|
402
|
+
|
403
|
+
def __init__(self, gyp=None, *args, **kw):
|
404
|
+
# Android requires build and test output to be inside its source tree.
|
405
|
+
# We use the following working directory for the test's source, but the
|
406
|
+
# test's build output still goes to $ANDROID_PRODUCT_OUT.
|
407
|
+
# Note that some tests explicitly set format='gypd' to invoke the gypd
|
408
|
+
# backend. This writes to the source tree, but there's no way around this.
|
409
|
+
kw['workdir'] = os.path.join('/tmp', 'gyptest',
|
410
|
+
kw.get('workdir', 'testworkarea'))
|
411
|
+
# We need to remove all gyp outputs from out/. Ths is because some tests
|
412
|
+
# don't have rules to regenerate output, so they will simply re-use stale
|
413
|
+
# output if present. Since the test working directory gets regenerated for
|
414
|
+
# each test run, this can confuse things.
|
415
|
+
# We don't have a list of build outputs because we don't know which
|
416
|
+
# dependent targets were built. Instead we delete all gyp-generated output.
|
417
|
+
# This may be excessive, but should be safe.
|
418
|
+
out_dir = os.environ['ANDROID_PRODUCT_OUT']
|
419
|
+
obj_dir = os.path.join(out_dir, 'obj')
|
420
|
+
shutil.rmtree(os.path.join(obj_dir, 'GYP'), ignore_errors = True)
|
421
|
+
for x in ['EXECUTABLES', 'STATIC_LIBRARIES', 'SHARED_LIBRARIES']:
|
422
|
+
for d in os.listdir(os.path.join(obj_dir, x)):
|
423
|
+
if d.endswith('_gyp_intermediates'):
|
424
|
+
shutil.rmtree(os.path.join(obj_dir, x, d), ignore_errors = True)
|
425
|
+
for x in [os.path.join('obj', 'lib'), os.path.join('system', 'lib')]:
|
426
|
+
for d in os.listdir(os.path.join(out_dir, x)):
|
427
|
+
if d.endswith('_gyp.so'):
|
428
|
+
os.remove(os.path.join(out_dir, x, d))
|
429
|
+
|
430
|
+
super(TestGypAndroid, self).__init__(*args, **kw)
|
431
|
+
|
432
|
+
def target_name(self, target):
|
433
|
+
if target == self.ALL:
|
434
|
+
return self.ALL
|
435
|
+
# The default target is 'droid'. However, we want to use our special target
|
436
|
+
# to build only the gyp target 'all'.
|
437
|
+
if target in (None, self.DEFAULT):
|
438
|
+
return self.ALL
|
439
|
+
return target
|
440
|
+
|
441
|
+
def build(self, gyp_file, target=None, **kw):
|
442
|
+
"""
|
443
|
+
Runs a build using the Android makefiles generated from the specified
|
444
|
+
gyp_file. This logic is taken from Android's mmm.
|
445
|
+
"""
|
446
|
+
arguments = kw.get('arguments', [])[:]
|
447
|
+
arguments.append(self.target_name(target))
|
448
|
+
arguments.append('-C')
|
449
|
+
arguments.append(os.environ['ANDROID_BUILD_TOP'])
|
450
|
+
kw['arguments'] = arguments
|
451
|
+
chdir = kw.get('chdir', '')
|
452
|
+
makefile = os.path.join(self.workdir, chdir, 'GypAndroid.mk')
|
453
|
+
os.environ['ONE_SHOT_MAKEFILE'] = makefile
|
454
|
+
result = self.run(program=self.build_tool, **kw)
|
455
|
+
del os.environ['ONE_SHOT_MAKEFILE']
|
456
|
+
return result
|
457
|
+
|
458
|
+
def android_module(self, group, name, subdir):
|
459
|
+
if subdir:
|
460
|
+
name = '%s_%s' % (subdir, name)
|
461
|
+
if group == 'SHARED_LIBRARIES':
|
462
|
+
name = 'lib_%s' % name
|
463
|
+
return '%s_gyp' % name
|
464
|
+
|
465
|
+
def intermediates_dir(self, group, module_name):
|
466
|
+
return os.path.join(os.environ['ANDROID_PRODUCT_OUT'], 'obj', group,
|
467
|
+
'%s_intermediates' % module_name)
|
468
|
+
|
469
|
+
def built_file_path(self, name, type=None, **kw):
|
470
|
+
"""
|
471
|
+
Returns a path to the specified file name, of the specified type,
|
472
|
+
as built by Android. Note that we don't support the configuration
|
473
|
+
parameter.
|
474
|
+
"""
|
475
|
+
# Built files are in $ANDROID_PRODUCT_OUT. This requires copying logic from
|
476
|
+
# the Android build system.
|
477
|
+
if type == None:
|
478
|
+
return os.path.join(os.environ['ANDROID_PRODUCT_OUT'], 'obj', 'GYP',
|
479
|
+
'shared_intermediates', name)
|
480
|
+
subdir = kw.get('subdir')
|
481
|
+
if type == self.EXECUTABLE:
|
482
|
+
# We don't install executables
|
483
|
+
group = 'EXECUTABLES'
|
484
|
+
module_name = self.android_module(group, name, subdir)
|
485
|
+
return os.path.join(self.intermediates_dir(group, module_name), name)
|
486
|
+
if type == self.STATIC_LIB:
|
487
|
+
group = 'STATIC_LIBRARIES'
|
488
|
+
module_name = self.android_module(group, name, subdir)
|
489
|
+
return os.path.join(self.intermediates_dir(group, module_name),
|
490
|
+
'%s.a' % module_name)
|
491
|
+
if type == self.SHARED_LIB:
|
492
|
+
group = 'SHARED_LIBRARIES'
|
493
|
+
module_name = self.android_module(group, name, subdir)
|
494
|
+
return os.path.join(self.intermediates_dir(group, module_name), 'LINKED',
|
495
|
+
'%s.so' % module_name)
|
496
|
+
assert False, 'Unhandled type'
|
497
|
+
|
498
|
+
def run_built_executable(self, name, *args, **kw):
|
499
|
+
"""
|
500
|
+
Runs an executable program built from a gyp-generated configuration.
|
501
|
+
|
502
|
+
This is not correctly implemented for Android. For now, we simply check
|
503
|
+
that the executable file exists.
|
504
|
+
"""
|
505
|
+
# Running executables requires a device. Even if we build for target x86,
|
506
|
+
# the binary is not built with the correct toolchain options to actually
|
507
|
+
# run on the host.
|
508
|
+
|
509
|
+
# Copied from TestCommon.run()
|
510
|
+
match = kw.pop('match', self.match)
|
511
|
+
status = None
|
512
|
+
if os.path.exists(self.built_file_path(name)):
|
513
|
+
status = 1
|
514
|
+
self._complete(None, None, None, None, status, match)
|
515
|
+
|
516
|
+
def match_single_line(self, lines = None, expected_line = None):
|
517
|
+
"""
|
518
|
+
Checks that specified line appears in the text.
|
519
|
+
"""
|
520
|
+
for line in lines.split('\n'):
|
521
|
+
if line == expected_line:
|
522
|
+
return 1
|
523
|
+
return
|
524
|
+
|
525
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
526
|
+
"""
|
527
|
+
Verifies that a build of the specified target is up to date.
|
528
|
+
"""
|
529
|
+
kw['stdout'] = ("make: Nothing to be done for `%s'." %
|
530
|
+
self.target_name(target))
|
531
|
+
|
532
|
+
# We need to supply a custom matcher, since we don't want to depend on the
|
533
|
+
# exact stdout string.
|
534
|
+
kw['match'] = self.match_single_line
|
535
|
+
return self.build(gyp_file, target, **kw)
|
536
|
+
|
537
|
+
|
538
|
+
class TestGypCMake(TestGypBase):
|
539
|
+
"""
|
540
|
+
Subclass for testing the GYP CMake generator, using cmake's ninja backend.
|
541
|
+
"""
|
542
|
+
format = 'cmake'
|
543
|
+
build_tool_list = ['cmake']
|
544
|
+
ALL = 'all'
|
545
|
+
|
546
|
+
def cmake_build(self, gyp_file, target=None, **kw):
|
547
|
+
arguments = kw.get('arguments', [])[:]
|
548
|
+
|
549
|
+
self.build_tool_list = ['cmake']
|
550
|
+
self.initialize_build_tool()
|
551
|
+
|
552
|
+
chdir = os.path.join(kw.get('chdir', '.'),
|
553
|
+
'out',
|
554
|
+
self.configuration_dirname())
|
555
|
+
kw['chdir'] = chdir
|
556
|
+
|
557
|
+
arguments.append('-G')
|
558
|
+
arguments.append('Ninja')
|
559
|
+
|
560
|
+
kw['arguments'] = arguments
|
561
|
+
|
562
|
+
stderr = kw.get('stderr', None)
|
563
|
+
if stderr:
|
564
|
+
kw['stderr'] = stderr.split('$$$')[0]
|
565
|
+
|
566
|
+
self.run(program=self.build_tool, **kw)
|
567
|
+
|
568
|
+
def ninja_build(self, gyp_file, target=None, **kw):
|
569
|
+
arguments = kw.get('arguments', [])[:]
|
570
|
+
|
571
|
+
self.build_tool_list = ['ninja']
|
572
|
+
self.initialize_build_tool()
|
573
|
+
|
574
|
+
# Add a -C output/path to the command line.
|
575
|
+
arguments.append('-C')
|
576
|
+
arguments.append(os.path.join('out', self.configuration_dirname()))
|
577
|
+
|
578
|
+
if target not in (None, self.DEFAULT):
|
579
|
+
arguments.append(target)
|
580
|
+
|
581
|
+
kw['arguments'] = arguments
|
582
|
+
|
583
|
+
stderr = kw.get('stderr', None)
|
584
|
+
if stderr:
|
585
|
+
stderrs = stderr.split('$$$')
|
586
|
+
kw['stderr'] = stderrs[1] if len(stderrs) > 1 else ''
|
587
|
+
|
588
|
+
return self.run(program=self.build_tool, **kw)
|
589
|
+
|
590
|
+
def build(self, gyp_file, target=None, status=0, **kw):
|
591
|
+
# Two tools must be run to build, cmake and the ninja.
|
592
|
+
# Allow cmake to succeed when the overall expectation is to fail.
|
593
|
+
if status is None:
|
594
|
+
kw['status'] = None
|
595
|
+
else:
|
596
|
+
if not isinstance(status, collections.Iterable): status = (status,)
|
597
|
+
kw['status'] = list(itertools.chain((0,), status))
|
598
|
+
self.cmake_build(gyp_file, target, **kw)
|
599
|
+
kw['status'] = status
|
600
|
+
self.ninja_build(gyp_file, target, **kw)
|
601
|
+
|
602
|
+
def run_built_executable(self, name, *args, **kw):
|
603
|
+
# Enclosing the name in a list avoids prepending the original dir.
|
604
|
+
program = [self.built_file_path(name, type=self.EXECUTABLE, **kw)]
|
605
|
+
if sys.platform == 'darwin':
|
606
|
+
configuration = self.configuration_dirname()
|
607
|
+
os.environ['DYLD_LIBRARY_PATH'] = os.path.join('out', configuration)
|
608
|
+
return self.run(program=program, *args, **kw)
|
609
|
+
|
610
|
+
def built_file_path(self, name, type=None, **kw):
|
611
|
+
result = []
|
612
|
+
chdir = kw.get('chdir')
|
613
|
+
if chdir:
|
614
|
+
result.append(chdir)
|
615
|
+
result.append('out')
|
616
|
+
result.append(self.configuration_dirname())
|
617
|
+
if type == self.STATIC_LIB:
|
618
|
+
if sys.platform != 'darwin':
|
619
|
+
result.append('obj.target')
|
620
|
+
elif type == self.SHARED_LIB:
|
621
|
+
if sys.platform != 'darwin' and sys.platform != 'win32':
|
622
|
+
result.append('lib.target')
|
623
|
+
subdir = kw.get('subdir')
|
624
|
+
if subdir and type != self.SHARED_LIB:
|
625
|
+
result.append(subdir)
|
626
|
+
result.append(self.built_file_basename(name, type, **kw))
|
627
|
+
return self.workpath(*result)
|
628
|
+
|
629
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
630
|
+
result = self.ninja_build(gyp_file, target, **kw)
|
631
|
+
if not result:
|
632
|
+
stdout = self.stdout()
|
633
|
+
if 'ninja: no work to do' not in stdout:
|
634
|
+
self.report_not_up_to_date()
|
635
|
+
self.fail_test()
|
636
|
+
return result
|
637
|
+
|
638
|
+
|
639
|
+
class TestGypMake(TestGypBase):
|
640
|
+
"""
|
641
|
+
Subclass for testing the GYP Make generator.
|
642
|
+
"""
|
643
|
+
format = 'make'
|
644
|
+
build_tool_list = ['make']
|
645
|
+
ALL = 'all'
|
646
|
+
def build(self, gyp_file, target=None, **kw):
|
647
|
+
"""
|
648
|
+
Runs a Make build using the Makefiles generated from the specified
|
649
|
+
gyp_file.
|
650
|
+
"""
|
651
|
+
arguments = kw.get('arguments', [])[:]
|
652
|
+
if self.configuration:
|
653
|
+
arguments.append('BUILDTYPE=' + self.configuration)
|
654
|
+
if target not in (None, self.DEFAULT):
|
655
|
+
arguments.append(target)
|
656
|
+
# Sub-directory builds provide per-gyp Makefiles (i.e.
|
657
|
+
# Makefile.gyp_filename), so use that if there is no Makefile.
|
658
|
+
chdir = kw.get('chdir', '')
|
659
|
+
if not os.path.exists(os.path.join(chdir, 'Makefile')):
|
660
|
+
print "NO Makefile in " + os.path.join(chdir, 'Makefile')
|
661
|
+
arguments.insert(0, '-f')
|
662
|
+
arguments.insert(1, os.path.splitext(gyp_file)[0] + '.Makefile')
|
663
|
+
kw['arguments'] = arguments
|
664
|
+
return self.run(program=self.build_tool, **kw)
|
665
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
666
|
+
"""
|
667
|
+
Verifies that a build of the specified Make target is up to date.
|
668
|
+
"""
|
669
|
+
if target in (None, self.DEFAULT):
|
670
|
+
message_target = 'all'
|
671
|
+
else:
|
672
|
+
message_target = target
|
673
|
+
kw['stdout'] = "make: Nothing to be done for `%s'.\n" % message_target
|
674
|
+
return self.build(gyp_file, target, **kw)
|
675
|
+
def run_built_executable(self, name, *args, **kw):
|
676
|
+
"""
|
677
|
+
Runs an executable built by Make.
|
678
|
+
"""
|
679
|
+
configuration = self.configuration_dirname()
|
680
|
+
libdir = os.path.join('out', configuration, 'lib')
|
681
|
+
# TODO(piman): when everything is cross-compile safe, remove lib.target
|
682
|
+
if sys.platform == 'darwin':
|
683
|
+
# Mac puts target shared libraries right in the product directory.
|
684
|
+
configuration = self.configuration_dirname()
|
685
|
+
os.environ['DYLD_LIBRARY_PATH'] = (
|
686
|
+
libdir + '.host:' + os.path.join('out', configuration))
|
687
|
+
else:
|
688
|
+
os.environ['LD_LIBRARY_PATH'] = libdir + '.host:' + libdir + '.target'
|
689
|
+
# Enclosing the name in a list avoids prepending the original dir.
|
690
|
+
program = [self.built_file_path(name, type=self.EXECUTABLE, **kw)]
|
691
|
+
return self.run(program=program, *args, **kw)
|
692
|
+
def built_file_path(self, name, type=None, **kw):
|
693
|
+
"""
|
694
|
+
Returns a path to the specified file name, of the specified type,
|
695
|
+
as built by Make.
|
696
|
+
|
697
|
+
Built files are in the subdirectory 'out/{configuration}'.
|
698
|
+
The default is 'out/Default'.
|
699
|
+
|
700
|
+
A chdir= keyword argument specifies the source directory
|
701
|
+
relative to which the output subdirectory can be found.
|
702
|
+
|
703
|
+
"type" values of STATIC_LIB or SHARED_LIB append the necessary
|
704
|
+
prefixes and suffixes to a platform-independent library base name.
|
705
|
+
|
706
|
+
A subdir= keyword argument specifies a library subdirectory within
|
707
|
+
the default 'obj.target'.
|
708
|
+
"""
|
709
|
+
result = []
|
710
|
+
chdir = kw.get('chdir')
|
711
|
+
if chdir:
|
712
|
+
result.append(chdir)
|
713
|
+
configuration = self.configuration_dirname()
|
714
|
+
result.extend(['out', configuration])
|
715
|
+
if type == self.STATIC_LIB and sys.platform != 'darwin':
|
716
|
+
result.append('obj.target')
|
717
|
+
elif type == self.SHARED_LIB and sys.platform != 'darwin':
|
718
|
+
result.append('lib.target')
|
719
|
+
subdir = kw.get('subdir')
|
720
|
+
if subdir and type != self.SHARED_LIB:
|
721
|
+
result.append(subdir)
|
722
|
+
result.append(self.built_file_basename(name, type, **kw))
|
723
|
+
return self.workpath(*result)
|
724
|
+
|
725
|
+
|
726
|
+
def ConvertToCygpath(path):
|
727
|
+
"""Convert to cygwin path if we are using cygwin."""
|
728
|
+
if sys.platform == 'cygwin':
|
729
|
+
p = subprocess.Popen(['cygpath', path], stdout=subprocess.PIPE)
|
730
|
+
path = p.communicate()[0].strip()
|
731
|
+
return path
|
732
|
+
|
733
|
+
|
734
|
+
def FindVisualStudioInstallation():
|
735
|
+
"""Returns appropriate values for .build_tool and .uses_msbuild fields
|
736
|
+
of TestGypBase for Visual Studio.
|
737
|
+
|
738
|
+
We use the value specified by GYP_MSVS_VERSION. If not specified, we
|
739
|
+
search %PATH% and %PATHEXT% for a devenv.{exe,bat,...} executable.
|
740
|
+
Failing that, we search for likely deployment paths.
|
741
|
+
"""
|
742
|
+
possible_roots = ['%s:\\Program Files%s' % (chr(drive), suffix)
|
743
|
+
for drive in range(ord('C'), ord('Z') + 1)
|
744
|
+
for suffix in ['', ' (x86)']]
|
745
|
+
possible_paths = {
|
746
|
+
'2013': r'Microsoft Visual Studio 12.0\Common7\IDE\devenv.com',
|
747
|
+
'2012': r'Microsoft Visual Studio 11.0\Common7\IDE\devenv.com',
|
748
|
+
'2010': r'Microsoft Visual Studio 10.0\Common7\IDE\devenv.com',
|
749
|
+
'2008': r'Microsoft Visual Studio 9.0\Common7\IDE\devenv.com',
|
750
|
+
'2005': r'Microsoft Visual Studio 8\Common7\IDE\devenv.com'}
|
751
|
+
|
752
|
+
possible_roots = [ConvertToCygpath(r) for r in possible_roots]
|
753
|
+
|
754
|
+
msvs_version = 'auto'
|
755
|
+
for flag in (f for f in sys.argv if f.startswith('msvs_version=')):
|
756
|
+
msvs_version = flag.split('=')[-1]
|
757
|
+
msvs_version = os.environ.get('GYP_MSVS_VERSION', msvs_version)
|
758
|
+
|
759
|
+
build_tool = None
|
760
|
+
if msvs_version in possible_paths:
|
761
|
+
# Check that the path to the specified GYP_MSVS_VERSION exists.
|
762
|
+
path = possible_paths[msvs_version]
|
763
|
+
for r in possible_roots:
|
764
|
+
bt = os.path.join(r, path)
|
765
|
+
if os.path.exists(bt):
|
766
|
+
build_tool = bt
|
767
|
+
uses_msbuild = msvs_version >= '2010'
|
768
|
+
return build_tool, uses_msbuild
|
769
|
+
else:
|
770
|
+
print ('Warning: Environment variable GYP_MSVS_VERSION specifies "%s" '
|
771
|
+
'but corresponding "%s" was not found.' % (msvs_version, path))
|
772
|
+
if build_tool:
|
773
|
+
# We found 'devenv' on the path, use that and try to guess the version.
|
774
|
+
for version, path in possible_paths.iteritems():
|
775
|
+
if build_tool.find(path) >= 0:
|
776
|
+
uses_msbuild = version >= '2010'
|
777
|
+
return build_tool, uses_msbuild
|
778
|
+
else:
|
779
|
+
# If not, assume not MSBuild.
|
780
|
+
uses_msbuild = False
|
781
|
+
return build_tool, uses_msbuild
|
782
|
+
# Neither GYP_MSVS_VERSION nor the path help us out. Iterate through
|
783
|
+
# the choices looking for a match.
|
784
|
+
for version in sorted(possible_paths, reverse=True):
|
785
|
+
path = possible_paths[version]
|
786
|
+
for r in possible_roots:
|
787
|
+
bt = os.path.join(r, path)
|
788
|
+
if os.path.exists(bt):
|
789
|
+
build_tool = bt
|
790
|
+
uses_msbuild = msvs_version >= '2010'
|
791
|
+
return build_tool, uses_msbuild
|
792
|
+
print 'Error: could not find devenv'
|
793
|
+
sys.exit(1)
|
794
|
+
|
795
|
+
class TestGypOnMSToolchain(TestGypBase):
|
796
|
+
"""
|
797
|
+
Common subclass for testing generators that target the Microsoft Visual
|
798
|
+
Studio toolchain (cl, link, dumpbin, etc.)
|
799
|
+
"""
|
800
|
+
@staticmethod
|
801
|
+
def _ComputeVsvarsPath(devenv_path):
|
802
|
+
devenv_dir = os.path.split(devenv_path)[0]
|
803
|
+
vsvars_path = os.path.join(devenv_path, '../../Tools/vsvars32.bat')
|
804
|
+
return vsvars_path
|
805
|
+
|
806
|
+
def initialize_build_tool(self):
|
807
|
+
super(TestGypOnMSToolchain, self).initialize_build_tool()
|
808
|
+
if sys.platform in ('win32', 'cygwin'):
|
809
|
+
self.devenv_path, self.uses_msbuild = FindVisualStudioInstallation()
|
810
|
+
self.vsvars_path = TestGypOnMSToolchain._ComputeVsvarsPath(
|
811
|
+
self.devenv_path)
|
812
|
+
|
813
|
+
def run_dumpbin(self, *dumpbin_args):
|
814
|
+
"""Run the dumpbin tool with the specified arguments, and capturing and
|
815
|
+
returning stdout."""
|
816
|
+
assert sys.platform in ('win32', 'cygwin')
|
817
|
+
cmd = os.environ.get('COMSPEC', 'cmd.exe')
|
818
|
+
arguments = [cmd, '/c', self.vsvars_path, '&&', 'dumpbin']
|
819
|
+
arguments.extend(dumpbin_args)
|
820
|
+
proc = subprocess.Popen(arguments, stdout=subprocess.PIPE)
|
821
|
+
output = proc.communicate()[0]
|
822
|
+
assert not proc.returncode
|
823
|
+
return output
|
824
|
+
|
825
|
+
class TestGypNinja(TestGypOnMSToolchain):
|
826
|
+
"""
|
827
|
+
Subclass for testing the GYP Ninja generator.
|
828
|
+
"""
|
829
|
+
format = 'ninja'
|
830
|
+
build_tool_list = ['ninja']
|
831
|
+
ALL = 'all'
|
832
|
+
DEFAULT = 'all'
|
833
|
+
|
834
|
+
def run_gyp(self, gyp_file, *args, **kw):
|
835
|
+
TestGypBase.run_gyp(self, gyp_file, *args, **kw)
|
836
|
+
|
837
|
+
def build(self, gyp_file, target=None, **kw):
|
838
|
+
arguments = kw.get('arguments', [])[:]
|
839
|
+
|
840
|
+
# Add a -C output/path to the command line.
|
841
|
+
arguments.append('-C')
|
842
|
+
arguments.append(os.path.join('out', self.configuration_dirname()))
|
843
|
+
|
844
|
+
if target is None:
|
845
|
+
target = 'all'
|
846
|
+
arguments.append(target)
|
847
|
+
|
848
|
+
kw['arguments'] = arguments
|
849
|
+
return self.run(program=self.build_tool, **kw)
|
850
|
+
|
851
|
+
def run_built_executable(self, name, *args, **kw):
|
852
|
+
# Enclosing the name in a list avoids prepending the original dir.
|
853
|
+
program = [self.built_file_path(name, type=self.EXECUTABLE, **kw)]
|
854
|
+
if sys.platform == 'darwin':
|
855
|
+
configuration = self.configuration_dirname()
|
856
|
+
os.environ['DYLD_LIBRARY_PATH'] = os.path.join('out', configuration)
|
857
|
+
return self.run(program=program, *args, **kw)
|
858
|
+
|
859
|
+
def built_file_path(self, name, type=None, **kw):
|
860
|
+
result = []
|
861
|
+
chdir = kw.get('chdir')
|
862
|
+
if chdir:
|
863
|
+
result.append(chdir)
|
864
|
+
result.append('out')
|
865
|
+
result.append(self.configuration_dirname())
|
866
|
+
if type == self.STATIC_LIB:
|
867
|
+
if sys.platform != 'darwin':
|
868
|
+
result.append('obj')
|
869
|
+
elif type == self.SHARED_LIB:
|
870
|
+
if sys.platform != 'darwin' and sys.platform != 'win32':
|
871
|
+
result.append('lib')
|
872
|
+
subdir = kw.get('subdir')
|
873
|
+
if subdir and type != self.SHARED_LIB:
|
874
|
+
result.append(subdir)
|
875
|
+
result.append(self.built_file_basename(name, type, **kw))
|
876
|
+
return self.workpath(*result)
|
877
|
+
|
878
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
879
|
+
result = self.build(gyp_file, target, **kw)
|
880
|
+
if not result:
|
881
|
+
stdout = self.stdout()
|
882
|
+
if 'ninja: no work to do' not in stdout:
|
883
|
+
self.report_not_up_to_date()
|
884
|
+
self.fail_test()
|
885
|
+
return result
|
886
|
+
|
887
|
+
|
888
|
+
class TestGypMSVS(TestGypOnMSToolchain):
|
889
|
+
"""
|
890
|
+
Subclass for testing the GYP Visual Studio generator.
|
891
|
+
"""
|
892
|
+
format = 'msvs'
|
893
|
+
|
894
|
+
u = r'=== Build: 0 succeeded, 0 failed, (\d+) up-to-date, 0 skipped ==='
|
895
|
+
up_to_date_re = re.compile(u, re.M)
|
896
|
+
|
897
|
+
# Initial None element will indicate to our .initialize_build_tool()
|
898
|
+
# method below that 'devenv' was not found on %PATH%.
|
899
|
+
#
|
900
|
+
# Note: we must use devenv.com to be able to capture build output.
|
901
|
+
# Directly executing devenv.exe only sends output to BuildLog.htm.
|
902
|
+
build_tool_list = [None, 'devenv.com']
|
903
|
+
|
904
|
+
def initialize_build_tool(self):
|
905
|
+
super(TestGypMSVS, self).initialize_build_tool()
|
906
|
+
self.build_tool = self.devenv_path
|
907
|
+
|
908
|
+
def build(self, gyp_file, target=None, rebuild=False, clean=False, **kw):
|
909
|
+
"""
|
910
|
+
Runs a Visual Studio build using the configuration generated
|
911
|
+
from the specified gyp_file.
|
912
|
+
"""
|
913
|
+
configuration = self.configuration_buildname()
|
914
|
+
if clean:
|
915
|
+
build = '/Clean'
|
916
|
+
elif rebuild:
|
917
|
+
build = '/Rebuild'
|
918
|
+
else:
|
919
|
+
build = '/Build'
|
920
|
+
arguments = kw.get('arguments', [])[:]
|
921
|
+
arguments.extend([gyp_file.replace('.gyp', '.sln'),
|
922
|
+
build, configuration])
|
923
|
+
# Note: the Visual Studio generator doesn't add an explicit 'all'
|
924
|
+
# target, so we just treat it the same as the default.
|
925
|
+
if target not in (None, self.ALL, self.DEFAULT):
|
926
|
+
arguments.extend(['/Project', target])
|
927
|
+
if self.configuration:
|
928
|
+
arguments.extend(['/ProjectConfig', self.configuration])
|
929
|
+
kw['arguments'] = arguments
|
930
|
+
return self.run(program=self.build_tool, **kw)
|
931
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
932
|
+
"""
|
933
|
+
Verifies that a build of the specified Visual Studio target is up to date.
|
934
|
+
|
935
|
+
Beware that VS2010 will behave strangely if you build under
|
936
|
+
C:\USERS\yourname\AppData\Local. It will cause needless work. The ouptut
|
937
|
+
will be "1 succeeded and 0 up to date". MSBuild tracing reveals that:
|
938
|
+
"Project 'C:\Users\...\AppData\Local\...vcxproj' not up to date because
|
939
|
+
'C:\PROGRAM FILES (X86)\MICROSOFT VISUAL STUDIO 10.0\VC\BIN\1033\CLUI.DLL'
|
940
|
+
was modified at 02/21/2011 17:03:30, which is newer than '' which was
|
941
|
+
modified at 01/01/0001 00:00:00.
|
942
|
+
|
943
|
+
The workaround is to specify a workdir when instantiating the test, e.g.
|
944
|
+
test = TestGyp.TestGyp(workdir='workarea')
|
945
|
+
"""
|
946
|
+
result = self.build(gyp_file, target, **kw)
|
947
|
+
if not result:
|
948
|
+
stdout = self.stdout()
|
949
|
+
|
950
|
+
m = self.up_to_date_re.search(stdout)
|
951
|
+
up_to_date = m and int(m.group(1)) > 0
|
952
|
+
if not up_to_date:
|
953
|
+
self.report_not_up_to_date()
|
954
|
+
self.fail_test()
|
955
|
+
return result
|
956
|
+
def run_built_executable(self, name, *args, **kw):
|
957
|
+
"""
|
958
|
+
Runs an executable built by Visual Studio.
|
959
|
+
"""
|
960
|
+
configuration = self.configuration_dirname()
|
961
|
+
# Enclosing the name in a list avoids prepending the original dir.
|
962
|
+
program = [self.built_file_path(name, type=self.EXECUTABLE, **kw)]
|
963
|
+
return self.run(program=program, *args, **kw)
|
964
|
+
def built_file_path(self, name, type=None, **kw):
|
965
|
+
"""
|
966
|
+
Returns a path to the specified file name, of the specified type,
|
967
|
+
as built by Visual Studio.
|
968
|
+
|
969
|
+
Built files are in a subdirectory that matches the configuration
|
970
|
+
name. The default is 'Default'.
|
971
|
+
|
972
|
+
A chdir= keyword argument specifies the source directory
|
973
|
+
relative to which the output subdirectory can be found.
|
974
|
+
|
975
|
+
"type" values of STATIC_LIB or SHARED_LIB append the necessary
|
976
|
+
prefixes and suffixes to a platform-independent library base name.
|
977
|
+
"""
|
978
|
+
result = []
|
979
|
+
chdir = kw.get('chdir')
|
980
|
+
if chdir:
|
981
|
+
result.append(chdir)
|
982
|
+
result.append(self.configuration_dirname())
|
983
|
+
if type == self.STATIC_LIB:
|
984
|
+
result.append('lib')
|
985
|
+
result.append(self.built_file_basename(name, type, **kw))
|
986
|
+
return self.workpath(*result)
|
987
|
+
|
988
|
+
|
989
|
+
class TestGypXcode(TestGypBase):
|
990
|
+
"""
|
991
|
+
Subclass for testing the GYP Xcode generator.
|
992
|
+
"""
|
993
|
+
format = 'xcode'
|
994
|
+
build_tool_list = ['xcodebuild']
|
995
|
+
|
996
|
+
phase_script_execution = ("\n"
|
997
|
+
"PhaseScriptExecution /\\S+/Script-[0-9A-F]+\\.sh\n"
|
998
|
+
" cd /\\S+\n"
|
999
|
+
" /bin/sh -c /\\S+/Script-[0-9A-F]+\\.sh\n"
|
1000
|
+
"(make: Nothing to be done for `all'\\.\n)?")
|
1001
|
+
|
1002
|
+
strip_up_to_date_expressions = [
|
1003
|
+
# Various actions or rules can run even when the overall build target
|
1004
|
+
# is up to date. Strip those phases' GYP-generated output.
|
1005
|
+
re.compile(phase_script_execution, re.S),
|
1006
|
+
|
1007
|
+
# The message from distcc_pump can trail the "BUILD SUCCEEDED"
|
1008
|
+
# message, so strip that, too.
|
1009
|
+
re.compile('__________Shutting down distcc-pump include server\n', re.S),
|
1010
|
+
]
|
1011
|
+
|
1012
|
+
up_to_date_endings = (
|
1013
|
+
'Checking Dependencies...\n** BUILD SUCCEEDED **\n', # Xcode 3.0/3.1
|
1014
|
+
'Check dependencies\n** BUILD SUCCEEDED **\n\n', # Xcode 3.2
|
1015
|
+
'Check dependencies\n\n\n** BUILD SUCCEEDED **\n\n', # Xcode 4.2
|
1016
|
+
'Check dependencies\n\n** BUILD SUCCEEDED **\n\n', # Xcode 5.0
|
1017
|
+
)
|
1018
|
+
|
1019
|
+
def build(self, gyp_file, target=None, **kw):
|
1020
|
+
"""
|
1021
|
+
Runs an xcodebuild using the .xcodeproj generated from the specified
|
1022
|
+
gyp_file.
|
1023
|
+
"""
|
1024
|
+
# Be sure we're working with a copy of 'arguments' since we modify it.
|
1025
|
+
# The caller may not be expecting it to be modified.
|
1026
|
+
arguments = kw.get('arguments', [])[:]
|
1027
|
+
arguments.extend(['-project', gyp_file.replace('.gyp', '.xcodeproj')])
|
1028
|
+
if target == self.ALL:
|
1029
|
+
arguments.append('-alltargets',)
|
1030
|
+
elif target not in (None, self.DEFAULT):
|
1031
|
+
arguments.extend(['-target', target])
|
1032
|
+
if self.configuration:
|
1033
|
+
arguments.extend(['-configuration', self.configuration])
|
1034
|
+
symroot = kw.get('SYMROOT', '$SRCROOT/build')
|
1035
|
+
if symroot:
|
1036
|
+
arguments.append('SYMROOT='+symroot)
|
1037
|
+
kw['arguments'] = arguments
|
1038
|
+
|
1039
|
+
# Work around spurious stderr output from Xcode 4, http://crbug.com/181012
|
1040
|
+
match = kw.pop('match', self.match)
|
1041
|
+
def match_filter_xcode(actual, expected):
|
1042
|
+
if actual:
|
1043
|
+
if not TestCmd.is_List(actual):
|
1044
|
+
actual = actual.split('\n')
|
1045
|
+
if not TestCmd.is_List(expected):
|
1046
|
+
expected = expected.split('\n')
|
1047
|
+
actual = [a for a in actual
|
1048
|
+
if 'No recorder, buildTask: <Xcode3BuildTask:' not in a]
|
1049
|
+
return match(actual, expected)
|
1050
|
+
kw['match'] = match_filter_xcode
|
1051
|
+
|
1052
|
+
return self.run(program=self.build_tool, **kw)
|
1053
|
+
def up_to_date(self, gyp_file, target=None, **kw):
|
1054
|
+
"""
|
1055
|
+
Verifies that a build of the specified Xcode target is up to date.
|
1056
|
+
"""
|
1057
|
+
result = self.build(gyp_file, target, **kw)
|
1058
|
+
if not result:
|
1059
|
+
output = self.stdout()
|
1060
|
+
for expression in self.strip_up_to_date_expressions:
|
1061
|
+
output = expression.sub('', output)
|
1062
|
+
if not output.endswith(self.up_to_date_endings):
|
1063
|
+
self.report_not_up_to_date()
|
1064
|
+
self.fail_test()
|
1065
|
+
return result
|
1066
|
+
def run_built_executable(self, name, *args, **kw):
|
1067
|
+
"""
|
1068
|
+
Runs an executable built by xcodebuild.
|
1069
|
+
"""
|
1070
|
+
configuration = self.configuration_dirname()
|
1071
|
+
os.environ['DYLD_LIBRARY_PATH'] = os.path.join('build', configuration)
|
1072
|
+
# Enclosing the name in a list avoids prepending the original dir.
|
1073
|
+
program = [self.built_file_path(name, type=self.EXECUTABLE, **kw)]
|
1074
|
+
return self.run(program=program, *args, **kw)
|
1075
|
+
def built_file_path(self, name, type=None, **kw):
|
1076
|
+
"""
|
1077
|
+
Returns a path to the specified file name, of the specified type,
|
1078
|
+
as built by Xcode.
|
1079
|
+
|
1080
|
+
Built files are in the subdirectory 'build/{configuration}'.
|
1081
|
+
The default is 'build/Default'.
|
1082
|
+
|
1083
|
+
A chdir= keyword argument specifies the source directory
|
1084
|
+
relative to which the output subdirectory can be found.
|
1085
|
+
|
1086
|
+
"type" values of STATIC_LIB or SHARED_LIB append the necessary
|
1087
|
+
prefixes and suffixes to a platform-independent library base name.
|
1088
|
+
"""
|
1089
|
+
result = []
|
1090
|
+
chdir = kw.get('chdir')
|
1091
|
+
if chdir:
|
1092
|
+
result.append(chdir)
|
1093
|
+
configuration = self.configuration_dirname()
|
1094
|
+
result.extend(['build', configuration])
|
1095
|
+
result.append(self.built_file_basename(name, type, **kw))
|
1096
|
+
return self.workpath(*result)
|
1097
|
+
|
1098
|
+
|
1099
|
+
format_class_list = [
|
1100
|
+
TestGypGypd,
|
1101
|
+
TestGypAndroid,
|
1102
|
+
TestGypCMake,
|
1103
|
+
TestGypMake,
|
1104
|
+
TestGypMSVS,
|
1105
|
+
TestGypNinja,
|
1106
|
+
TestGypXcode,
|
1107
|
+
]
|
1108
|
+
|
1109
|
+
def TestGyp(*args, **kw):
|
1110
|
+
"""
|
1111
|
+
Returns an appropriate TestGyp* instance for a specified GYP format.
|
1112
|
+
"""
|
1113
|
+
format = kw.pop('format', os.environ.get('TESTGYP_FORMAT'))
|
1114
|
+
for format_class in format_class_list:
|
1115
|
+
if format == format_class.format:
|
1116
|
+
return format_class(*args, **kw)
|
1117
|
+
raise Exception, "unknown format %r" % format
|