* Implemented all options that are common for all versions of GCC
between 4.0 and 10.2. These are available in a "Options" drop-down
menu on the GCC Tree Viewer pane.
* Dump passes have been moved into a drop-down menu "Passes" to keep the
row tidy.
* Add inter-procedural analysis dumps to GCC Tree Viewer. The option
-fdump-ipa-all has been around since GCC 4.0, though leaving it
default unchecked in the UI.
* Adds [ON] or [OFF] to the titles of all filter buttons by implementing
GccDump.prototype.updateButtons.
Fixes#2130
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>
The GCCDump pane can exhibits incorrect behavior when opened from
a shared link. Until it is fixed, move pane after its corresponding
compiler or do not use shared links.
It needs some improvements here and there, plus a good dose of
thinking about the hard-limits actually present, like the max of
6 compilers per view, and 1 view per editor. Maybe we can afford
more compilers per view?
(I think that limiting it to 1 view per editor is a good call tho)
A necessary point before merging would be to fix the fact that
when sharing by URL, the contents of the view are not saved.
Releated issues: #461
1. Updates the button to be disabled instead of hidden
2. Disables the button on click. Re-enables when you close the opt view.
3. Will now not break when you have > 1 compiler