From c650d5366f9fa1904b0310f232a86e2aad1703ae Mon Sep 17 00:00:00 2001 From: Junhyun Shim Date: Wed, 13 Apr 2022 19:17:23 +0200 Subject: [PATCH] Prefix sources and headers with license comment Add include guards --- bindings/c/test/fdb_api.hpp | 24 ++++++++++++++++++++++++ bindings/c/test/mako/async.cpp | 20 ++++++++++++++++++++ bindings/c/test/mako/async.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/blob_granules.cpp | 20 ++++++++++++++++++++ bindings/c/test/mako/blob_granules.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/future.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/logger.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/mako.cpp | 19 +++++++++++++++++++ bindings/c/test/mako/mako.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/operations.cpp | 20 ++++++++++++++++++++ bindings/c/test/mako/operations.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/process.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/shm.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/stats.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/time.hpp | 20 ++++++++++++++++++++ bindings/c/test/mako/utils.cpp | 24 ++++++++++++++++++++---- bindings/c/test/mako/utils.hpp | 20 ++++++++++++++++++++ 17 files changed, 343 insertions(+), 4 deletions(-) diff --git a/bindings/c/test/fdb_api.hpp b/bindings/c/test/fdb_api.hpp index f5ffde486f..24b206a22b 100644 --- a/bindings/c/test/fdb_api.hpp +++ b/bindings/c/test/fdb_api.hpp @@ -1,3 +1,25 @@ +/* + * fdb_api.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + +#ifndef FDB_API_HPP +#define FDB_API_HPP #pragma once #ifndef FDB_API_VERSION @@ -541,3 +563,5 @@ public: }; } // namespace fdb + +#endif /*FDB_API_HPP*/ diff --git a/bindings/c/test/mako/async.cpp b/bindings/c/test/mako/async.cpp index d447370262..09932bd10a 100644 --- a/bindings/c/test/mako/async.cpp +++ b/bindings/c/test/mako/async.cpp @@ -1,3 +1,23 @@ +/* + * async.cpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #include #include "async.hpp" #include "future.hpp" diff --git a/bindings/c/test/mako/async.hpp b/bindings/c/test/mako/async.hpp index 4a683d512d..717e81fc22 100644 --- a/bindings/c/test/mako/async.hpp +++ b/bindings/c/test/mako/async.hpp @@ -1,3 +1,23 @@ +/* + * async.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_ASYNC_HPP #define MAKO_ASYNC_HPP diff --git a/bindings/c/test/mako/blob_granules.cpp b/bindings/c/test/mako/blob_granules.cpp index 967679d35f..16b440a726 100644 --- a/bindings/c/test/mako/blob_granules.cpp +++ b/bindings/c/test/mako/blob_granules.cpp @@ -1,3 +1,23 @@ +/* + * blob_granules.cpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #include "blob_granules.hpp" #include "logger.hpp" #include diff --git a/bindings/c/test/mako/blob_granules.hpp b/bindings/c/test/mako/blob_granules.hpp index a0d05b35f5..67ef8952c1 100644 --- a/bindings/c/test/mako/blob_granules.hpp +++ b/bindings/c/test/mako/blob_granules.hpp @@ -1,3 +1,23 @@ +/* + * blob_granules.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_BLOB_GRANULES_HPP #define MAKO_BLOB_GRANULES_HPP diff --git a/bindings/c/test/mako/future.hpp b/bindings/c/test/mako/future.hpp index 82f9b93a2a..ba25cfbcfa 100644 --- a/bindings/c/test/mako/future.hpp +++ b/bindings/c/test/mako/future.hpp @@ -1,3 +1,23 @@ +/* + * future.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_FUTURE_HPP #define MAKO_FUTURE_HPP diff --git a/bindings/c/test/mako/logger.hpp b/bindings/c/test/mako/logger.hpp index 45cab8347a..184062b560 100644 --- a/bindings/c/test/mako/logger.hpp +++ b/bindings/c/test/mako/logger.hpp @@ -1,3 +1,23 @@ +/* + * logger.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_LOGGER_HPP #define MAKO_LOGGER_HPP #include diff --git a/bindings/c/test/mako/mako.cpp b/bindings/c/test/mako/mako.cpp index d8dd71dd38..35096620dc 100644 --- a/bindings/c/test/mako/mako.cpp +++ b/bindings/c/test/mako/mako.cpp @@ -1,3 +1,22 @@ +/* + * mako.cpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ #include #include diff --git a/bindings/c/test/mako/mako.hpp b/bindings/c/test/mako/mako.hpp index 95c115fa67..6c1862e6d2 100644 --- a/bindings/c/test/mako/mako.hpp +++ b/bindings/c/test/mako/mako.hpp @@ -1,3 +1,23 @@ +/* + * mako.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_HPP #define MAKO_HPP diff --git a/bindings/c/test/mako/operations.cpp b/bindings/c/test/mako/operations.cpp index 72f5ef71c2..8667747c4c 100644 --- a/bindings/c/test/mako/operations.cpp +++ b/bindings/c/test/mako/operations.cpp @@ -1,3 +1,23 @@ +/* + * operations.cpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #include "blob_granules.hpp" #include "operations.hpp" #include "mako.hpp" diff --git a/bindings/c/test/mako/operations.hpp b/bindings/c/test/mako/operations.hpp index af619d9c2d..d454132126 100644 --- a/bindings/c/test/mako/operations.hpp +++ b/bindings/c/test/mako/operations.hpp @@ -1,3 +1,23 @@ +/* + * operations.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_OPERATIONS_HPP #define MAKO_OPERATIONS_HPP diff --git a/bindings/c/test/mako/process.hpp b/bindings/c/test/mako/process.hpp index 174fc0e427..bbf460b934 100644 --- a/bindings/c/test/mako/process.hpp +++ b/bindings/c/test/mako/process.hpp @@ -1,3 +1,23 @@ +/* + * process.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_PROCESS_HPP #define MAKO_PROCESS_HPP diff --git a/bindings/c/test/mako/shm.hpp b/bindings/c/test/mako/shm.hpp index 06460293fa..67adde6f24 100644 --- a/bindings/c/test/mako/shm.hpp +++ b/bindings/c/test/mako/shm.hpp @@ -1,3 +1,23 @@ +/* + * shm.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_SHM_HPP #define MAKO_SHM_HPP diff --git a/bindings/c/test/mako/stats.hpp b/bindings/c/test/mako/stats.hpp index 0fe8dfb2b6..5cea6707f3 100644 --- a/bindings/c/test/mako/stats.hpp +++ b/bindings/c/test/mako/stats.hpp @@ -1,3 +1,23 @@ +/* + * stats.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_STATS_HPP #define MAKO_STATS_HPP diff --git a/bindings/c/test/mako/time.hpp b/bindings/c/test/mako/time.hpp index c1684b02e5..4093dbe982 100644 --- a/bindings/c/test/mako/time.hpp +++ b/bindings/c/test/mako/time.hpp @@ -1,3 +1,23 @@ +/* + * time.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef MAKO_TIME_HPP #define MAKO_TIME_HPP diff --git a/bindings/c/test/mako/utils.cpp b/bindings/c/test/mako/utils.cpp index e4d2a71565..e267385336 100644 --- a/bindings/c/test/mako/utils.cpp +++ b/bindings/c/test/mako/utils.cpp @@ -1,3 +1,23 @@ +/* + * utils.cpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #include "utils.hpp" #include "mako.hpp" #include @@ -5,10 +25,6 @@ #include #include -namespace math { -#include -} - namespace mako { /* uniform-distribution random */ diff --git a/bindings/c/test/mako/utils.hpp b/bindings/c/test/mako/utils.hpp index 73ee0e0fc1..4ed10183b2 100644 --- a/bindings/c/test/mako/utils.hpp +++ b/bindings/c/test/mako/utils.hpp @@ -1,3 +1,23 @@ +/* + * utils.hpp + * + * This source file is part of the FoundationDB open source project + * + * Copyright 2013-2022 Apple Inc. and the FoundationDB project authors + * + * 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 + * + * http://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. + */ + #ifndef UTILS_HPP #define UTILS_HPP #pragma once