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 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.
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>
RISC-V became a default backend in Clang 9.0. This commit enables the
use of the RISC-V backend for Clang in versions:
- 9.0.0
- 10.0.0
- 10.0.1
- 11.0.0
I also did a few other tidy-ups:
- I ensured that these could use more headers for rv64, by adding the
`--gcc-toolchain` and `--sysroot` args to point to the rv64 8.2.0
cross-compiled gcc toolchain.
- I updated the `-mabi` for rv64gc so it matches what that toolchain is
likely to have chosen as a default (and what a user is likely to
expect with the gc extension). I should check this, but I'm not sure
how I can.
- I updated the `-mabi` for rv32gc so it matches what a user is likely
to choose by default (ilp32d).
- I changed the config keys to introduce a hyphen, to match the arm
compiler keys (and added the right alias).
- I'm not sure if older versions of CE-built clang also have RISC-V,
given that the clang-builder repo has `RISCV` in the experimental
targets to build. (PR incoming to remove that, as it's no longer
needed).
I haven't been able to test this, partially because it depends on the
exact compiler-explorer setup on amazon, but I gleaned these details
from code in the compiler-explorer/infra repository.
Signed-off-by: Sam Elliott <sam@lenary.co.uk>
In most cases the result was assertions simply not being run.
This was verified by changing the assertion in a way that should
have resulted in failure, and observing no tests failing.
Another case resulted in tests being registered to the wrong suite.
The common theme here is that if you are dealing with async in mocha
you must await everything or return any promise objects you create.
The simplest thing to do is convert the function to use async/await,
except in a `describe` callback where async can *not* be used. If the
async code is not going to generate any test cases, you can make use of
`before(async () => {});`. If you are going to dynamically generate any
test cases, you must do so synchronously within the `describe` callback.
* manually parse formdata to be compatible with curl examples
* only parse formdata when /noscript/compile, add unittests
* no need to parse formdata in these cases
* use specific handling per url
* 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
* dont return all compilerproperties always in /api/compilers
* fields=all ipv ?all
* use fields=all with remote instances
* add to documentation
* cover more paths with tests
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>
* allow liblink also in lib group
* basic working version of lib binaries via conan
* refactored buildenvsetup into classes
* draft of more library readme
* things that aren't really needed
* dont request from conan if theres nothing to link
* conditionally
* its getting late
* download libraries with "native js"
* add libs
* Update c++.amazon.properties
* Update c++.amazon.properties
* Update c++.amazon.properties
* Update buildenvsetup-ceconan.js
* support library alias client- & server-side
* .
* merge master
* url change
* path fix
* disable broken compilers
* buggy clang compilers
* removed disabled compiler
* Update c++.amazon.properties
* bugfixes and add library lookupversion
* libuv and openssl update
* add libs
* test if tbb works with tbb_debug
* normal tbb
* rpath current folder as well for .so's
* add new tbb version and switch folders
* disable ulib