Commit Graph
1716 Commits
Author SHA1 Message Date
RabsRincon 214889f467 Remove duplicate date calculation code 2021-03-25 00:56:52 +01:00
Arseniy ZaostrovnykhandArseniy Zaostrovnykh 23b152b298 Colorize the LLVM AST to match the colors of the source (#2511)
Colour the AST view with the same colors as the source code

* Add a couple of trivial test cases for processAstOutput
* Fix the processAstOutput test, ad a test for a file with #include
* Send individual lines for the AST output
* Parse the source lines for AST
* Register as a contributor
* Factor out the LlvmAstParser into a separate file

Co-authored-by: Arseniy Zaostrovnykh <arseniy.zaostrovnykh@sonarsource.com>
2021-03-22 13:21:08 -05:00
Rubén Rincón Blancoandpartouf 7f4c4a9ebf Report back an estimate of filtered lines (#2506)
* Report back an estimate of filtered lines

The commit is tested, but I had to remove an eslint check and
 not run the filter tests because I forgot how to bless them.

* Implement proposed wording change

* Add filtered report in compile info label

* Simplify and add reporting to binary mode filter

* Fix bad git stash shenanigans

* ignore filteredCount when testing

* filteredCount is not guaranteed to be returned

* extra check

Co-authored-by: partouf <partouf@gmail.com>
2021-03-20 20:17:38 +01:00
RabsRincon fe5882fc26 Give some breathing room to icons in links 2021-03-19 21:26:18 +01:00
RabsRincon 929135e9d7 Simplify conformance view behaviour
In hopes of fixing #2490
2021-03-18 15:36:16 +01:00
partouf a67100a717 fixes #2454 2021-03-13 16:28:41 +00:00
Matt Godbolt 4930037f41 Update right-click menu item to be more general than x86 2021-03-12 07:45:34 -06:00
Jeremy Overesch 11e470a8f7 Feature/jo/arm dockenizer (#2463)
* Update docenizer to python3
* Remove unused code in docenizer
* Create new asm-docs-arm and asm-docs-api-arm files for parsing and retrieving arm related opcodes.  Add conditional instruction switch.
* Rename docs files to specify instruction set
* Add arm32 at /api/asm/arm32/:opcode
* Add @jovere to contributor list
* Add `instructionSet` compiler option
* Update client to access correct instruction based on the `instructionSet` option
* Add `arm32` `instructionSet` option for ARM C++ compilers
* Add `arm32` instructionSet to obvious places in C/C++
2021-03-12 07:40:49 -06:00
partouf d7374a063e also start timing graph Y at 0 2021-03-11 22:42:33 +00:00
partouf e9d96899dc bugfix run executable from compiler pane 2021-03-11 20:28:41 +00:00
Patrick Quist 7edd6d40ac Time all the things (#2462)
* time executeDirect in ms

* measure library download and extract time

* time package download

* download timings when using execution checkbox

* proof of concept timing graph implementation

* use vertical bars for graph

* add objdump time

* add timing for asm parsing

* add timing graph to execution pane as well

* download timings on execution pane

* things
2021-03-11 17:37:57 +01:00
Patrick Quist 9895b0e60b library search matches on name before match on description (#2468) 2021-03-09 20:17:46 +01:00
partouf eac712651a lintfix 2021-02-20 18:32:40 +00:00
Sam Elliott 3677ad6389 Add Notification to Compiler Info Popup (#2399)
This also adds the same changes to an executor instance.

Signed-off-by: Sam Elliott <sam@lenary.co.uk>
2021-02-20 19:22:50 +01:00
Matt Godbolt 17b2bb8a58 Move /shortener to /api/shortener (#2426)
We still support /shortener (though will scrape logs to see when
we can remove).

The route under /api/shortener will have the CORS headers set up
properly for things like @foonathan's lexy visualiser.
2021-02-15 12:52:46 -06:00
Matt GodboltandRabsRincon ed7f003651 Privacy policy updates. Closes #2276 (#2419)
* Privacy policy updates. Closes #2276

* Improve policies timestamp generation

* Remove leftover debug print

* Python3 all the things

Also uses the short hash for policy commits

* More master->main.

Co-authored-by: RabsRincon <ruben@rinconblanco.es>
2021-02-15 00:09:13 +01:00
RabsRincon 57ad0e97b6 Add alt text to label links 2021-02-11 19:52:02 +01:00
Rubén Rincón Blanco 991193a69f Fully update the lib UI when a library is removed (#2417) 2021-02-11 17:43:03 +01:00
RabsRincon e55cbb05bd Hide extra whitespace when a library has no description 2021-02-08 07:29:47 +01:00
Rubén Rincón Blancoandpartouf 4e683c53d6 Adds args field to tools (#2406)
* Adds args field to tools

This args field is show in the UI inside the Arguments input.

Closes #2395

* support options for all tools

* clang-format tidy and query use .options differently

* compiler dropin uses options differently as well

Co-authored-by: partouf <partouf@gmail.com>
2021-02-08 07:15:13 +01:00
Justin Gerhardt ac70daf6d8 Make codelens font follow settings (#2402) 2021-02-01 22:29:08 +01:00
Tom Ritter 9000bd271f If an stdinHint is specified on a tool, when the tool opens, default to showing the stdin input (#2382)
FWIW clang-query is the only tool in the repo that uses stdinHint
2021-01-14 02:24:23 +01:00
Peter Schussheim a0bcc9b8c2 add text wrapping toggle to executor pane (#2362) 2020-12-22 14:19:36 +01:00
Austin Morton 6400315650 Fix extra blank lines when copying from some panes
Closes #1260
2020-11-03 04:42:16 -05:00
Matt Godbolt 0df01db65c Reformat eslint yaml files 2020-10-26 13:00:17 -05:00
Artemandhi-artem a659ad6a64 minimum width added to history modal (#2253)
Co-authored-by: hi-artem <aakatev@virtru.com>
2020-10-04 19:14:46 +02:00
partouf d080c7a3e9 also darken permalink input and execution+tool stdin textarea 2020-10-03 23:22:53 +00:00
Artem 7e645f45ef Dark mode compiler arguments input text-color fix (#2252)
* Added input:focus style for dark theme

* Updated contributors.md
2020-10-04 01:16:35 +02:00
Austin Morton f8826fd250 Refactor theme system to apply them earlier in page load (#2249) 2020-10-02 06:56:46 -04:00
partouf 1eebac3ac1 guard examples code when not defined 2020-10-01 23:22:18 +00:00
Austin Morton de85aecc7d Normalize and enforce license disclaimer headers (#2234) 2020-09-27 00:20:19 -04:00
Patrick Quist 4a158e1ff4 Library widget revamp (#2223)
* Use new widget for the ever-expanding library count
2020-09-27 01:59:40 +02:00
Matt Godbolt f68198af9e Reassign copyright to Compiler Explorer Authors (#2233) 2020-09-26 17:50:40 -05:00
Austin Morton ca437e15b6 Consolidate eslint configuration (#2224) 2020-09-23 02:09:32 -04:00
partouf 1df510441d add tc range, bugfix libs widget 2020-09-10 18:16:42 +00:00
Patrick Quist d6a86198b7 Copy compiler arguments for 'Executor from this' (#2191)
* copy compiler args to executor

* disable executor-from-this if no supportsExecute for compiler

* also hide hidden compilers
2020-09-06 16:36:22 +02:00
Patrick Quist 837fc3cd00 Filter compilers in execution panel (#2181)
* basic supportsExecute filter

* dont mess up existing compiler selections

* dont execute if the compiler doesn't support it, do try to build still

* disable execute for clang arm compilers

* require at least 1 supportsExecute before default adding and selecting anything

* gcc 1.27 dont execute

* get rid of -Wl,-rpath error message
2020-09-04 21:28:14 +02:00
Patrick Quist 32aadc90e7 [#RandomThingsNobodyAskedFor] Noscript pages (#2120)
* hello world again

* alt texts for sponsor icons

* lintfixes

* moved noscript alongside normal views and things

* language listitems

* offer link to noscript version when needed

* filter fixes and add execution output to text output

* reuse more things, add special css, support filters and execution to noscript

* bugfix

* bugfixes

* add icons because why not

* main sponsor urls

* support noscript z links

* start of better mobile view in noscript mode

* move files to noscript folder, fixes

* try to run script in mobile

* script works now

* refactoring

* scale textarea when theres css

* fix sponsorlink

* hide hidden compilers

* duplicate change from trunk
2020-08-29 21:33:37 +02:00
Rubén Rincón Blanco 5c9f6352a9 Add executor button to compiler that inherits it (#2135)
* Add executor button to compiler that inherits it

* Remove sneaky console.log
2020-08-29 21:32:23 +02:00
Rubén Rincón BlancoandPatrick Quist 14a60bb46a Add base monaco editor config (#2157)
* Add base monaco editor config and extend from it

* Don't modify config object

Co-authored-by: Patrick Quist <partouf@gmail.com>
2020-08-29 21:32:03 +02:00
Rubén Rincón Blanco 8a05f0098e Add ANSI color code support on executor pane (#2162)
Closes #2143
2020-08-29 21:30:47 +02:00
Rubén Rincón BlancoandPartouf 7e5eafda4b Concept to better notify lang support in tools (#1992)
* Concept to better notify lang support in tools

c.f: #1991

* also disable when compiler doesn't support tool

Co-authored-by: Partouf <partouf@gmail.com>
2020-08-29 21:30:29 +02:00
Austin Morton 21fea37af5 Fix #2150 2020-08-27 07:47:47 -04:00
Iain Buclaw 916ce00126 Allow changing the detail level of GCC dumps in TREE and RTL view (#2134)
* 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
2020-08-25 22:59:55 -05:00
Partouf 9dde240d98 allow scrolling beyond last line in editors 2020-08-23 13:56:29 +02:00
sdgoodrick a41d7becf6 add support for cppx blue and gold languages (#2144) 2020-08-20 16:27:15 +02:00
Matt Godbolt e28e3df9ec Tweaks for PVS Studio 2020-08-13 22:20:20 -05:00
Partouf aaf8c6400d also filter hidden compilers when switching languages 2020-08-08 13:57:43 +02: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
Rubén Rincón Blanco 6b19e59300 Minor improvement to compilation API docs
Removes the `req.body.compiler` fallback when looking for the compiler - It could never be reached
2020-08-03 15:41:08 +02:00