Skip to content

Commit

Permalink
Update .clang-format and check_header.py to C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
sweemer committed Jul 27, 2024
1 parent 7432f80 commit 25924fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Language: Cpp
Standard: c++14
Standard: c++17


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

SortIncludes: true
IncludeBlocks: Merge
IncludeCategories:
IncludeCategories:
- Regex: '^"'
Priority: 1
- Regex: '^<ql/'
Expand Down
2 changes: 1 addition & 1 deletion tools/check_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def check(header):
source_file = header + ".cpp"
shutil.copy(header, source_file)
object_file = header + ".o"
command = f"{cxx} -std=c++14 -c -Wno-unknown-pragmas -Wall -Werror -I. {source_file} -o {object_file}"
command = f"{cxx} -std=c++17 -c -Wno-unknown-pragmas -Wall -Werror -I. {source_file} -o {object_file}"
print(command, file=sys.stderr)
code = os.system(command)
try:
Expand Down

0 comments on commit 25924fa

Please sign in to comment.