Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ _build/
.github/
.idea/
.reuse/
.venv/
cmake-build-debug/
cmake-build-default/
cmake-build-minsizerel/
Expand Down
4 changes: 2 additions & 2 deletions .buildifier.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "auto",
"mode": "fix",
"lint": "fix",
"mode": "check",
"lint": "warn",
"warningsList": [
"all"
]
Expand Down
6 changes: 5 additions & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,15 @@ Checks: >
-cert-msc50-cpp,
-cert-msc51-cpp,
-clang-analyzer-security.insecureAPI.rand,
-cppcoreguidelines-avoid-do-while,
-cppcoreguidelines-avoid-magic-numbers,
-misc-include-cleaner,
-misc-no-recursion,
-readability-function-cognitive-complexity,
-readability-identifier-length,
-readability-magic-numbers
-readability-magic-numbers,
-readability-math-missing-parentheses


CheckOptions:
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
Expand Down
50 changes: 50 additions & 0 deletions .cppcheck-suppressions.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
.cppcheck-suppressions.xml
RVO2 Library

SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Please send all bug reports to <geom@cs.unc.edu>.

The authors may be contacted via:

Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
Dept. of Computer Science
201 S. Columbia St.
Frederick P. Brooks, Jr. Computer Science Bldg.
Chapel Hill, N.C. 27599-3175
United States of America

<https://gamma.cs.unc.edu/RVO2/>
-->
<suppressions>
<suppress>
<id>missingInclude</id>
</suppress>
<suppress>
<id>missingIncludeSystem</id>
</suppress>
<suppress>
<id>unmatchedSuppression</id>
</suppress>
<suppress>
<id>unusedFunction</id>
</suppress>
<suppress>
<id>unusedStructMember</id>
</suppress>
</suppressions>
52 changes: 52 additions & 0 deletions .deepsource.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#
# .deepsource.toml
# RVO2 Library
#
# SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Please send all bug reports to <geom@cs.unc.edu>.
#
# The authors may be contacted via:
#
# Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
# Dept. of Computer Science
# 201 S. Columbia St.
# Frederick P. Brooks, Jr. Computer Science Bldg.
# Chapel Hill, N.C. 27599-3175
# United States of America
#
# <https://gamma.cs.unc.edu/RVO2/>
#

version = 1

[[analyzers]]
name = "cxx"
enabled = true

[analyzers.meta]
compiler_flags = ["-std=c++98"]
cyclomatic_complexity_threshold = "medium"
include_paths = ["src/"]
misra_compliance = true

[[analyzers]]
name = "docker"
enabled = true

[analyzers.meta]
dockerfile_paths = ["Dockerfile"]
trusted_registries = ["docker.io"]
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/refs/heads/main/schemas/devContainer.schema.json",
Comment thread
snape marked this conversation as resolved.
"name": "RVO2",
"customizations": {
"vscode": {
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
_build/
.idea/
.user.bazelrc
.venv/
bazel-*
cmake-build-*/
CMakeUserPresets.json
Expand Down
18 changes: 12 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,26 @@ trim_trailing_whitespace = true
[*.bazel]
indent_size = 4

[*.build]
indent_size = 4

[*.md]
trim_trailing_whitespace = false

[.bazelignore]
[*.options]
indent_size = 4

[.bazelrc]
indent_size = 4
[*.yaml]
max_line_length = 90

[Brewfile]
[*.yml]
max_line_length = 90

[.bazelignore]
indent_size = 4

[*.build]
[.bazelrc]
indent_size = 4

[*.options]
[Brewfile]
indent_size = 4
39 changes: 39 additions & 0 deletions .gersemirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# -*- mode: yaml; -*-
# vi: set ft=yaml:
#
# .gersemirc
# RVO2 Library
#
# SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Please send all bug reports to <geom@cs.unc.edu>.
#
# The authors may be contacted via:
#
# Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
# Dept. of Computer Science
# 201 S. Columbia St.
# Frederick P. Brooks, Jr. Computer Science Bldg.
# Chapel Hill, N.C. 27599-3175
# United States of America
#
# <https://gamma.cs.unc.edu/RVO2/>
#

# yamllint disable-line rule:line-length
# yaml-language-server: $schema=https://raw.githubusercontent.com/BlankSpruce/gersemi/0.27.2/gersemi/configuration.schema.json
---
indent: 2
9 changes: 6 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,33 @@
*.css text diff=css linguist-documentation whitespace=trailing-space
*.h text diff=cpp linguist-language=c++ whitespace-2
*.html text diff=html linguist-documentation whitespace=trailing-space
*.imp text linguist-language=json whitespace-2
*.imp text linguist-language=yaml whitespace-2
*.json text whitespace-2
*.license text linguist-documentation whitespace-0
*.md text diff=markdown whitespace-md
*.options text diff=python linguist-language=meson whitespace-4
*.pc.in text whitespace-2
*.toml text whitespace-2
*.txt text
*.xml text whitespace-2
*.yaml text whitespace-2
*.yml text whitespace-2

.bazelignore text whitespace-4
.bazelrc text whitespace-4
.bazelversion text whitespace-4
.bazelversion text whitespace-0
.clang-format text whitespace-2
.clang-tidy text whitespace-2
.dockerignore text whitespace-2
.editorconfig text whitespace-2
.gersemirc text whitespace-2
.gitattributes text export-ignore whitespace-2
.gitignore text export-ignore whitespace-2
.secrets.baseline text whitespace-2
.zenodo.json export-ignore linguist-documentation
Brewfile text diff=ruby export-ignore whitespace-4
CMakeLists.txt whitespace-2
CODEOWNERS text whitespace-2
dep5 text linguist-documentation whitespace-1
Dockerfile text whitespace-2
LICENSE text linguist-documentation linguist-vendored whitespace-0
README.md linguist-documentation
Expand Down
17 changes: 17 additions & 0 deletions .github/actionlint-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "actionlint",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+): (.+) \\[(.+)\\]$",
"file": 1,
"line": 2,
"column": 3,
"message": 4,
"code": 5
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include-what-you-use.imp
actionlint-matcher.json
RVO2 Library

SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
Expand Down
17 changes: 17 additions & 0 deletions .github/buildifier-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"problemMatcher": [
{
"owner": "buildifier",
"severity": "warning",
"pattern": [
{
"regexp": "^(.+):(\\d+)(?::(\\d+))?\\s*:\\s*([^:]+?)\\s*:\\s*(.+)$",
"file": 1,
"line": 2,
"code": 4,
"message": 5
}
]
}
]
}
30 changes: 30 additions & 0 deletions .github/buildifier-matcher.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
buildifier-matcher.json
RVO2 Library

SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Please send all bug reports to <geom@cs.unc.edu>.

The authors may be contacted via:

Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
Dept. of Computer Science
201 S. Columbia St.
Frederick P. Brooks, Jr. Computer Science Bldg.
Chapel Hill, N.C. 27599-3175
United States of America

<https://gamma.cs.unc.edu/RVO2/>
18 changes: 18 additions & 0 deletions .github/clang-tidy-matcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"problemMatcher": [
{
"owner": "clang-tidy",
"pattern": [
{
"regexp": "^(.+):(\\d+):(\\d+):\\s+(warning|error):\\s+(.+)\\s+\\[([^\\]]+)\\]$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5,
"code": 6
}
]
}
]
}
30 changes: 30 additions & 0 deletions .github/clang-tidy-matcher.json.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
clang-tidy-matcher.json
RVO2 Library

SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Please send all bug reports to <geom@cs.unc.edu>.

The authors may be contacted via:

Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
Dept. of Computer Science
201 S. Columbia St.
Frederick P. Brooks, Jr. Computer Science Bldg.
Chapel Hill, N.C. 27599-3175
United States of America

<https://gamma.cs.unc.edu/RVO2/>
Loading
Loading