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
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,20 @@ on:
jobs:
build:

runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- name: Install C++ Dependencies
run: sudo apt install -y clang llvm-dev libclang-dev
- name: Install Python Dependencies
run: pip install --user codecov
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: make
run: make force_cover_coverage
- name: Run tests
run: ./testing/tests.sh
- name: Generate coverage
run: llvm-profdata merge default.profraw -o default.profdata && llvm-cov show ./force_cover -instr-profile=default.profdata > coverage.txt
- uses: codecov/codecov-action@v1
- uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ CXXFLAGS := -O0 -g -std=c++20
PLUGIN_CXXFLAGS := -fpic

LLVM_CXXFLAGS := `$(LLVM_CONFIG) --cxxflags`
LLVM_LDFLAGS := `$(LLVM_CONFIG) --ldflags --libs --system-libs`
LLVM_LDFLAGS := `$(LLVM_CONFIG) --ldflags --libs --system-libs `

# These are required when compiling vs. a source distribution of Clang. For
# binary distributions llvm-config --cxxflags gives the right path.
Expand Down Expand Up @@ -99,9 +99,12 @@ CLANG_LIBS := \
-lclangStaticAnalyzerCheckers \
-lclangStaticAnalyzerCore \
-lclangSerialization \
-lclangSupport \
-lclangToolingCore \
-lclangTooling \
-lclangFormat \
-lclangToolingSyntax \
-lclangAPINotes \
-Wl,--end-group


Expand Down
12 changes: 6 additions & 6 deletions force_cover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
//------------------------------------------------------------------------------
#include <string>

#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
// #include "clang/AST/AST.h"
// #include "clang/AST/ASTConsumer.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/ASTMatchers/ASTMatchers.h"
// #include "clang/ASTMatchers/ASTMatchers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
// #include "clang/Frontend/FrontendActions.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/Support/raw_ostream.h"
#include "clang/AST/Decl.h"
// #include "llvm/Support/raw_ostream.h"
// #include "clang/AST/Decl.h"

#include <iostream>
#include <set>
Expand Down