aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/cppfront.ts
diff options
context:
space:
mode:
authorMatt Godbolt <matt@godbolt.org>2022-09-20 07:42:41 -0500
committerGitHub <noreply@github.com>2022-09-20 07:42:41 -0500
commita8a666aeacde683a8ef1e027f26a5cdd08bade8f (patch)
tree73c7039fd4aa4c0a0060aaec31eb315e3626f2a4 /lib/compilers/cppfront.ts
parent377c907af44348fd6859f2def84a4971ccc1e2c2 (diff)
downloadcompiler-explorer-a8a666aeacde683a8ef1e027f26a5cdd08bade8f.tar.gz
compiler-explorer-a8a666aeacde683a8ef1e027f26a5cdd08bade8f.zip
Fixes for cppfront (#4076)gh-4280
* Rename cppx_cppfront to cpp2_cppfront * Add some blurb about the compiler * Some syntax highlighting * Better output highlighting * Some form of line tracking and filtering
Diffstat (limited to 'lib/compilers/cppfront.ts')
-rw-r--r--lib/compilers/cppfront.ts24
1 files changed, 2 insertions, 22 deletions
diff --git a/lib/compilers/cppfront.ts b/lib/compilers/cppfront.ts
index ebbca43b9..37db5aee0 100644
--- a/lib/compilers/cppfront.ts
+++ b/lib/compilers/cppfront.ts
@@ -24,10 +24,9 @@
import path from 'path';
-import {ExecutionOptions} from '../../types/compilation/compilation.interfaces';
import {ParseFilters} from '../../types/features/filters.interfaces';
import {BaseCompiler} from '../base-compiler';
-import * as exec from '../exec';
+import {AsmParserCpp} from '../parsers/asm-parser-cpp';
export class CppFrontCompiler extends BaseCompiler {
static get key() {
@@ -37,29 +36,10 @@ export class CppFrontCompiler extends BaseCompiler {
constructor(info, env) {
super(info, env);
+ this.asm = new AsmParserCpp();
this.outputFilebase = 'example';
}
- override orderArguments(
- options: string[],
- inputFilename: string,
- libIncludes: string[],
- libOptions: string[],
- libPaths: string[],
- libLinks: string[],
- userOptions: string[],
- staticLibLinks: string[],
- ) {
- return options.concat(
- userOptions,
- ['example.cpp2'], // Grotesque hack to handle the fact we can't use abs filenames with current
- libIncludes,
- libOptions,
- libPaths,
- libLinks,
- staticLibLinks,
- );
- }
override optionsForFilter(filters: ParseFilters, outputFilename: any) {
return [];
}