Skip to content

Commit d14da28

Browse files
committed
Add clang 15 to test matrix
1 parent 379f5a2 commit d14da28

6 files changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/linux-full-tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ jobs:
9292
tag: jammy
9393
cc: clang
9494
cxx: clang++
95+
- name: "Clang 15"
96+
shortname: clang15
97+
tag: kinetic
98+
cc: clang
99+
cxx: clang++
95100
- name: "C++14 mode"
96101
shortname: c++14
97102
tag: rolling

.github/workflows/linux-nondefault.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ jobs:
9292
tag: jammy
9393
cc: clang
9494
cxx: clang++
95+
- name: "Clang 15"
96+
shortname: clang15
97+
tag: kinetic
98+
cc: clang
99+
cxx: clang++
95100
- name: "C++14 mode"
96101
shortname: c++14
97102
tag: rolling

.github/workflows/linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@ jobs:
9595
cc: clang
9696
cxx: clang++
9797
tests: true
98+
- name: "Clang 15"
99+
shortname: clang15
100+
tag: kinetic
101+
cc: clang
102+
cxx: clang++
103+
tests: true
98104
- name: "C++14 mode"
99105
shortname: c++14
100106
tag: rolling

ql/experimental/barrieroption/perturbativebarrieroptionengine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ namespace QuantLib {
797797
Real RUB, Real AR, Real RUC,
798798
int NUC));
799799

800-
Real tvtl(int NU, const Real limit[], const Real sigmarho[], Real epsi) {
800+
Real tvtl(int NU, const Real limit[4], const Real sigmarho[4], Real epsi) {
801801
/*
802802
A function for computing trivariate normal and t-probabilities.
803803

ql/experimental/credit/defaultprobabilitykey.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,7 @@ namespace QuantLib {
9191
}
9292

9393
}
94+
95+
#if defined(QL_PATCH_MSVC)
96+
#pragma warning(pop)
97+
#endif

test-suite/tracing.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ namespace {
3636
}
3737
};
3838

39+
#if defined(__clang__) && __clang_major__ >= 15
40+
#pragma clang diagnostic push
41+
#pragma clang diagnostic ignored "-Wunused-but-set-variable"
42+
#endif
43+
3944
void testTraceOutput(bool enable,
4045
#if defined(QL_ENABLE_TRACING)
4146
const std::string& result) {
@@ -69,6 +74,10 @@ namespace {
6974
}
7075
}
7176

77+
#if defined(__clang__) && __clang_major__ >= 15
78+
#pragma clang diagnostic pop
79+
#endif
80+
7281
}
7382

7483

@@ -87,4 +96,3 @@ test_suite* TracingTest::suite() {
8796
suite->add(QUANTLIB_TEST_CASE(&TracingTest::testOutput));
8897
return suite;
8998
}
90-

0 commit comments

Comments
 (0)