Commit Graph
18 Commits
Author SHA1 Message Date
Matt Godbolt a4edf7ed6b No array for each 2021-05-28 18:08:05 -05:00
Matt Godbolt 4e36d206b4 Prefer regex.test() 2021-05-27 23:19:32 -05:00
Austin Morton 75ba44c8fd Fix VcAsmParser when multiple anonymous functions appear on the same line
Fixes #2093
2020-11-03 07:38:03 -05:00
Austin Morton 044dcfbf88 Use ES6 Modules (#2132) 2020-09-26 16:59:26 -04:00
Rubén Rincón BlancoandAustin Morton ccff4b9ee5 Add new eslint rules (#2121)
The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible

In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules

This PR attempts to not change code behavior when possible.  In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the 
code base to silence the error.  You can find these by searching for `eslint-disable-next-line`.

Co-authored-by: Austin Morton <austinpmorton@gmail.com>
2020-08-04 16:39:02 -04:00
Márton Csordás c1d074d6d5 Parse assembly labels on the serve-side
Parsing the labels on the server-side is more general, more flexible
and it can be easily tested.

- Store label definitions in a map. The key will be the label name and
the value will be the line number where the label definition can be
found.
- For each line get the labels which are used in the given line and
remove labels which do not have a definition.
- Modify the return value of the `processBinaryAsm` and `process`
function to return with the label definition too.
- Demangle the label usages and the label definitions too.
2019-12-01 21:36:21 +01:00
Matt Godbolt a818f5eaa6 Handle non-label-name lines in VC. Fixes #1337 2019-11-11 22:35:12 -06:00
Matt Godbolt 1f6e4c8f67 Log updates; lots of logging was missing since we moved to the new logger 2019-05-16 17:30:15 -05:00
Nicole Mazzuca 44d3930afe add option for hiding header code 2018-11-18 14:12:16 +01:00
Partouf b691b3f52e support for binary mode on VS compilers 2018-11-08 16:52:31 +01:00
Partouf 32481d2c67 codereview fixes 2018-11-01 14:12:54 +01:00
Partouf 94abf88d1d extra tests, and refactoring because of lint error 2018-10-27 15:56:14 +02:00
Partouf 654689f8d6 leave datadefs in by default, and remove when unused 2018-10-27 14:40:05 +02:00
Partouf 4a8e20756b treat all datadefs equally 2018-10-27 13:30:06 +02:00
Matt Godbolt eabe33c166 Minor refactoring to extract filterAsmLine in one place. Starting to think about fixing #883 2018-10-22 23:00:28 -05:00
Nicole Mazzuca db325b2505 fix ordering of MSVC functions when inlining 2018-08-06 14:58:36 -07:00
Nicole Mazzuca 61ffd87e30 allow wsl to support includePath
I have no idea how I'd make wine support includePath,
I'll leave it to someone else
2018-07-30 14:18:46 -07:00
Nicole Mazzuca 9ddf22f090 Support Visual C++ and Windows well
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:

  - switch from /FAsc to /FA
  - order functions in file order
  - support demangling win32-style identifiers with undname
  - clang++ and vc++ on win32 host are both supported
2018-07-28 15:18:43 -07:00