Skip to content

Commit

Permalink
Add copyright and license line to each file. (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimspr authored Aug 3, 2023
1 parent 4fd8899 commit 1e1d4d2
Show file tree
Hide file tree
Showing 56 changed files with 151 additions and 41 deletions.
5 changes: 2 additions & 3 deletions include/ifc/abstract-sgraph.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_ABSTRACT_SGRAPH
#define IFC_ABSTRACT_SGRAPH
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/assertions.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_ASSERTIONS_HXX_INCLUDED
#define IFC_ASSERTIONS_HXX_INCLUDED
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/basic-types.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_BASIC_TYPES
#define IFC_BASIC_TYPES
Expand Down
3 changes: 3 additions & 0 deletions include/ifc/dom/node.hxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

// We load the ifc into in memory "dom" format to allow simpler processing
// for text printing, graphing in a dot format, etc.
//
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/file.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_FILE_INCLUDED
#define IFC_FILE_INCLUDED
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/index-utils.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_INDEX_UTILS_INCLUDED
#define IFC_INDEX_UTILS_INCLUDED
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/operators.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_OPERATORS
#define IFC_OPERATORS
Expand Down
6 changes: 2 additions & 4 deletions include/ifc/pathname.hxx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//
// Microsoft (R) C/C++ Optimizing Compiler Front-End
// Copyright (C) Microsoft. All rights reserved.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_PATHNAME_INCLUDED
#define IFC_PATHNAME_INCLUDED
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/pp-forms.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_PP_FORMS_INCLUDED
#define IFC_PP_FORMS_INCLUDED
Expand Down
3 changes: 2 additions & 1 deletion include/ifc/reader.hxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright Microsoft.
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_READER_LIB_H
#define IFC_READER_LIB_H
Expand Down
5 changes: 2 additions & 3 deletions include/ifc/source-word.hxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_SOURCE_WORD
#define IFC_SOURCE_WORD
Expand Down
3 changes: 2 additions & 1 deletion include/ifc/underlying.hxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright Microsoft.
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_UNDERLYING_H
#define IFC_UNDERLYING_H
Expand Down
3 changes: 2 additions & 1 deletion include/ifc/util.hxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright Microsoft.
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_UTILS_H
#define IFC_UTILS_H
Expand Down
3 changes: 2 additions & 1 deletion include/ifc/version.hxx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright Microsoft.
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_VERSION_INCLUDED
#define IFC_VERSION_INCLUDED
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/globals.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

const file_selector = document.getElementById('file-selector');
const title = document.getElementById('title');
const output = document.getElementById('output');
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/loader.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

function log_header(header) {
if (!header.valid())
console.log("not valid header!");
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/charts.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class ChartNone {
static partition_name = "chart.none";
}
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/decls.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class EnumeratorDecl {
static partition_name = "decl.enumerator";

Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/exprs.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class EmptyExpr {
static partition_name = "expr.empty";

Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/io.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class RawByteReader {
constructor(bytes) {
this.bytes = bytes;
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/literals.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class ImmediateLiteral {
// No partition

Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/operators.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class NiladicOperator {
static Values = {
Unknown: 0, // also serves as a placeholder for undefined
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/resolve.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class Resolver {
constructor(reader, toc, string_table) {
this.reader = reader;
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/sgraph.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

// Based on IFC specification 0.43.
function implemented_ifc_version() {
return new Version(0, 43);
Expand Down
2 changes: 2 additions & 0 deletions samples/sgraph-js/sgraph/types.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class FundamentalType {
static partition_name = "type.fundamental";
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/sgraph/util.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

function has_property(obj, prop) {
return obj.hasOwnProperty(prop);
}
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/ui/filter.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

const PropertyFilters = {
None: 0,
Exported: 1 << 0, // Filter out exported declarations.
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/ui/graph.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

// D3 + HTML canvas: https://www.freecodecamp.org/news/d3-and-canvas-in-3-steps-8505c8b27444

function transposed() {
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/ui/ifc-explorer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

function ifc_explorer_clear_content(content) {
remove_all_children(content);
}
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/ui/options.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

class Options {
constructor() {
this._populate_default_decl_colors();
Expand Down
3 changes: 3 additions & 0 deletions samples/sgraph-js/ui/sidebar.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

function decl_preview_active() {
return $('#sidebar').hasClass('active');
}
Expand Down
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

add_subdirectory(ifc-reader)
add_subdirectory(ifc-dom)
add_subdirectory(ifc-printer)
5 changes: 2 additions & 3 deletions src/assert.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright (C) Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <stdio.h>
#include <stdlib.h>
Expand Down
5 changes: 2 additions & 3 deletions src/file.cxx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
//
// Copyright Microsoft.
//
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include <ifc/file.hxx>

Expand Down
3 changes: 3 additions & 0 deletions src/hash_win.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

// Windows Implementation of SHA256

#include <windows.h>
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# IFC DOM Library

add_library(ifc-dom STATIC
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/charts.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"

namespace ifc::util {
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/common.hxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_UTIL_DOM_COMMON_H
#define IFC_UTIL_DOM_COMMON_H

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/decls.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"
#include "ifc/util.hxx"

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/exprs.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"
#include "ifc/util.hxx"

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/literals.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"
#include "ifc/util.hxx"

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/names.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"

namespace ifc::util {
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/sentences.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"

namespace ifc::util {
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/stmts.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"
#include "ifc/util.hxx"

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/syntax.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"

namespace ifc::util {
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-dom/types.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "common.hxx"

namespace ifc::util {
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-printer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

add_executable(ifc-printer
main.cxx
printer.cxx
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-printer/main.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "ifc/reader.hxx"
#include "ifc/dom/node.hxx"
#include "printer.hxx"
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-printer/printer.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "printer.hxx"
#include <iostream>

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-printer/printer.hxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#ifndef IFC_TOOLS_PRINTER_HXX
#define IFC_TOOLS_PRINTER_HXX

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-reader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright Microsoft Corporation.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

# IFC Reader Library

if(UNIX)
Expand Down
3 changes: 3 additions & 0 deletions src/ifc-reader/operators.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "ifc/util.hxx"
#include <map>

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-reader/reader.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "ifc/reader.hxx"
#include <stdexcept>

Expand Down
3 changes: 3 additions & 0 deletions src/ifc-reader/util.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception

#include "ifc/util.hxx"

namespace ifc::util {
Expand Down
Loading

0 comments on commit 1e1d4d2

Please sign in to comment.