Skip to content

Commit

Permalink
Re-bootstrap. Fix apache 2 license.
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoodman committed Sep 24, 2024
1 parent 2b26db2 commit ea759ee
Show file tree
Hide file tree
Showing 883 changed files with 3,651 additions and 909 deletions.
5 changes: 4 additions & 1 deletion BootstrapConfig.h.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#pragma once
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Copyright (c) 2020 Trail of Bits, Inc., all rights reserved.
#
# Copyright (c) 2020, Trail of Bits, Inc.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#

cmake_minimum_required(VERSION 3.21)

Expand Down
5 changes: 4 additions & 1 deletion bin/Blowtorch/blowtorch.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/usr/bin/env python3

#
# Copyright (c) 2023 Trail of Bits, Inc.
# Copyright (c) 2023, Trail of Bits, Inc.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#

from pypasta import *
Expand Down
11 changes: 6 additions & 5 deletions bin/BootstrapBuiltins/GCC.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright (c) 2023-present, Trail of Bits, Inc.
// All rights reserved.
//
// This source code is licensed in accordance with the terms specified in
// the LICENSE file found in the root directory of this source tree.
/*
* Copyright (c) 2023, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

// typedef void v;
// typedef char c;
Expand Down
7 changes: 6 additions & 1 deletion bin/BootstrapBuiltins/bootstrap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Copyright (c) 2023 Trail of Bits, Inc., all rights reserved.
#
# Copyright (c) 2023, Trail of Bits, Inc.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#

from pypasta import *
from argparse import ArgumentParser
Expand Down
7 changes: 6 additions & 1 deletion bin/BootstrapMacros/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Copyright (c) 2020 Trail of Bits, Inc., all rights reserved.
#
# Copyright (c) 2020, Trail of Bits, Inc.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#

add_executable(bootstrap-macros
"MacroGenerator.h"
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapMacros/MacroGenerator.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2020 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include "MacroGenerator.h"
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapMacros/MacroGenerator.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#pragma once
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapMacros/Main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2020 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#ifndef PASTA_IN_BOOTSTRAP
Expand Down
7 changes: 6 additions & 1 deletion bin/BootstrapTypes/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Copyright (c) 2020 Trail of Bits, Inc., all rights reserved.
#
# Copyright (c) 2020, Trail of Bits, Inc.
#
# This source code is licensed in accordance with the terms specified in
# the LICENSE file found in the root directory of this source tree.
#

add_executable(bootstrap-types
"Generated.h"
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapTypes/DeclareCppMethods.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <cctype>
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapTypes/DeclareEnums.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <ostream>
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapTypes/DefineCppMethods.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <ostream>
Expand Down
5 changes: 4 additions & 1 deletion bin/BootstrapTypes/DefineDefaultMacros.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#ifndef PASTA_BEGIN_CLANG_WRAPPER
Expand Down
15 changes: 12 additions & 3 deletions bin/BootstrapTypes/GenerateAttrCpp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -19,7 +22,10 @@ void GenerateAttrCpp(std::ostream &py_cmake, std::ostream &py_ast) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#define PASTA_IN_ATTR_CPP\n"
Expand Down Expand Up @@ -129,7 +135,10 @@ void GenerateAttrCpp(std::ostream &py_cmake, std::ostream &py_ast) {

std::ofstream os_py(std::string(kPythonBindingsPath) + "/" + name + ".cpp");
os_py << R"(/*
* Copyright (c) 2023 Trail of Bits, Inc.
* Copyright (c) 2023, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// This file is auto-generated.
Expand Down
10 changes: 8 additions & 2 deletions bin/BootstrapTypes/GenerateAttrH.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -20,7 +23,10 @@ void GenerateAttrH(void) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#pragma once\n\n"
Expand Down
15 changes: 12 additions & 3 deletions bin/BootstrapTypes/GenerateDeclCpp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -22,7 +25,10 @@ void GenerateDeclCpp(std::ostream &py_cmake, std::ostream &py_ast) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#define PASTA_IN_DECL_CPP\n"
Expand Down Expand Up @@ -209,7 +215,10 @@ void GenerateDeclCpp(std::ostream &py_cmake, std::ostream &py_ast) {

std::ofstream decl_context_os(std::string(kPythonBindingsPath) + "/DeclContext.cpp");
decl_context_os << R"(/*
* Copyright (c) 2023 Trail of Bits, Inc.
* Copyright (c) 2023, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// This file is auto-generated.
Expand Down
10 changes: 8 additions & 2 deletions bin/BootstrapTypes/GenerateDeclH.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -19,7 +22,10 @@ void GenerateDeclH(void) {
const std::string decl_context{"DeclContext"};
os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#pragma once\n\n"
Expand Down
10 changes: 8 additions & 2 deletions bin/BootstrapTypes/GenerateForwardH.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -20,7 +23,10 @@ void GenerateForwardH(std::ostream &os_py) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#pragma once\n\n"
Expand Down
15 changes: 12 additions & 3 deletions bin/BootstrapTypes/GenerateStmtCpp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -19,7 +22,10 @@ void GenerateStmtCpp(std::ostream& py_cmake, std::ostream& py_ast) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#define PASTA_IN_STMT_CPP\n"
Expand Down Expand Up @@ -110,7 +116,10 @@ void GenerateStmtCpp(std::ostream& py_cmake, std::ostream& py_ast) {

std::ofstream os_py(std::string(kPythonBindingsPath) + "/" + name + ".cpp");
os_py << R"(/*
* Copyright (c) 2023 Trail of Bits, Inc.
* Copyright (c) 2023, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// This file is auto-generated.
Expand Down
10 changes: 8 additions & 2 deletions bin/BootstrapTypes/GenerateStmtH.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -18,7 +21,10 @@ void GenerateStmtH(void) {
std::ofstream os(kASTStmtHeader);
os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#pragma once\n\n"
Expand Down
15 changes: 12 additions & 3 deletions bin/BootstrapTypes/GenerateTypeCpp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -19,7 +22,10 @@ void GenerateTypeCpp(std::ostream &py_cmake, std::ostream &py_ast) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#define PASTA_IN_TYPE_CPP\n"
Expand Down Expand Up @@ -113,7 +119,10 @@ void GenerateTypeCpp(std::ostream &py_cmake, std::ostream &py_ast) {

std::ofstream os_py(std::string(kPythonBindingsPath) + "/" + name + ".cpp");
os_py << R"(/*
* Copyright (c) 2023 Trail of Bits, Inc.
* Copyright (c) 2023, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
// This file is auto-generated.
Expand Down
10 changes: 8 additions & 2 deletions bin/BootstrapTypes/GenerateTypeH.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* Copyright (c) 2021 Trail of Bits, Inc.
* Copyright (c) 2021, Trail of Bits, Inc.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/

#include <fstream>
Expand All @@ -19,7 +22,10 @@ void GenerateTypeH(void) {

os
<< "/*\n"
<< " * Copyright (c) 2022 Trail of Bits, Inc.\n"
<< " * Copyright (c) 2022, Trail of Bits, Inc.\n"
<< " *\n"
<< " * This source code is licensed in accordance with the terms specified in\n"
<< " * the LICENSE file found in the root directory of this source tree.\n"
<< " */\n\n"
<< "// This file is auto-generated.\n\n"
<< "#pragma once\n\n"
Expand Down
Loading

0 comments on commit ea759ee

Please sign in to comment.