Skip to content

Commit 194ab91

Browse files
authored
Merge pull request #13 from emilydolson/emilydolson-patch-2
Test upgrading toolchain
2 parents 0894fab + 212e91d commit 194ab91

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,20 @@ on:
1010
jobs:
1111
build:
1212

13-
runs-on: ubuntu-22.04
13+
runs-on: ubuntu-24.04
1414

1515
steps:
1616
- name: Install C++ Dependencies
1717
run: sudo apt install -y clang llvm-dev libclang-dev
1818
- name: Install Python Dependencies
1919
run: pip install --user codecov
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v4
2121
- name: make
2222
run: make force_cover_coverage
2323
- name: Run tests
2424
run: ./testing/tests.sh
2525
- name: Generate coverage
2626
run: llvm-profdata merge default.profraw -o default.profdata && llvm-cov show ./force_cover -instr-profile=default.profdata > coverage.txt
27-
- uses: codecov/codecov-action@v1
27+
- uses: codecov/codecov-action@v5
28+
env:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ CXXFLAGS := -O0 -g -std=c++20
6565
PLUGIN_CXXFLAGS := -fpic
6666

6767
LLVM_CXXFLAGS := `$(LLVM_CONFIG) --cxxflags`
68-
LLVM_LDFLAGS := `$(LLVM_CONFIG) --ldflags --libs --system-libs`
68+
LLVM_LDFLAGS := `$(LLVM_CONFIG) --ldflags --libs --system-libs `
6969

7070
# These are required when compiling vs. a source distribution of Clang. For
7171
# binary distributions llvm-config --cxxflags gives the right path.
@@ -99,9 +99,12 @@ CLANG_LIBS := \
9999
-lclangStaticAnalyzerCheckers \
100100
-lclangStaticAnalyzerCore \
101101
-lclangSerialization \
102+
-lclangSupport \
102103
-lclangToolingCore \
103104
-lclangTooling \
104105
-lclangFormat \
106+
-lclangToolingSyntax \
107+
-lclangAPINotes \
105108
-Wl,--end-group
106109

107110

force_cover.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@
99
//------------------------------------------------------------------------------
1010
#include <string>
1111

12-
#include "clang/AST/AST.h"
13-
#include "clang/AST/ASTConsumer.h"
12+
// #include "clang/AST/AST.h"
13+
// #include "clang/AST/ASTConsumer.h"
1414
#include "clang/ASTMatchers/ASTMatchFinder.h"
15-
#include "clang/ASTMatchers/ASTMatchers.h"
15+
// #include "clang/ASTMatchers/ASTMatchers.h"
1616
#include "clang/Frontend/CompilerInstance.h"
17-
#include "clang/Frontend/FrontendActions.h"
17+
// #include "clang/Frontend/FrontendActions.h"
1818
#include "clang/Rewrite/Core/Rewriter.h"
1919
#include "clang/Tooling/CommonOptionsParser.h"
2020
#include "clang/Tooling/Tooling.h"
21-
#include "llvm/Support/raw_ostream.h"
22-
#include "clang/AST/Decl.h"
21+
// #include "llvm/Support/raw_ostream.h"
22+
// #include "clang/AST/Decl.h"
2323

2424
#include <iostream>
2525
#include <set>

0 commit comments

Comments
 (0)