Skip to content

Commit 8157037

Browse files
committed
rust: simplify copyright notes in source files
1 parent a5f2028 commit 8157037

File tree

30 files changed

+44
-322
lines changed

30 files changed

+44
-322
lines changed

rust/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-3.0-or-later
2+
13
[workspace]
24
members = [
35
"bear",

rust/bear/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-3.0-or-later
2+
13
[package]
24
name = "bear"
35
description = "Bear is a tool that generates a compilation database for clang tooling."

rust/bear/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
13
fn main() {
24
println!("cargo:rustc-env=WRAPPER_EXECUTABLE_PATH=/usr/libexec/bear/wrapper");
35
println!("cargo:rustc-env=PRELOAD_LIBRARY_PATH=/usr/libexec/bear/$LIB/libexec.so");

rust/bear/src/args.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
/* Copyright (C) 2012-2024 by László Nagy
2-
This file is part of Bear.
3-
4-
Bear is a tool to generate compilation database for clang tooling.
5-
6-
Bear is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
Bear is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
192

203
//! This module contains the command line interface of the application.
214
//!

rust/bear/src/bin/main.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
/* Copyright (C) 2012-2024 by László Nagy
2-
This file is part of Bear.
3-
4-
Bear is a tool to generate compilation database for clang tooling.
5-
6-
Bear is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
Bear is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
192
use std::process::ExitCode;
203

214
use bear::input::EventFileReader;

rust/bear/src/config.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
/* Copyright (C) 2012-2024 by László Nagy
2-
This file is part of Bear.
1+
// SPDX-License-Identifier: GPL-3.0-or-later
32

4-
Bear is a tool to generate compilation database for clang tooling.
5-
6-
Bear is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
Bear is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
*/
193
use std::collections::HashSet;
204
use std::fs::OpenOptions;
215
use std::path::{Path, PathBuf};

rust/bear/src/fixtures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
12

23
#[cfg(test)]
34
pub mod fixtures {

rust/bear/src/input.rs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
/* Copyright (C) 2012-2024 by László Nagy
2-
This file is part of Bear.
3-
4-
Bear is a tool to generate compilation database for clang tooling.
5-
6-
Bear is free software: you can redistribute it and/or modify
7-
it under the terms of the GNU General Public License as published by
8-
the Free Software Foundation, either version 3 of the License, or
9-
(at your option) any later version.
10-
11-
Bear is distributed in the hope that it will be useful,
12-
but WITHOUT ANY WARRANTY; without even the implied warranty of
13-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14-
GNU General Public License for more details.
15-
16-
You should have received a copy of the GNU General Public License
17-
along with this program. If not, see <http://www.gnu.org/licenses/>.
18-
*/
1+
// SPDX-License-Identifier: GPL-3.0-or-later
192

203
use anyhow::Context;
214
use serde_json::{Deserializer, Error, Value};

rust/bear/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
13
pub mod args;
24
pub mod config;
35
mod fixtures;

rust/bear/src/output/clang/iterator.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// from https://github.com/serde-rs/json/issues/404#issuecomment-892957228
1+
// SPDX-License-Identifier: GPL-3.0-or-later
2+
//! Provides an iterator over a JSON array of objects.
3+
//!
4+
//! from https://github.com/serde-rs/json/issues/404#issuecomment-892957228
25
36
use std::io::{self, Read};
47

0 commit comments

Comments
 (0)