Skip to content

Commit f4a7ca3

Browse files
authored
Trim trailing whitespace and normalize newlines. (NVIDIA#1633)
* Trim trailing whitespace and normalize newlines. * Add settings to devcontainer. * Update devcontainer files. * Revert changes to .devcontainer/make_devcontainers.sh
1 parent cefa6b8 commit f4a7ca3

File tree

195 files changed

+844
-899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+844
-899
lines changed

.devcontainer/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ For more information, see the `.devcontainer/make_devcontainers.sh --help` messa
136136

137137
2. Install WSL 2 by running:
138138
```bash
139-
wsl --install
139+
wsl --install
140140
```
141141
This should probably install Ubuntu distro as a default.
142142

@@ -182,14 +182,14 @@ then run `sudo systemctl restart docker.service`.
182182
10. Open the CCCL cloned repo in VS Code ( `Ctrl + Shift + P `, select `File: Open Folder...` and select the path where your CCCL clone is located).
183183
184184
11. If prompted, choose `Reopen in Container`.
185-
185+
186186
- If you are not prompted just type `Ctrl + Shift + P` and `Dev Containers: Open Folder in Container ...`.
187187
188188
12. Verify that Dev Container was configured properly by running `nvidia-smi` in your Dev Container terminal. For a proper configuration it is important for the steps in [Install prerequisites and VS Code extensions](#prereqs) to be followed in a precise order.
189189
190190
From that point on, the guide aligns with our [existing Dev Containers native Linux guide](https://github.com/NVIDIA/cccl/blob/main/.devcontainer/README.md) with just one minor potential alteration:
191191
192-
13. If WSL was launched without the X-server enabled, when asked to "authenticate Git with your Github credentials", if you answer **Yes**, the browser might not open automatically, with the following error message.
192+
13. If WSL was launched without the X-server enabled, when asked to "authenticate Git with your Github credentials", if you answer **Yes**, the browser might not open automatically, with the following error message.
193193
194194
> Failed opening a web browser at https://github.com/login/device
195195
exec: "xdg-open,x-www-browser,www-browser,wslview": executable file not found in $PATH

.devcontainer/cuda11.1-gcc6/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda11.1-gcc7/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda11.1-gcc8/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda11.1-gcc9/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda11.1-llvm9/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda11.8-gcc11/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc10/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc11/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc12/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc7/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc8/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-gcc9/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm10/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm11/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm12/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm13/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm14/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm15/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm16/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-llvm9/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/cuda12.4-oneapi2023.2.0/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@
3939
"clang-format.executable": "/usr/local/bin/clang-format",
4040
"clangd.arguments": [
4141
"--compile-commands-dir=${workspaceFolder}"
42-
]
42+
],
43+
"files.eol": "\n",
44+
"files.trimTrailingWhitespace": true
4345
}
4446
}
4547
},

.devcontainer/launch.sh

-1
Original file line numberDiff line numberDiff line change
@@ -127,4 +127,3 @@ main() {
127127
}
128128

129129
main "$@"
130-

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @nvidia/cccl-codeowners
44

55
# Libraries
6-
thrust/ @nvidia/cccl-thrust-codeowners @nvidia/cccl-codeowners
6+
thrust/ @nvidia/cccl-thrust-codeowners @nvidia/cccl-codeowners
77
cub/ @nvidia/cccl-cub-codeowners @nvidia/cccl-codeowners
88
libcudacxx/ @nvidia/cccl-libcudacxx-codeowners @nvidia/cccl-codeowners
99

.github/ISSUE_TEMPLATE/bug_report.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ body:
1111
options:
1212
- label: I confirmed there appear to be no [duplicate issues](https://github.com/NVIDIA/cccl/issues) for this bug and that I agree to the [Code of Conduct](CODE_OF_CONDUCT.md)
1313
required: true
14-
14+
1515
- type: dropdown
1616
id: bug-type
1717
attributes:
@@ -46,7 +46,7 @@ body:
4646
attributes:
4747
label: Describe the bug
4848
description: A clear and concise description of what problem you are running into.
49-
placeholder: "Attempting to use structured bindings with `cuda::std::tuple` fails to compile."
49+
placeholder: "Attempting to use structured bindings with `cuda::std::tuple` fails to compile."
5050
validations:
5151
required: true
5252

@@ -94,16 +94,16 @@ body:
9494
attributes:
9595
label: Operating System
9696
description:
97-
If applicable, the OS version where this bug occurs.
97+
If applicable, the OS version where this bug occurs.
9898
placeholder: Ubuntu Linux 20.04
9999
validations:
100100
required: false
101-
101+
102102
- type: textarea
103103
id: nvidia-smi-output
104104
attributes:
105105
label: nvidia-smi output
106-
description: If applicable, the output from running the `nvidia-smi` command.
106+
description: If applicable, the output from running the `nvidia-smi` command.
107107
placeholder: |
108108
+-----------------------------------------------------------------------------+
109109
| NVIDIA-SMI 495.29.05 Driver Version: 495.29.05 CUDA Version: 11.5 |
@@ -118,12 +118,12 @@ body:
118118
+-------------------------------+----------------------+----------------------+
119119
validations:
120120
required: false
121-
121+
122122
- type: textarea
123123
id: nvcc-version
124124
attributes:
125125
label: NVCC version
126-
description: If applicable, the version of nvcc you're using.
126+
description: If applicable, the version of nvcc you're using.
127127
placeholder: |
128128
nvcc --version
129129
nvcc: NVIDIA (R) Cuda compiler driver

.github/ISSUE_TEMPLATE/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ blank_issues_enabled: true
22
contact_links:
33
- name: Question
44
url: https://github.com/NVIDIA/cccl/discussions
5-
about: Check out our Discussions page to ask and answer questions.
5+
about: Check out our Discussions page to ask and answer questions.
66
- name: CUDA C++ Core Libraries Discord
77
url: https://discord.gg/nvidiadeveloper
8-
about: Come chat about using and contributing to CCCL!
8+
about: Come chat about using and contributing to CCCL!

.github/ISSUE_TEMPLATE/doc_request.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ body:
3434
- type: textarea
3535
id: search_locs
3636
attributes:
37-
label: If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
37+
label: If this is a correction, please provide a link to the incorrect documentation. If this is a new documentation request, please link to where you have looked.
3838
placeholder: |
3939
https://docs.nvidia.com/cuda/thrust/
4040
https://docs.nvidia.com/cuda/cub/
4141
https://docs.nvidia.com/cuda/cuda-c-std/index.html
42-

.github/ISSUE_TEMPLATE/feature_request.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ body:
2626
- Not sure
2727
validations:
2828
required: true
29-
29+
3030
- type: textarea
3131
id: description
3232
attributes:
3333
label: Is your feature request related to a problem? Please describe.
3434
description: A clear and concise description of what the problem is, e.g., "I would like to be able to..."
35-
placeholder: I would like to be able to use the equivalent of `std::variant` in both host and device code.
35+
placeholder: I would like to be able to use the equivalent of `std::variant` in both host and device code.
3636
validations:
3737
required: true
3838

@@ -42,7 +42,7 @@ body:
4242
label: Describe the solution you'd like
4343
description: A clear and concise description of what you want to happen.
4444
placeholder: |
45-
Provide the header `<cuda/std/variant>` that implements a heterogeneous `cuda::std::variant` type.
45+
Provide the header `<cuda/std/variant>` that implements a heterogeneous `cuda::std::variant` type.
4646
validations:
4747
required: true
4848

@@ -53,7 +53,7 @@ body:
5353
description:
5454
If applicable, please add a clear and concise description of any alternative solutions or features you've
5555
considered.
56-
placeholder: The alternatives to a `variant` are unappealing. They usually involve using a raw `union` which is not type safe and has none of the convenient machinery like `std::visit`.
56+
placeholder: The alternatives to a `variant` are unappealing. They usually involve using a raw `union` which is not type safe and has none of the convenient machinery like `std::visit`.
5757
validations:
5858
required: false
5959

@@ -62,6 +62,6 @@ body:
6262
attributes:
6363
label: Additional context
6464
description: Add any other context about the request here.
65-
placeholder: This would be a helpful vocabulary type that could replace a lot of custom and error prone code.
65+
placeholder: This would be a helpful vocabulary type that could replace a lot of custom and error prone code.
6666
validations:
6767
required: false

0 commit comments

Comments
 (0)