Rust error message locations (` --> <source>:<line>:<col>`) can have
more than one leading space, e. g. when the source code snippet that is
shown has line numbers greater than ten.
In this example (https://godbolt.org/z/9W8xPv36c), the error message is
not be recognised as an error and there are no red squigglies in the
editor pane.
When passing `-fdiagnostics-urls=always`/`-Z terminal-urls=yes`, the
hyperlink escape sequence was not stripped from the mouse hover widget
in the editor pane.
Link: https://godbolt.org/z/3cP8jj8jc
Hover over the empty braces in the C++ editor or the `i32` in the Rust
editor:
Before:
```
warning: no return statement in function returning non-void []8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-return-type-Wreturn-type]8;;]x86-64 gcc 14.2 #1
error[]8;;https://doc.rust-lang.org/error_codes/E0308.htmlE0308]8;;]: mismatched typesrustc nightly #2
```
Now:
```
warning: no return statement in function returning non-void [-Wreturn-type]x86-64 gcc 14.2 #1
error[E0308]: mismatched typesrustc nightly #2
```
I noticed things like `Int64`, `GLSL450`, and `2D` were multi-colored. This fixes them by treating all Capitalised123 things as tokens.
Co-authored-by: Matt Godbolt <matt@godbolt.org>
add some minor commentary to, and reorganize the swift properties file.
this is just to make things a bit easier to find and more clear where
future additions should go.
In optimized build, odin inlines the world and even ends up inlining the
user visible `main` function into the entry point main. The result is
empty asm output which is confusing. Thus, @require main so that the
compiler doesn't inline user visible main function
#7210
Some syntax highlighting improvement for CL asm lines like:
```as
int * moo DD 01H ; moo
```
and
```as
?mooz@@3PAFA DW 01H ; mooz
```
where previously the DD (or DW DQ) wasn't syntax highlighted, making it
harder to spot the case where CL puts the first defined value of an
array on the same line as the label definition.
This isn't perfect, and might be fairly expensive, but helps mitigate
issue #1645, hopefully well enough to close it.
Tested locally with gcc and clang output, and then pasted into
Monarch/Monaco and tested with some CL output.
- use `Set` and `Map`
- reflow comments
- remove redundant `!!`
- rephrase iterative "follow the chain of weak symbols" to be recursive,
removing artificial limit.
Nothing was using it, we're using other methods these days to discover
remote compilers (and have been for years), and it was broken (see
#1790).
Also cleans up some config (moving it from aws to ceProps; though it was
unused, default used only), and also some workarounds for remote
compilers that refer back to the MS compiler era (#1768).
This leaves the ability in `aws.ts` to fetch instances in case we ever
need the functionality, as this is tested and still works.
Closes#1790
Treats `.set` as an "alias" for the set of labels referred to, and
doesn't filter alias-creating `.set` in used paths even if directive
filtering is on. Only works for `.set <something>, .` with an optional
`+ 0`.
Also changes a silly loop that was looping N times doing the same thing
if `inFunction && isDataDefinition`, though quite possibly that's broken
in a different way. No tests changed, anyway.
Adds a new test for the new behaviour.
Closes#1799
Libraries were being fetched from wrong URL (on startup);
`Fetching remote libraries from
https://godbolt.org:443/api/libraries/c++`
Ended up refactoring a bunch of things to get some unittesting going on
I did not test actual startup and compilation with CE, I might have
broken something. (but @mattgodbolt tested and it looked great)
Changes for HPC SDK 25.1
Add nvc 25.1 to etc/config/c.amazon.properties
Add nvc++ 25.1 to etc/config/c++.amazon.properties
Add nvfortran 25.1 to etc/config/fortran.amazon.properties