Commit Graph

21 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
Eli Schwartz 906aec0df5
ac_converter: use better style for header check iteration
underscorifying and upper casing the header name is superior to
duplicating it.
2022-04-14 18:37:03 -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
Michael Brockus c0a9bca627 Update Python2 syntax to Python3 syntax in ghwt.py 2019-12-06 14:43:21 +02:00
Michael Hirsch, Ph.D 6e708208dd CI: add initial type annotation checking 2019-11-07 22:18:21 +02:00
Jussi Pakkanen 4c00297112 Improve ac_converter to print a help message. 2017-07-31 11:20:09 +01:00
Jussi Pakkanen cdfb416425 Removed duplicate key in dictionary. 2017-07-16 12:01:01 +03:00
Jussi Pakkanen 5311a274e3 A few typo fixes in the converter script. 2017-06-04 20:19:15 +03:00
Jussi Pakkanen 83e778118d Added more functions to the list of checks. 2017-06-04 14:14:14 +03:00
Igor Gnatenko 969dc7e995 style: fix E124 violations
E124: closing bracket does not match visual indentation

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
Igor Gnatenko 1df8c5c62b tools/ac_converter: couple of trivial fixes (#867)
W: 31, 4: Duplicate key 'HAVE_UNSETENV' in dictionary (duplicate-key)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* tools/ac_converter: fix undefined variable 'func'

E:283,11: Undefined variable 'func' (undefined-variable)

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

* tools/ac_converter: use spaces properly in HAVE_SOCKET

C: 97, 0: Exactly one space required after comma
     'HAVE_SOCKET' : ('socket',' sys/socket.h'),
                              ^ (bad-whitespace)

This also might cause some issue after conversion.

Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-10-07 21:04:46 +03:00
Iain Lane 84d5f97b21 loop over `sizes'
I ran `ac_converter.py`, and it crashed

```
Traceback (most recent call last):
  File "ac_converter.py", line 299, in <module>
    for elem, typename in size:
```

I think it's a typo like this.
2016-09-04 15:57:09 +01:00
Elliott Sales de Andrade 859c5e28df Use context manager in scripts. 2016-08-30 04:17:47 -04:00
Jussi Pakkanen af0e3e2675 Use our config template rather than Autoconf's. 2016-08-14 10:31:58 +03:00
Jussi Pakkanen 7f4ecfc742 A few more checks for ac converter tool. 2016-08-13 19:30:28 +03:00
Jussi Pakkanen f663465b6b Convert socket checks. 2016-07-28 20:06:41 +03:00
Jussi Pakkanen 134468d4a5 A few more checks for converter. 2015-11-20 12:33:09 +02:00
Jussi Pakkanen 324a262680 More checks for converter. 2015-11-12 20:49:59 +02: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