Skip to content

Commit 25924fa

Browse files
committed
Update .clang-format and check_header.py to C++17
1 parent 7432f80 commit 25924fa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Language: Cpp
3-
Standard: c++14
3+
Standard: c++17
44

55

66
# The following is close to the style we've been using all these years
@@ -33,7 +33,7 @@ PointerAlignment: Left
3333

3434
SortIncludes: true
3535
IncludeBlocks: Merge
36-
IncludeCategories:
36+
IncludeCategories:
3737
- Regex: '^"'
3838
Priority: 1
3939
- Regex: '^<ql/'

tools/check_header.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def check(header):
1111
source_file = header + ".cpp"
1212
shutil.copy(header, source_file)
1313
object_file = header + ".o"
14-
command = f"{cxx} -std=c++14 -c -Wno-unknown-pragmas -Wall -Werror -I. {source_file} -o {object_file}"
14+
command = f"{cxx} -std=c++17 -c -Wno-unknown-pragmas -Wall -Werror -I. {source_file} -o {object_file}"
1515
print(command, file=sys.stderr)
1616
code = os.system(command)
1717
try:

0 commit comments

Comments
 (0)