diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b5175d..ea1878b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} \ No newline at end of file diff --git a/Makefile b/Makefile index fd61614..5835e62 100644 --- a/Makefile +++ b/Makefile @@ -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. @@ -99,9 +99,12 @@ CLANG_LIBS := \ -lclangStaticAnalyzerCheckers \ -lclangStaticAnalyzerCore \ -lclangSerialization \ + -lclangSupport \ -lclangToolingCore \ -lclangTooling \ -lclangFormat \ + -lclangToolingSyntax \ + -lclangAPINotes \ -Wl,--end-group diff --git a/force_cover.cpp b/force_cover.cpp index d80d5a5..60f520f 100644 --- a/force_cover.cpp +++ b/force_cover.cpp @@ -9,17 +9,17 @@ //------------------------------------------------------------------------------ #include -#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 #include