Skip to content

Commit

Permalink
Merge branch 'compiler-explorer:main' into substring
Browse files Browse the repository at this point in the history
  • Loading branch information
OfekShilon authored Mar 10, 2024
2 parents 8c51ed7 + 1764c7c commit 05e9b9e
Show file tree
Hide file tree
Showing 86 changed files with 5,577 additions and 7,091 deletions.
1 change: 0 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ extends:
- plugin:@typescript-eslint/recommended
- plugin:import/typescript
env:
mocha: true
node: true
es6: true
rules:
Expand Down
2 changes: 2 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 0 additions & 15 deletions .idea/runConfigurations/All_Mocha_Tests.xml

This file was deleted.

2 changes: 0 additions & 2 deletions .mocharc-min.yml

This file was deleted.

1 change: 0 additions & 1 deletion .mocharc.yml

This file was deleted.

8 changes: 3 additions & 5 deletions cypress/e2e/frontend.cy.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// eslint-disable-next-line node/no-unpublished-import
import {it} from 'mocha';

import {assertNoConsoleOutput, stubConsoleOutput} from '../support/utils';

const PANE_DATA_MAP = {
Expand Down Expand Up @@ -39,7 +36,8 @@ describe('Individual pane testing', () => {
});
});

afterEach('Ensure no output in console', () => {
afterEach(() => {
// Ensure no output in console
return cy.window().then(win => {
assertNoConsoleOutput();
});
Expand Down Expand Up @@ -104,7 +102,7 @@ describe('Known good state test', () => {
);
});

afterEach('Ensure no output in console', () => {
afterEach(() => {
return cy.window().then(win => {
assertNoConsoleOutput();
});
Expand Down
5 changes: 2 additions & 3 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
"compilerOptions": {
/* Module resolution */
"target": "esnext",
"module": "commonjs",
"moduleResolution": "classic",
"module": "es2015",
"moduleResolution": "bundler",
/* Code generation */
"typeRoots": ["../node_modules/@types"],
"types": ["mocha", "chai", "chai-http"],
/* https://github.com/cypress-io/cypress/issues/26203#issuecomment-1571861397 */
"sourceMap": false
}
Expand Down
19 changes: 19 additions & 0 deletions docs/VitestCribSheet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## `vitest` crib sheet

We just moved to a new testing framework, `vitest`. Here are some notes to help you get started.

### Running tests

- `npm test` will run the tests
- `npm run test:watch` will run the watcher; which runs all the tests and then watches for changes and then runs on the
changed tests. This is much quicker as a lot of the work is cached.
- `npm run test:watch <path>` will do the same with just a path

### Writing tests

In general use `describe`, `it` and `expect` as you would with jest. Import these all from `vitest`. If you need async
things then use `await expect(someAsyncThing()).resolves.toEqual(someValue)`.

The `expect` is pretty rich and supports a lot of matchers, like `expect(x).toContain("moo")` or
`expect(y).not.toHaveProperty("badger")`. You can see the full list in the
[vitest documentation](https://vitest.dev/api/expect.html).
54 changes: 43 additions & 11 deletions etc/config/c++.amazon.properties
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ compiler.g72.needsMulti=true

################################
# Clang for x86
group.clang.compilers=&clangx86assert:clang30:clang31:clang32:clang33:clang341:clang350:clang351:clang352:clang37x:clang36x:clang371:clang380:clang381:clang390:clang391:clang400:clang401:clang500:clang501:clang502:clang600:clang601:clang700:clang701:clang710:clang800:clang801:clang900:clang901:clang1000:clang1001:clang1100:clang1101:clang1200:clang1201:clang1300:clang1301:clang1400:clang1500:clang1600:clang1701
group.clang.compilers=&clangx86assert:clang30:clang31:clang32:clang33:clang341:clang350:clang351:clang352:clang37x:clang36x:clang371:clang380:clang381:clang390:clang391:clang400:clang401:clang500:clang501:clang502:clang600:clang601:clang700:clang701:clang710:clang800:clang801:clang900:clang901:clang1000:clang1001:clang1100:clang1101:clang1200:clang1201:clang1300:clang1301:clang1400:clang1500:clang1600:clang1701:clang1810
group.clang.intelAsm=-mllvm --x86-asm-syntax=intel
group.clang.options=--gcc-toolchain=/opt/compiler-explorer/gcc-7.2.0
group.clang.groupName=Clang x86-64
Expand Down Expand Up @@ -381,6 +381,11 @@ compiler.clang1701.semver=17.0.1
compiler.clang1701.options=--gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0
compiler.clang1701.ldPath=${exePath}/../lib|${exePath}/../lib/x86_64-unknown-linux-gnu
compiler.clang1701.debugPatched=true
compiler.clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.clang1810.semver=18.1.0
compiler.clang1810.options=--gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0
compiler.clang1810.ldPath=${exePath}/../lib|${exePath}/../lib/x86_64-unknown-linux-gnu
compiler.clang1810.debugPatched=true

group.clangx86trunk.compilers=clang_trunk:clang_assertions_trunk:clang_concepts:clang_p1144:clang_autonsdmi:clang_lifetime:clang_p1061:clang_parmexpr:clang_patmat:clang_embed:clang_dang:clang_reflection:clang_variadic_friends:clang_widberg:clang_resugar:clang_clangir
group.clangx86trunk.intelAsm=-mllvm --x86-asm-syntax=intel
Expand Down Expand Up @@ -462,7 +467,7 @@ compiler.clang_clangir.semver=(clangir)
compiler.clang_clangir.options=-std=c++20 -Xclang -fclangir-enable -Xclang -emit-cir -Xclang -clangir-disable-emit-cxx-default
compiler.clang_clangir.notification=ClangIR enabled clang compiler; see <a href="https://clangir.org" target="_blank" rel="noopener noreferrer">clangir.org<sup><small class="fas fa-external-link-alt opens-new-window" title="Opens in a new window"></small></sup></a>

group.clangx86assert.compilers=clang26assert:clang27assert:clang28assert:clang29assert:clang30assert:clang31assert:clang32assert:clang33assert:clang34assert:clang35assert:clang36assert:clang37assert:clang38assert:clang39assert:clang40assert:clang50assert:clang60assert:clang70assert:clang80assert:clang90assert:clang100assert:clang110assert:clang120assert:clang130assert:clang140assert:clang150assert:clang160assert:clang170assert
group.clangx86assert.compilers=clang26assert:clang27assert:clang28assert:clang29assert:clang30assert:clang31assert:clang32assert:clang33assert:clang34assert:clang35assert:clang36assert:clang37assert:clang38assert:clang39assert:clang40assert:clang50assert:clang60assert:clang70assert:clang80assert:clang90assert:clang100assert:clang110assert:clang120assert:clang130assert:clang140assert:clang150assert:clang160assert:clang170assert:clang181assert
group.clangx86assert.options=
group.clangx86assert.groupName=Clang x86-64 (assertions)

Expand Down Expand Up @@ -565,6 +570,10 @@ compiler.clang170assert.exe=/opt/compiler-explorer/clang-assertions-17.0.1/bin/c
compiler.clang170assert.semver=17.0.1 (assertions)
compiler.clang170assert.options=--gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0
compiler.clang170assert.ldPath=${exePath}/../lib|${exePath}/../lib/x86_64-unknown-linux-gnu
compiler.clang181assert.exe=/opt/compiler-explorer/clang-assertions-18.1.0/bin/clang++
compiler.clang181assert.semver=18.1.0 (assertions)
compiler.clang181assert.options=--gcc-toolchain=/opt/compiler-explorer/gcc-13.2.0
compiler.clang181assert.ldPath=${exePath}/../lib|${exePath}/../lib/x86_64-unknown-linux-gnu

group.clang-rocm.compilers=clang-rocm-trunk:clang-rocm-40502:clang-rocm-50002:clang-rocm-50103:clang-rocm-50203:clang-rocm-50303:clang-rocm-50700
group.clang-rocm.intelAsm=-mllvm --x86-asm-syntax=intel
Expand Down Expand Up @@ -666,7 +675,7 @@ compiler.armv7-clang-trunk.options=-target arm-linux-gnueabi --gcc-toolchain=/op
# Clang for Arm
# Provides 64- menu items for clang-9, clang-10 and trunk
group.armclang64.groupName=Arm 64-bit clang
group.armclang64.compilers=armv8-clang900:armv8-clang901:armv8-clang1000:armv8-clang1001:armv8-clang1100:armv8-clang1101:armv8-clang1200:armv8-clang1300:armv8-clang1400:armv8-clang1500:armv8-clang1600:armv8-clang1701:armv8-clang-trunk:armv8-full-clang-trunk
group.armclang64.compilers=armv8-clang900:armv8-clang901:armv8-clang1000:armv8-clang1001:armv8-clang1100:armv8-clang1101:armv8-clang1200:armv8-clang1300:armv8-clang1400:armv8-clang1500:armv8-clang1600:armv8-clang1701:armv8-clang1810:armv8-clang-trunk:armv8-full-clang-trunk
group.armclang64.isSemVer=true
group.armclang64.baseName=armv8-a clang
group.armclang64.compilerType=clang
Expand All @@ -678,6 +687,8 @@ group.armclang64.licenseLink=https://github.com/llvm/llvm-project/blob/main/LICE
group.armclang64.licensePreamble=The LLVM Project is under the Apache License v2.0 with LLVM Exceptions
group.armclang64.compilerCategories=clang

compiler.armv8-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.armv8-clang1810.semver=18.1.0
compiler.armv8-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.armv8-clang1701.semver=17.0.1
compiler.armv8-clang1701.options=-target aarch64-linux-gnu --gcc-toolchain=/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu --sysroot=/opt/compiler-explorer/arm64/gcc-13.2.0/aarch64-unknown-linux-gnu/aarch64-unknown-linux-gnu/sysroot
Expand Down Expand Up @@ -790,7 +801,7 @@ group.rvclang.licenseName=LLVM Apache 2
group.rvclang.licenseLink=https://github.com/llvm/llvm-project/blob/main/LICENSE.TXT
group.rvclang.licensePreamble=The LLVM Project is under the Apache License v2.0 with LLVM Exceptions

group.rv32clang.compilers=rv32-clang:rv32-clang1701:rv32-clang1600:rv32-clang1500:rv32-clang1400:rv32-clang1301:rv32-clang1300:rv32-clang1201:rv32-clang1200:rv32-clang1101:rv32-clang1100:rv32-clang1001:rv32-clang1000:rv32-clang901:rv32-clang900
group.rv32clang.compilers=rv32-clang:rv32-clang1810:rv32-clang1701:rv32-clang1600:rv32-clang1500:rv32-clang1400:rv32-clang1301:rv32-clang1300:rv32-clang1201:rv32-clang1200:rv32-clang1101:rv32-clang1100:rv32-clang1001:rv32-clang1000:rv32-clang901:rv32-clang900
group.rv32clang.options=-target riscv32-unknown-elf -march=rv32gc -mabi=ilp32d --gcc-toolchain=/opt/compiler-explorer/riscv32/gcc-10.2.0/riscv32-unknown-elf
group.rv32clang.objdumper=/opt/compiler-explorer/riscv32/gcc-10.2.0/riscv32-unknown-elf/bin/riscv32-unknown-elf-objdump
group.rv32clang.baseName=RISC-V rv32gc clang
Expand Down Expand Up @@ -833,12 +844,14 @@ compiler.rv32-clang1600.exe=/opt/compiler-explorer/clang-16.0.0/bin/clang++
compiler.rv32-clang1600.semver=16.0.0
compiler.rv32-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.rv32-clang1701.semver=17.0.1
compiler.rv32-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.rv32-clang1810.semver=18.1.0
compiler.rv32-clang.exe=/opt/compiler-explorer/clang-trunk/bin/clang++
compiler.rv32-clang.semver=(trunk)
compiler.rv32-clang.isNightly=true
compiler.rv32-clang.alias=rv32clang

group.rv64clang.compilers=rv64-clang:rv64-clang1701:rv64-clang1600:rv64-clang1500:rv64-clang1400:rv64-clang1301:rv64-clang1300:rv64-clang1201:rv64-clang1200:rv64-clang1101:rv64-clang1100:rv64-clang1001:rv64-clang1000:rv64-clang901:rv64-clang900
group.rv64clang.compilers=rv64-clang:rv64-clang1810:rv64-clang1701:rv64-clang1600:rv64-clang1500:rv64-clang1400:rv64-clang1301:rv64-clang1300:rv64-clang1201:rv64-clang1200:rv64-clang1101:rv64-clang1100:rv64-clang1001:rv64-clang1000:rv64-clang901:rv64-clang900
group.rv64clang.options=-target riscv64-unknown-linux-gnu -march=rv64gc -mabi=lp64d --gcc-toolchain=/opt/compiler-explorer/riscv64/gcc-10.2.0/riscv64-unknown-linux-gnu --sysroot=/opt/compiler-explorer/riscv64/gcc-10.2.0/riscv64-unknown-linux-gnu/riscv64-unknown-linux-gnu/sysroot
group.rv64clang.objdumper=/opt/compiler-explorer/riscv64/gcc-10.2.0/riscv64-unknown-linux-gnu/bin/riscv64-unknown-linux-gnu-objdump
group.rv64clang.baseName=RISC-V rv64gc clang
Expand Down Expand Up @@ -881,6 +894,8 @@ compiler.rv64-clang1600.exe=/opt/compiler-explorer/clang-16.0.0/bin/clang++
compiler.rv64-clang1600.semver=16.0.0
compiler.rv64-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.rv64-clang1701.semver=17.0.1
compiler.rv64-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.rv64-clang1810.semver=18.1.0
compiler.rv64-clang.exe=/opt/compiler-explorer/clang-trunk/bin/clang++
compiler.rv64-clang.semver=(trunk)
compiler.rv64-clang.isNightly=true
Expand Down Expand Up @@ -1188,7 +1203,7 @@ group.bpf.compilers=&gccbpf:&clangbpf
group.bpf.demangler=/opt/compiler-explorer/bpf/gcc-trunk/bpf-unknown-none/bin/bpf-unknown-none-c++filt

# Clang for BPF
group.clangbpf.compilers=bpfclangtrunk:bpfclang1701:bpfclang1600:bpfclang1500:bpfclang1400:bpfclang1300
group.clangbpf.compilers=bpfclangtrunk:bpfclang1810:bpfclang1701:bpfclang1600:bpfclang1500:bpfclang1400:bpfclang1300
group.clangbpf.supportsBinary=false
group.clangbpf.supportsExecute=false
group.clangbpf.baseName=BPF clang
Expand All @@ -1203,6 +1218,9 @@ compiler.bpfclangtrunk.exe=/opt/compiler-explorer/clang-trunk/bin/clang++
compiler.bpfclangtrunk.semver=(trunk)
compiler.bpfclangtrunk.isNightly=true

compiler.bpfclang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.bpfclang1810.semver=18.1.0

compiler.bpfclang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.bpfclang1701.semver=17.0.1

Expand Down Expand Up @@ -2132,7 +2150,7 @@ group.mipss.isSemVer=true
# Clang for all MIPS

## MIPS
group.mips-clang.compilers=mips-clang1701:mips-clang1600:mips-clang1500:mips-clang1400:mips-clang1300
group.mips-clang.compilers=mips-clang1810:mips-clang1701:mips-clang1600:mips-clang1500:mips-clang1400:mips-clang1300
group.mips-clang.groupName=MIPS clang
group.mips-clang.baseName=mips clang
group.mips-clang.supportsBinary=false
Expand All @@ -2142,6 +2160,9 @@ group.mips-clang.options=-target mips-elf
group.mips-clang.compilerCategories=clang
group.mips-clang.instructionSet=mips

compiler.mips-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.mips-clang1810.semver=18.1.0

compiler.mips-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.mips-clang1701.semver=17.0.1

Expand All @@ -2158,7 +2179,7 @@ compiler.mips-clang1300.exe=/opt/compiler-explorer/clang-13.0.0/bin/clang++
compiler.mips-clang1300.semver=13.0.0

## MIPSEL
group.mipsel-clang.compilers=mipsel-clang1701:mipsel-clang1600:mipsel-clang1500:mipsel-clang1400:mipsel-clang1300
group.mipsel-clang.compilers=mipsel-clang1810:mipsel-clang1701:mipsel-clang1600:mipsel-clang1500:mipsel-clang1400:mipsel-clang1300
group.mipsel-clang.instructionSet=mips
group.mipsel-clang.groupName=MIPSEL clang
group.mipsel-clang.baseName=mipsel clang
Expand All @@ -2168,6 +2189,9 @@ group.mipsel-clang.supportsExecute=false
group.mipsel-clang.options=-target mipsel-elf
group.mipsel-clang.compilerCategories=clang

compiler.mipsel-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.mipsel-clang1810.semver=18.1.0

compiler.mipsel-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.mipsel-clang1701.semver=17.0.1

Expand All @@ -2184,7 +2208,7 @@ compiler.mipsel-clang1300.exe=/opt/compiler-explorer/clang-13.0.0/bin/clang++
compiler.mipsel-clang1300.semver=13.0.0

## MIPS64
group.mips64-clang.compilers=mips64-clang1701:mips64-clang1600:mips64-clang1500:mips64-clang1400:mips64-clang1300
group.mips64-clang.compilers=mips64-clang1810:mips64-clang1701:mips64-clang1600:mips64-clang1500:mips64-clang1400:mips64-clang1300
group.mips64-clang.instructionSet=mips
group.mips64-clang.groupName=MIPS64 clang
group.mips64-clang.baseName=mips64 clang
Expand All @@ -2194,6 +2218,9 @@ group.mips64-clang.supportsExecute=false
group.mips64-clang.options=-target mips64-elf
group.mips64-clang.compilerCategories=clang

compiler.mips64-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.mips64-clang1810.semver=18.1.0

compiler.mips64-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.mips64-clang1701.semver=17.0.1

Expand All @@ -2210,7 +2237,7 @@ compiler.mips64-clang1300.exe=/opt/compiler-explorer/clang-13.0.0/bin/clang++
compiler.mips64-clang1300.semver=13.0.0

## MIPS64EL
group.mips64el-clang.compilers=mips64el-clang1701:mips64el-clang1600:mips64el-clang1500:mips64el-clang1400:mips64el-clang1300
group.mips64el-clang.compilers=mips64el-clang1810:mips64el-clang1701:mips64el-clang1600:mips64el-clang1500:mips64el-clang1400:mips64el-clang1300
group.mips64el-clang.instructionSet=mips
group.mips64el-clang.groupName=MIPS64EL clang
group.mips64el-clang.baseName=mips64el clang
Expand All @@ -2220,6 +2247,9 @@ group.mips64el-clang.supportsExecute=false
group.mips64el-clang.options=-target mips64el-elf
group.mips64el-clang.compilerCategories=clang

compiler.mips64el-clang1810.exe=/opt/compiler-explorer/clang-18.1.0/bin/clang++
compiler.mips64el-clang1810.semver=18.1.0

compiler.mips64el-clang1701.exe=/opt/compiler-explorer/clang-17.0.1/bin/clang++
compiler.mips64el-clang1701.semver=17.0.1

Expand Down Expand Up @@ -3929,7 +3959,7 @@ libs.libuv.versions.1381.libpath=/opt/compiler-explorer/libs/libuv/v1.38.1/x86_6

libs.llvm.name=LLVM
libs.llvm.description=LLVM
libs.llvm.versions=trunk:401:500:501:502:600:601:700:701:800:900:1000:1001:1100:1200:1201:1300:1301:1400:1406:1500:1507:1600:1606:1701:1706
libs.llvm.versions=trunk:401:500:501:502:600:601:700:701:800:900:1000:1001:1100:1200:1201:1300:1301:1400:1406:1500:1507:1600:1606:1701:1706:1810
libs.llvm.url=https://llvm.org/
libs.llvm.versions.trunk.version=trunk
libs.llvm.versions.trunk.path=/opt/compiler-explorer/libs/llvm/trunk/include
Expand Down Expand Up @@ -3983,6 +4013,8 @@ libs.llvm.versions.1701.version=17.0.1
libs.llvm.versions.1701.path=/opt/compiler-explorer/libs/llvm/17.0.1/include
libs.llvm.versions.1706.version=17.0.6
libs.llvm.versions.1706.path=/opt/compiler-explorer/libs/llvm/17.0.6/include
libs.llvm.versions.1810.version=18.1.0
libs.llvm.versions.1810.path=/opt/compiler-explorer/libs/llvm/18.1.0/include

libs.llvmfs.name=Filesystem (LLVM)
libs.llvmfs.versions=autodetect
Expand Down
Loading

0 comments on commit 05e9b9e

Please sign in to comment.