diff options
author | Matt Godbolt <matt@godbolt.org> | 2022-05-09 23:13:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 23:13:50 -0500 |
commit | f2c1e0bd315fbce55582c440f2d3c8c922a5083a (patch) | |
tree | c726d7e1e56fe5b97db357dd0f8c9517c90ddaeb /lib/compilers/tinyc.js | |
parent | 141fa735217859d5ebc2985c5eabd2a780246485 (diff) | |
download | compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.tar.gz compiler-explorer-f2c1e0bd315fbce55582c440f2d3c8c922a5083a.zip |
The Grand Reformat (#3643)gh-2830
* 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
Diffstat (limited to 'lib/compilers/tinyc.js')
-rw-r--r-- | lib/compilers/tinyc.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/compilers/tinyc.js b/lib/compilers/tinyc.js index 8c1c1333f..f92733b08 100644 --- a/lib/compilers/tinyc.js +++ b/lib/compilers/tinyc.js @@ -24,16 +24,18 @@ import _ from 'underscore'; -import { BaseCompiler } from '../base-compiler'; +import {BaseCompiler} from '../base-compiler'; export class TinyCCompiler extends BaseCompiler { - static get key() { return 'tinyc'; } + static get key() { + return 'tinyc'; + } optionsForFilter(filters, outputFilename, userOptions) { - if (_.some(userOptions, (opt) => opt === '--help' || opt === '-h' || opt === '-hh')) { + if (_.some(userOptions, opt => opt === '--help' || opt === '-h' || opt === '-hh')) { return []; } else { - if (!_.some(userOptions, (opt) => opt === '-E')) { + if (!_.some(userOptions, opt => opt === '-E')) { filters.binary = true; } return ['-g', '-o', this.filename(outputFilename)]; @@ -41,6 +43,6 @@ export class TinyCCompiler extends BaseCompiler { } filterUserOptions(userOptions) { - return _.filter(userOptions, (opt) => opt !== '-run'); + return _.filter(userOptions, opt => opt !== '-run'); } } |