diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-02-22 17:45:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-22 17:45:55 -0500 |
commit | 563b220cb9243ea19a49cfe82cf9fcadda79b600 (patch) | |
tree | 158e3737e83ca4e3c00f647a13c74b070549e315 /lib/compilers/analysis-tool.ts | |
parent | 17ac75facd403c7f476546707645989191fe4864 (diff) | |
download | compiler-explorer-563b220cb9243ea19a49cfe82cf9fcadda79b600.tar.gz compiler-explorer-563b220cb9243ea19a49cfe82cf9fcadda79b600.zip |
Type work for some handlers and stuff related to the compiler-finder (#4752)gh-6407
Diffstat (limited to 'lib/compilers/analysis-tool.ts')
-rw-r--r-- | lib/compilers/analysis-tool.ts | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/compilers/analysis-tool.ts b/lib/compilers/analysis-tool.ts index dba1ff037..5b089aa74 100644 --- a/lib/compilers/analysis-tool.ts +++ b/lib/compilers/analysis-tool.ts @@ -22,7 +22,7 @@ // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE // POSSIBILITY OF SUCH DAMAGE. -import {CompilerInfo} from '../../types/compiler.interfaces'; +import {PreliminaryCompilerInfo} from '../../types/compiler.interfaces'; import {BaseCompiler} from '../base-compiler'; // Plain compiler, which just runs the tool and returns whatever the output was @@ -31,10 +31,15 @@ export class AnalysisTool extends BaseCompiler { return 'analysis-tool'; } - constructor(info: CompilerInfo, env) { - // Default is to disable all "cosmetic" filters - if (!info.disabledFilters) info.disabledFilters = ['labels', 'directives', 'commentOnly', 'trim']; - super(info, env); + constructor(info: PreliminaryCompilerInfo, env) { + super( + { + // Default is to disable all "cosmetic" filters + disabledFilters: ['labels', 'directives', 'commentOnly', 'trim'], + ...info, + }, + env, + ); } override getDefaultFilters() { |