Skip to content

Commit 3a656b8

Browse files
authored
Merge pull request #170 from iMichka/cxx
Utils: add support for new c++ versions
2 parents 10dadd8 + b971292 commit 3a656b8

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changes
22
=======
33

4+
Version 2.5.0
5+
-------------
6+
7+
1. Add support for new cxx versions in cxx_standard class
8+
9+
410
Version 2.4.0
511
-------------
612

src/pygccxml/utils/utils.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,12 @@ class cxx_standard(object):
277277
'-std=c++17': 201703,
278278
'-std=gnu++1z': 201703,
279279
'-std=gnu++17': 201703,
280-
'-std=c++2a': float('inf'),
281-
'-std=gnu++2a': float('inf'),
280+
'-std=c++2a': 202002,
281+
'-std=gnu++2a': 202002,
282+
'-std=c++20': 202002,
283+
'-std=gnu++20': 202002,
284+
'-std=c++23': float('inf'),
285+
'-std=gnu++23': float('inf'),
282286
}
283287

284288
def __init__(self, cflags):

0 commit comments

Comments
 (0)