Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Check in settings and container files
  • Loading branch information
vchlin committed Apr 19, 2025
commit c1d1520b38f20bcbacd3a58d3897ce77a9ffa8bc
5 changes: 5 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/devcontainers/cpp:1-ubuntu-24.04

# Install clangd.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends clangd
30 changes: 30 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/cpp
{
"name": "C++",
"build": {
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": [
"llvm-vs-code-extensions.vscode-clangd"
]
}
}

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "gcc -v",

// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@

version: 2
updates:
- package-ecosystem: "devcontainers"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.cache/
.devcontainer/
build/
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"C_Cpp.intelliSenseEngine": "disabled"
}
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,9 @@ if(PROJECT_IS_TOP_LEVEL)
# Coverage.
get_property(COROFX_ALL_TESTS DIRECTORY tests PROPERTY TESTS)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND COROFX_ENABLE_COVERAGE)
include(MyLLVMTools)
my_get_llvm_version(MAJOR LLVM_VERSION_MAJOR)
add_custom_target(coverage
COMMAND llvm-profdata-${LLVM_VERSION_MAJOR} merge -sparse *.profraw -o tests.profdata
COMMAND llvm-cov-${LLVM_VERSION_MAJOR} report ${COROFX_ALL_TESTS} -instr-profile=tests.profdata
COMMAND llvm-profdata merge -sparse *.profraw -o tests.profdata
COMMAND llvm-cov report ${COROFX_ALL_TESTS} -instr-profile=tests.profdata
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tests"
)
endif()
Expand Down
33 changes: 0 additions & 33 deletions cmake/MyLLVMTools.cmake

This file was deleted.