Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ build:linux --host_cxxopt=-std=c++20
# These profiles are implementation details of helpers/cmd/develop. Keeping the
# compiler and linker flags here makes sanitizer builds reproducible while the
# command presents host-aware names and diagnostics to developers.
build:asan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fsanitize=address
build:asan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*,-^Compiler/Runtime/Freestanding/.*@/clang:-fsanitize=address
build:asan-windows --repo_env=VXS_LLVM_SYSTEM_ALLOCATOR=1
# Clang's implicit absolute ignorelist otherwise appears as an undeclared input
# to Bazel's Windows include scanner. The project currently owns no suppressions.
Expand All @@ -82,14 +82,14 @@ build:asan-windows --linkopt=/WHOLEARCHIVE:clang_rt.asan_static_runtime_thunk-x8

# lld-link does not infer Clang's UBSan libraries. Link the runtime matching
# clang-cl's resource directory; never silently substitute trap-only checks.
build:ubsan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fsanitize=undefined
build:ubsan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*,-^Compiler/Runtime/Freestanding/.*@/clang:-fsanitize=undefined
build:ubsan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fno-sanitize-recover=all
build:ubsan-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fno-sanitize-ignorelist
build:ubsan-windows --linkopt=/DEFAULTLIB:clang_rt.ubsan_standalone-x86_64.lib
build:ubsan-windows --linkopt=/DEFAULTLIB:clang_rt.ubsan_standalone_cxx-x86_64.lib
build:asan-ubsan-windows --config=asan-windows
build:asan-ubsan-windows --config=ubsan-windows
build:asan-ubsan-windows '--per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fsanitize=address\\,undefined'
build:asan-ubsan-windows '--per_file_copt=^(Compiler|Interactive|Benchmarks)/.*,-^Compiler/Runtime/Freestanding/.*@/clang:-fsanitize=address\\,undefined'

build:asan-macos --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@-fsanitize=address
build:asan-macos --linkopt=-fsanitize=address
Expand All @@ -114,7 +114,7 @@ build:asan-ubsan-linux --linkopt=-fsanitize=address,undefined

# Coverage-guided decoder campaigns instrument owned native translation units,
# then link libFuzzer's main only into the dedicated driver binary.
build:fuzz-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@/clang:-fsanitize=fuzzer-no-link
build:fuzz-windows --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*,-^Compiler/Runtime/Freestanding/.*@/clang:-fsanitize=fuzzer-no-link
build:fuzz-windows --linkopt=/DEFAULTLIB:clang_rt.fuzzer-x86_64.lib
build:fuzz-macos --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@-fsanitize=fuzzer-no-link
build:fuzz-linux --per_file_copt=^(Compiler|Interactive|Benchmarks)/.*@-fsanitize=fuzzer-no-link
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/compiler-tier1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ jobs:
go run ./helpers/cmd/verify-helpers
go run ./helpers/cmd/verify-examples
go run ./helpers/cmd/verify-benchmarks
go run ./helpers/cmd/execution-cases check

- name: Verify project C++ formatting
shell: pwsh
Expand Down Expand Up @@ -198,6 +199,7 @@ jobs:
go run ./helpers/cmd/verify-helpers
go run ./helpers/cmd/verify-examples
go run ./helpers/cmd/verify-benchmarks
go run ./helpers/cmd/execution-cases check

- name: Test native compiler
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/compiler-tier2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
go run ./helpers/cmd/verify-helpers
go run ./helpers/cmd/verify-examples
go run ./helpers/cmd/verify-benchmarks
go run ./helpers/cmd/execution-cases check

- name: Build and run native compiler suites
shell: bash
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/compiler-tier3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
go run ./helpers/cmd/verify-helpers
go run ./helpers/cmd/verify-examples
go run ./helpers/cmd/verify-benchmarks
go run ./helpers/cmd/execution-cases check

- name: Build and run native compiler suites
shell: bash
Expand Down
22 changes: 22 additions & 0 deletions Analyzer/sources/main/haskell/Visual/Analyzer/Symbols.hs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,28 @@ declarationSymbol source tokens insideType declaration =
typeSymbol spanValue name members
TemplateTypeDeclaration spanValue name _ _ members ->
typeSymbol spanValue name members
EnumDeclaration spanValue name _ _ cases ->
Lsp.DocumentSymbol
(Text.pack (identifierText name))
Nothing
Lsp.SymbolKind_Enum
Nothing
Nothing
(spanRange source spanValue)
(selectionRange source tokens spanValue name)
( Just
[ Lsp.DocumentSymbol
(Text.pack (identifierText (enumCaseName member)))
Nothing
Lsp.SymbolKind_EnumMember
Nothing
Nothing
(spanRange source (enumCaseSpan member))
(spanRange source (enumCaseSpan member))
Nothing
| member <- cases
]
)
FunctionDeclaration spanValue name _ _ parameters _ isStatic _ ->
let symbolRange = spanRange source spanValue
selection = selectionRange source tokens spanValue name
Expand Down
Loading
Loading