Small refactoring for handling -Zunpretty calls:
- reuse options from main compiler invocation instead of crafting new ones.
- factor out common part.
Now also handles HIR output in a dedicated pane.
Still a lot of copy/pasting from the macro expansion.
fixes#2567
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
This change only gets the GNAT Debug expanded generated code (-gnatD).
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
Co-authored-by: Mats Larsen <me@supergrecko.com>
* Extract device code from assembly files.
This commit by itself does not actually add any viewing panes for the
extracted device code, nor does it provide any means to provide
device-specific postprocessing steps.
* Add a rudimentary device view.
This doesn't handle multiple device outputs correctly at the moment, and
it provides no opportunity to view device code differently from
non-device code for now.
* Lint issues
* Some more WIP getting it working.
* Add device extraction code
* More fixes, and keep state
Co-authored-by: Joshua Cranmer <joshua.cranmer@intel.com>
Co-authored-by: Patrick Quist <partouf@gmail.com>
* Allow a tool to have a separate monaco editor for it's stdinput
* Fix bugs identified during code review.
- Selection wasn't being persisted in state.
Needed to do some kind of ugly things to make this work...
- Closing and re-opening the panel wasn't persisting the input!
- getToolInputViewWith -> getToolInputView
- remove _currentDecoration
* Create a seperate window for editing compiler flags
If you have a lot of compiler flags, you don't want to be editing
them in the tiny text box. So add a menu option above
'Popular Arguments' that lets you break out the flags into a
separate window, where you can edit them; one-per-line.
When this happens, the regular flags text box becomes disabled,
and the popular arguments dropdown is not populated.
* Fix the bug where the pane would not reappear upon a refresh, and would not contain the flags
* Use placeholder property instead of the value property
* 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