forked from wpilibsuite/allwpilib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into command-templates
- Loading branch information
Showing
2,491 changed files
with
181,519 additions
and
90,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
color: false | ||
definitions: [] | ||
line_length: 100 | ||
list_expansion: favour-inlining | ||
quiet: false | ||
unsafe: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
*.cpp text eol=lf | ||
*.gradle text eol=lf | ||
*.h text eol=lf | ||
*.inc text eol=lf | ||
*.java text eol=lf | ||
*.json text eol=lf | ||
*.md text eol=lf | ||
*.xml text eol=lf | ||
|
||
# Generated files | ||
hal/src/generated/** linguist-generated | ||
ntcore/src/generated/** linguist-generated | ||
wpimath/src/generated/** linguist-generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Comment on PR for robotpy | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
paths: | ||
- 'wpilibNewCommands/**' | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Comment on PR | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'This PR modifies commands. Please open a corresponding PR in [Python Commands](https://github.com/robotpy/robotpy-commands-v2/) and include a link to this PR.' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import argparse | ||
import json | ||
|
||
|
||
def main(): | ||
parser = argparse.ArgumentParser( | ||
description="Fix compile_commands.json generated by Gradle" | ||
) | ||
parser.add_argument("filename", help="compile_commands.json location") | ||
cmd_args = parser.parse_args() | ||
|
||
# Read JSON | ||
with open(cmd_args.filename) as f: | ||
data = json.load(f) | ||
|
||
for obj in data: | ||
out_args = [] | ||
|
||
# Filter out -isystem flags that cause false positives | ||
iter_args = iter(obj["arguments"]) | ||
for arg in iter_args: | ||
if arg == "-isystem": | ||
next_arg = next(iter_args) | ||
|
||
# /usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/include/xmmintrin.h:54:1: | ||
# error: conflicting types for '_mm_prefetch' [clang-diagnostic-error] | ||
if not next_arg.startswith("/usr/lib/gcc/"): | ||
out_args += ["-isystem", next_arg] | ||
else: | ||
out_args.append(arg) | ||
|
||
obj["arguments"] = out_args | ||
|
||
# Write JSON | ||
with open(cmd_args.filename, "w") as f: | ||
json.dump(data, f, indent=2) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.