diff --git a/c_test/.ccls b/c_test/.ccls index 90584dd..3733e52 100644 --- a/c_test/.ccls +++ b/c_test/.ccls @@ -1 +1,21 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + gcc diff --git a/c_test/.envrc b/c_test/.envrc index 8f9d5d7..c33f099 100644 --- a/c_test/.envrc +++ b/c_test/.envrc @@ -1,3 +1,23 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + use flake || use nix watch_file flake.nix diff --git a/c_test/.gitignore b/c_test/.gitignore index 8dad36b..8b2c2dd 100644 --- a/c_test/.gitignore +++ b/c_test/.gitignore @@ -1,3 +1,23 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + # build /target /result diff --git a/c_test/flake.nix b/c_test/flake.nix index 96e6f25..86d5330 100644 --- a/c_test/flake.nix +++ b/c_test/flake.nix @@ -1,3 +1,22 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . { description = "[can be empty]"; diff --git a/c_test/makefile b/c_test/makefile index d460739..6e8be4a 100644 --- a/c_test/makefile +++ b/c_test/makefile @@ -1,3 +1,23 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . + PREFIX := /usr/local BINPREFIX := $(DESTDIR)$(PREFIX)/bin MANPREFIX := $(DESTDIR)$(PREFIX)/share/man/man1 diff --git a/c_test/result.h b/c_test/result.h index 465fbea..cffc020 100644 --- a/c_test/result.h +++ b/c_test/result.h @@ -1,3 +1,25 @@ +/* + * Copyright (C) 2023 - 2024: + * The Trinitrix Project + * SPDX-License-Identifier: LGPL-3.0-or-later + * + * This file is part of the Trixy crate for Trinitrix. + * + * Trixy is free software: you can redistribute it and/or modify + * it under the terms of the Lesser GNU General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * and the Lesser GNU General Public License along with this program. + * If not, see . + */ + #include #include diff --git a/c_test/src/main.c b/c_test/src/main.c index 924e15b..4e2fdad 100644 --- a/c_test/src/main.c +++ b/c_test/src/main.c @@ -1,3 +1,25 @@ +/* + * Copyright (C) 2023 - 2024: + * The Trinitrix Project + * SPDX-License-Identifier: LGPL-3.0-or-later + * + * This file is part of the Trixy crate for Trinitrix. + * + * Trixy is free software: you can redistribute it and/or modify + * it under the terms of the Lesser GNU General Public License as + * published by the Free Software Foundation, either version 3 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * and the Lesser GNU General Public License along with this program. + * If not, see . + */ + #include #include diff --git a/c_test/treefmt.nix b/c_test/treefmt.nix index 1cbab40..d45cf4d 100644 --- a/c_test/treefmt.nix +++ b/c_test/treefmt.nix @@ -1,3 +1,22 @@ +# Copyright (C) 2023 - 2024: +# The Trinitrix Project +# SPDX-License-Identifier: LGPL-3.0-or-later +# +# This file is part of the Trixy crate for Trinitrix. +# +# Trixy is free software: you can redistribute it and/or modify +# it under the terms of the Lesser GNU General Public License as +# published by the Free Software Foundation, either version 3 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# and the Lesser GNU General Public License along with this program. +# If not, see . { treefmt-nix, pkgs, diff --git a/tests/error_derive/input.tri b/tests/error_derive/input.tri index eccdcf2..d87e9b0 100644 --- a/tests/error_derive/input.tri +++ b/tests/error_derive/input.tri @@ -27,7 +27,6 @@ enum ErrorOne { #[error = "I'm also an error'"] ErrorB, - // TODO: We also need to assert, that all enum veriants have the error attribute. <2024-05-19> } diff --git a/tests/result/input.tri b/tests/result/input.tri index 9d0581e..928c090 100644 --- a/tests/result/input.tri +++ b/tests/result/input.tri @@ -20,7 +20,6 @@ * If not, see . */ - mod trinitrix { #[derive(Error)] enum GetBError {