* The Grand Reformat
- everything made prettier...literally
- some tweaks to include a few more files, including documentation
- minor changes to format style
- some tiny `// prettier-ignore` changes to keep a few things the way we like them
- a couple of super minor tweaks to embedded document types to ensure they format correctly
* All semver comparisons now ensure it's safe to do so
* Oops, use correct class
* Remove leftover import
* Leave the Zig fixes for another PR
* Fix linter
* Fix test issues
* Make linter happy, yet again
* What?
* Address PR review
* Initial sketch for how we could parse Rust output
It has many issues, which I need to ask about, but ey, it works!
* Fix spacing
* Add tests for the new Rust output parsing
RISC-V became a default backend in Clang 9.0. This commit enables the
use of the RISC-V backend for Clang in versions:
- 9.0.0
- 10.0.0
- 10.0.1
- 11.0.0
I also did a few other tidy-ups:
- I ensured that these could use more headers for rv64, by adding the
`--gcc-toolchain` and `--sysroot` args to point to the rv64 8.2.0
cross-compiled gcc toolchain.
- I updated the `-mabi` for rv64gc so it matches what that toolchain is
likely to have chosen as a default (and what a user is likely to
expect with the gc extension). I should check this, but I'm not sure
how I can.
- I updated the `-mabi` for rv32gc so it matches what a user is likely
to choose by default (ilp32d).
- I changed the config keys to introduce a hyphen, to match the arm
compiler keys (and added the right alias).
- I'm not sure if older versions of CE-built clang also have RISC-V,
given that the clang-builder repo has `RISCV` in the experimental
targets to build. (PR incoming to remove that, as it's no longer
needed).
I haven't been able to test this, partially because it depends on the
exact compiler-explorer setup on amazon, but I gleaned these details
from code in the compiler-explorer/infra repository.
Signed-off-by: Sam Elliott <sam@lenary.co.uk>
In most cases the result was assertions simply not being run.
This was verified by changing the assertion in a way that should
have resulted in failure, and observing no tests failing.
Another case resulted in tests being registered to the wrong suite.
The common theme here is that if you are dealing with async in mocha
you must await everything or return any promise objects you create.
The simplest thing to do is convert the function to use async/await,
except in a `describe` callback where async can *not* be used. If the
async code is not going to generate any test cases, you can make use of
`before(async () => {});`. If you are going to dynamically generate any
test cases, you must do so synchronously within the `describe` callback.
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible
In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules
This PR attempts to not change code behavior when possible. In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the
code base to silence the error. You can find these by searching for `eslint-disable-next-line`.
Co-authored-by: Austin Morton <austinpmorton@gmail.com>
Improves performance of the demangler considerably, taking one example
case from 30s compilation down to 10s (on my laptop).
With much help from @apmorton
Should help with #1336, though we still need more work to push stuff
onto another thread to really help with that (per Austin's comments).
Due to concerns over status of upstream
Cookie consent value is now tied to hash of cookie privacy text,
so we get automatic revoking of consent on privacy update