Skip to content

Commit a499bb5

Browse files
committed
pragma
1 parent c46c3f9 commit a499bb5

Some content is hidden

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

58 files changed

+58
-220
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ find_library(GMP gmp libgmp REQUIRED)
5858

5959
set(SCL_HEADERS "${CMAKE_SOURCE_DIR}/include")
6060
set(SCL_SOURCE_FILES
61-
src/scl/cmdline.cc
61+
src/scl/argparser.cc
6262
src/scl/hex.cc
6363

6464
src/scl/primitives/prg.cc
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CMDLINE_H
19-
#define SCL_CMDLINE_H
18+
#pragma once
2019

2120
#include <algorithm>
2221
#include <cstdlib>
@@ -394,5 +393,3 @@ bool ProgramOptions::Parser::exists(const T& arg_or_flag) const {
394393
}
395394

396395
} // namespace scl
397-
398-
#endif // SCL_CMDLINE_H

include/scl/bitmap.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_BITMAP_H
19-
#define SCL_BITMAP_H
18+
#pragma once
2019

2120
#include <bitset>
2221
#include <cstddef>
@@ -279,5 +278,3 @@ struct Serializer<Bitmap> {
279278
};
280279

281280
} // namespace scl
282-
283-
#endif // SCL_BITMAP_H

include/scl/coro/future.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CORO_FUTURE_H
19-
#define SCL_CORO_FUTURE_H
18+
#pragma once
2019

2120
#include <concepts>
2221
#include <coroutine>
@@ -83,5 +82,3 @@ class FutureAwaiter final {
8382

8483
} // namespace details
8584
} // namespace scl
86-
87-
#endif // SCL_CORO_FUTURE_H

include/scl/coro/promise.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CORO_PROMISE_H
19-
#define SCL_CORO_PROMISE_H
18+
#pragma once
2019

2120
#include <chrono>
2221
#include <coroutine>
@@ -223,5 +222,3 @@ class TaskPromise<void> final : public TaskPromiseBase {
223222

224223
} // namespace details
225224
} // namespace scl
226-
227-
#endif // SCL_CORO_PROMISE_H

include/scl/coro/runtime.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CORO_RUNTIME_H
19-
#define SCL_CORO_RUNTIME_H
18+
#pragma once
2019

2120
#include <coroutine>
2221
#include <functional>
@@ -183,5 +182,3 @@ inline std::coroutine_handle<> SleepAwaiter::await_suspend(
183182

184183
} // namespace details
185184
} // namespace scl
186-
187-
#endif // SCL_CORO_RUNTIME_H

include/scl/coro/sleep_awaiter.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CORO_SLEEP_AWAITER_H
19-
#define SCL_CORO_SLEEP_AWAITER_H
18+
#pragma once
2019

2120
#include <coroutine>
2221

@@ -73,5 +72,3 @@ class SleepAwaiter {
7372

7473
} // namespace details
7574
} // namespace scl
76-
77-
#endif // SCL_CORO_SLEEP_AWAITER_H

include/scl/coro/task.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_CORO_TASK_H
19-
#define SCL_CORO_TASK_H
18+
#pragma once
2019

2120
#include <coroutine>
2221
#include <utility>
@@ -186,5 +185,3 @@ inline Task<void> TaskPromise<void>::get_return_object() {
186185

187186
} // namespace details
188187
} // namespace scl
189-
190-
#endif // SCL_CORO_TASK_H

include/scl/hex.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_HEX_H
19-
#define SCL_HEX_H
18+
#pragma once
2019

2120
#include <iomanip>
2221
#include <sstream>
@@ -103,5 +102,3 @@ T fromHexString(const std::string& s) {
103102
#undef SCL_TO_HEX
104103

105104
} // namespace scl::details
106-
107-
#endif // SCL_HEX_H

include/scl/math/array.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
* along with this program. If not, see <https://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef SCL_MATH_ARRAY_H
19-
#define SCL_MATH_ARRAY_H
18+
#pragma once
2019

2120
#include <array>
2221
#include <cstddef>
@@ -441,5 +440,3 @@ struct Serializer<Array<GROUP, N>> {
441440
};
442441

443442
} // namespace scl
444-
445-
#endif // SCL_MATH_ARRAY_H

0 commit comments

Comments
 (0)