diff options
author | Ofek <ofekshilon@gmail.com> | 2023-11-14 04:11:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 20:11:16 -0600 |
commit | a280d8d305e1caa03a8c72a056170b6a2885186c (patch) | |
tree | 93810ec94b9f8382351b00ed02da96f2ceb312e3 /lib/compilers/ispc.ts | |
parent | 6b94b29f55a765e44ee876609b72dbe49d81f143 (diff) | |
download | compiler-explorer-a280d8d305e1caa03a8c72a056170b6a2885186c.tar.gz compiler-explorer-a280d8d305e1caa03a8c72a056170b6a2885186c.zip |
Fix #4654 (#5749)gh-9567
Apparently AST for ldc is an abuse of terminology, as it doesn't
produces anything resembling a syntax tree:
https://github.com/dlang/dmd/pull/6556#issuecomment-282353400 . It is
potentially meaningful only to ldc developers. Anyway the `generateAST`
result type is fixed, along with some other small stuff around.
Diffstat (limited to 'lib/compilers/ispc.ts')
-rw-r--r-- | lib/compilers/ispc.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compilers/ispc.ts b/lib/compilers/ispc.ts index c44fdb20a..a75217961 100644 --- a/lib/compilers/ispc.ts +++ b/lib/compilers/ispc.ts @@ -27,6 +27,7 @@ import _ from 'underscore'; import type {PreliminaryCompilerInfo} from '../../types/compiler.interfaces.js'; import type {ParseFiltersAndOutputOptions} from '../../types/features/filters.interfaces.js'; +import type {ResultLine} from '../../types/resultline/resultline.interfaces.js'; import {BaseCompiler} from '../base-compiler.js'; import {asSafeVer} from '../utils.js'; @@ -77,7 +78,7 @@ export class ISPCCompiler extends BaseCompiler { return ISPCParser; } - override async generateAST(inputFilename, options) { + override async generateAST(inputFilename, options): Promise<ResultLine[]> { // These options make Clang produce an AST dump const newOptions = _.filter(options, option => option !== '--colored-output').concat(['--ast-dump']); |