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>
We used to use 6. This gives 32^6 possible URLs.
As we increase the number of URLs the godbolt.org site
stores, the chance of an attacker being able to guess
existing URLs has increased. To stay one step ahead,
we bump to 9 characetrs here: 32^9 possible is 35 trillion
possibilities.
* 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 right-click menu item to be more general than x86
* mounts /asm/:arch/:opcode and handles unknown arch
* adds dummy aarch64 placeholder
* tags some stuff as aarch64
* tags some stuff as amd64
* uses a redirect from /asm/XXX -> /asm/amd64/XXX
* instructionset detection when property is not set
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
* Add support for more cases of verbose demangling
I skipped the tests on this commit so that I could push it,
and add the tests at a later date.
I do this because I'm not sure this does not break unreleated
stuff so I wanted to make the changes visible before fixing the tests
* Adress review comments
* Update cpp.js
* new test results
Co-authored-by: Patrick Quist <partouf@gmail.com>
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.
* 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>
The docenizer script is ran manually every time we update the docs,
so we can modify it while a fix lands on the Intel manual,
and then Felix updates the page.
We'll just have to remember to check the fix before updating the docs
Fixes#2380
Uses a prefix tree to find replacements in each
line, instead of looping over all replacements for all lines.
Adds a large test (which was part of bug 1336). On my machine it
used to take 45s to process that test, now it takes ~1.5s.
Skip demangle replacement entirely if there's no demangling to be done. CC @apmorton
Co-authored-by: partouf <partouf@gmail.com>
* added rudimentary OSACA tool & analysis support
* added osaca to tools. using -trunk
* fixed copyright string and added myself to CONTRIBUTORS.md
* use OSACA v0.3.10
Due to some environment differences between running
under firejail or under no sandbox, the regex used in
`extractLogging` does not match any lines because the
compiler output already has filenames replaced with
`<source>` when run under firejail. When run outside
firejail the filenames are not filtered. Additionally, some
compiler output was lost due to having a filename of
`<autogenerated>`.
Fixes#2228
* Avoid execution queue contention during instance startup if compiler executions would be cached
* Avoid mutating execution options when running wine commands
These mutations would prevent cached executions from functioning correctly