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>
* 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>
* 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++
* 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
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.
* 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>
* 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>
* 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
* 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
* 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>
* 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>