Commit Graph

49 Commits

Author SHA1 Message Date
Dylan Baker e991c4d454 Use SPDX-License-Identifier consistently
This replaces all of the Apache blurbs at the start of each file with an
`# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing
uses to be consistent in capitalization, and to be placed above any
copyright notices.

This removes nearly 3000 lines of boilerplate from the project (only
python files), which no developer cares to look at.

SPDX is in common use, particularly in the Linux kernel, and is the
recommended format for Meson's own `project(license: )` field
2023-12-13 15:19:21 -05:00
Tristan Partin 1991ad8706
Remove type comments in run_project_tests.py 2023-10-04 15:23:00 -04:00
Daniel Mensinger 3e396b3782
fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
Eli Schwartz 6a0fabc647
mass rewrite of string formatting to use f-strings everywhere
performed by running "pyupgrade --py36-plus" and committing the results
2021-03-04 17:16:11 -05:00
Daniel Mensinger 0d57e307b2
typing: fully annotate tools 2020-09-08 20:15:56 +02:00
Yann Dirson ee94cb6c15
cmake2meson fix if nesting (#6676) 2020-02-23 20:19:13 +02:00
Daniel Mensinger 09b53c534f types: import typing as T (fixes #6333) 2020-01-08 15:28:17 +01:00
Michael Hirsch, Ph.D ba7428c9d3 cmake2meson: improve exceptions, add type annotations, use argparse 2019-10-19 14:28:03 +03:00
Michael Hirsch, Ph.D 2ba2c7771f allow nested if loop
close paren
2019-01-16 23:43:30 +02:00
Michael Hirsch, Ph.D 142cf1459f modernize library default syntax, be like CMake static default 2019-01-06 22:29:34 +02:00
Georg Müller 4cbca49976 cmake2meson: convert varexp to lowercase
since variable names in 'set' statements are converted to lowercase, the
variable itself should be converted to lower-case too when used.
2017-09-14 10:23:54 +02:00
Georg Müller 567b51ac71 cmake2meson: strip comments from statements
Without this change, the following correct cmake will cause an error:

statement(
    arg1
    # arg2
    arg3
)
2017-09-14 10:18:26 +02:00
Georg Müller c60c21a60d cmake2meson: convert statements to lower case
cmake does not distinguish between upper and lower case, so convert it to
lower case for the later comparisons.
2017-09-14 10:17:25 +02:00
Jussi Pakkanen b2a90f1838 Removed unnecessary pass statements. 2017-07-16 12:02:48 +03:00
Mike Sinkovsky dac8351ff1 cleanup: Unbound local variable 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 969be1f679 cleanup: Remove redundant parentheses 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 22eed4c417 cleanup: Redundant character escape 2017-01-18 21:22:47 +02:00
Mike Sinkovsky 5b626ab4cb style: [E1**] Indentation 2017-01-11 12:33:27 -05:00
Mike Sinkovsky 84902cb93a style: [E301] expected 1 blank line, found 0 2017-01-11 12:33:27 -05:00
Igor Gnatenko f0bc5568a7 style: fix E703 violations
E703: statement ends with a semicolon

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Igor Gnatenko ea570bcb67 style: fix E265 violations
E265: block comment should start with '# '

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Igor Gnatenko 2017d8578a style: fix E226 violations
E226: missing whitespace around arithmetic operator

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2017-01-01 12:02:05 -05:00
Jussi Pakkanen b55235dfbd Fix space before :. 2016-12-31 16:28:15 +02:00
Gautier Pelloux-Prayer 7a4786b01d Allow id to contain a pipe "|"
For instance in [color](https://github.com/bagage/color/blob/master/tests/CMakeLists.txt#L26) project tests contains a `|` character.
2016-10-19 00:53:28 +03:00
Gautier Pelloux-Prayer 7bd06d88d5 cmake2meson.py: Fix missing quote around options type/name 2016-10-18 22:52:43 +03:00
Elliott Sales de Andrade 859c5e28df Use context manager in scripts. 2016-08-30 04:17:47 -04:00
Jussi Pakkanen 02185132d2 Moved new ac converter from wrap repo and made shebang line use env. Closes #256. 2015-09-04 22:05:01 +03:00
Jussi Pakkanen 4b43d30309 Convert test declarations. 2014-06-04 22:11:23 +03:00
Jussi Pakkanen 9abe913a1f Convert library targets. 2014-06-04 22:08:20 +03:00
Jussi Pakkanen 355371374c Convert executable command. 2014-06-04 22:01:18 +03:00
Jussi Pakkanen 7c6861268a Convert build options. 2014-06-04 21:24:57 +03:00
Jussi Pakkanen abebfe7927 More convertisizising. 2014-06-04 21:09:03 +03:00
Jussi Pakkanen eef91d1b2f Working if else indents. 2014-06-04 20:58:40 +03:00
Jussi Pakkanen 451f6247f3 Convert function arguments. 2014-06-04 20:49:38 +03:00
Jussi Pakkanen 18cee0fca2 Convert a few more functions, can generate a simple skeleton. 2014-06-02 01:04:44 +03:00
Jussi Pakkanen 0c31155b0a Convert some function types. 2014-06-02 00:51:36 +03:00
Jussi Pakkanen c8184965c4 Comments are converted. Yay! 2014-06-02 00:20:08 +03:00
Jussi Pakkanen 053cc2e5f8 Converter is a class. 2014-06-01 23:45:43 +03:00
Jussi Pakkanen 4063efcf6a Store whole token. 2014-06-01 23:39:07 +03:00
Jussi Pakkanen 6d3e9be0e5 Some moar fixing. 2014-06-01 23:27:12 +03:00
Jussi Pakkanen 4652088c18 Work further into LLVM parsing. 2014-06-01 23:08:37 +03:00
Jussi Pakkanen 951e6d1f82 Better error message. 2014-05-31 20:42:17 +03:00
Jussi Pakkanen e8c6c09717 Count line and column numbers. 2014-05-31 20:31:28 +03:00
Jussi Pakkanen f64ba79033 Regexp fine tuning, can not parse LLVM yet. 2014-05-31 19:31:32 +03:00
Jussi Pakkanen 4fe17f484f Recurse to subdirectories. 2014-05-31 19:24:09 +03:00
Jussi Pakkanen 371e747ca4 Can parse a basic CMake list. 2014-05-25 12:14:05 +03:00
Jussi Pakkanen 3a4cdb843b Can now lex all of libcolumbus. 2014-05-25 08:01:40 +03:00
Jussi Pakkanen 7d25129c03 Parse some code. 2014-05-25 07:57:29 +03:00
Jussi Pakkanen e7ca0ab09b Experiment on writing a CMake converter. 2014-05-25 07:39:05 +03:00