From 18cee3e8e61ebb83c4b7e9a39909e7c272641358 Mon Sep 17 00:00:00 2001 From: Tim Keith Date: Tue, 1 May 2018 12:50:34 -0700 Subject: [PATCH] [flang] Add copyright notices. For source files (C++, Fortran, CMake) add copyright and license. For documentation files add just copyright. Original-commit: flang-compiler/f18@38381aed839ef091a44ea8f2ef7bc5346d776c67 Reviewed-on: https://github.com/flang-compiler/f18/pull/74 --- flang/CMakeLists.txt | 14 ++++++++++++++ flang/README.md | 4 ++++ flang/documentation/C++style.md | 4 ++++ flang/documentation/ParserCombinators.md | 4 ++++ flang/documentation/directives.md | 4 ++++ flang/documentation/extensions.md | 4 ++++ flang/documentation/f2018-grammar.txt | 2 ++ flang/documentation/parsing.md | 4 ++++ flang/documentation/preprocessing.md | 4 ++++ flang/documentation/semantics.md | 4 ++++ flang/include/flang/CMakeLists.txt | 14 ++++++++++++++ flang/lib/CMakeLists.txt | 14 ++++++++++++++ flang/lib/parser/CMakeLists.txt | 14 ++++++++++++++ flang/lib/parser/basic-parsers.h | 14 ++++++++++++++ flang/lib/parser/char-block.h | 14 ++++++++++++++ flang/lib/parser/char-buffer.cc | 14 ++++++++++++++ flang/lib/parser/char-buffer.h | 14 ++++++++++++++ flang/lib/parser/char-set.cc | 14 ++++++++++++++ flang/lib/parser/char-set.h | 14 ++++++++++++++ flang/lib/parser/characters.cc | 14 ++++++++++++++ flang/lib/parser/characters.h | 14 ++++++++++++++ flang/lib/parser/debug-parser.cc | 14 ++++++++++++++ flang/lib/parser/debug-parser.h | 14 ++++++++++++++ flang/lib/parser/format-specification.h | 14 ++++++++++++++ flang/lib/parser/grammar.h | 14 ++++++++++++++ flang/lib/parser/idioms.cc | 14 ++++++++++++++ flang/lib/parser/idioms.h | 14 ++++++++++++++ flang/lib/parser/indirection.h | 14 ++++++++++++++ flang/lib/parser/instrumented-parser.cc | 14 ++++++++++++++ flang/lib/parser/instrumented-parser.h | 14 ++++++++++++++ flang/lib/parser/interval.h | 14 ++++++++++++++ flang/lib/parser/message.cc | 14 ++++++++++++++ flang/lib/parser/message.h | 14 ++++++++++++++ flang/lib/parser/parse-state.h | 14 ++++++++++++++ flang/lib/parser/parse-tree-visitor.h | 14 ++++++++++++++ flang/lib/parser/parse-tree.cc | 14 ++++++++++++++ flang/lib/parser/parse-tree.h | 14 ++++++++++++++ flang/lib/parser/parsing.cc | 14 ++++++++++++++ flang/lib/parser/parsing.h | 14 ++++++++++++++ flang/lib/parser/preprocessor.cc | 14 ++++++++++++++ flang/lib/parser/preprocessor.h | 14 ++++++++++++++ flang/lib/parser/prescan.cc | 14 ++++++++++++++ flang/lib/parser/prescan.h | 14 ++++++++++++++ flang/lib/parser/provenance.cc | 14 ++++++++++++++ flang/lib/parser/provenance.h | 14 ++++++++++++++ flang/lib/parser/reference-counted.h | 14 ++++++++++++++ flang/lib/parser/source.cc | 14 ++++++++++++++ flang/lib/parser/source.h | 14 ++++++++++++++ flang/lib/parser/stmt-parser.h | 14 ++++++++++++++ flang/lib/parser/token-parsers.h | 14 ++++++++++++++ flang/lib/parser/token-sequence.cc | 14 ++++++++++++++ flang/lib/parser/token-sequence.h | 14 ++++++++++++++ flang/lib/parser/type-parsers.h | 14 ++++++++++++++ flang/lib/parser/unparse.cc | 14 ++++++++++++++ flang/lib/parser/unparse.h | 14 ++++++++++++++ flang/lib/parser/user-state.cc | 14 ++++++++++++++ flang/lib/parser/user-state.h | 14 ++++++++++++++ flang/lib/semantics/CMakeLists.txt | 14 ++++++++++++++ flang/lib/semantics/GetValue.h | 14 ++++++++++++++ flang/lib/semantics/LabelTable.h | 14 ++++++++++++++ flang/lib/semantics/ParseTreeDump.cc | 14 ++++++++++++++ flang/lib/semantics/ParseTreeDump.h | 14 ++++++++++++++ flang/lib/semantics/SemanticData.h | 14 ++++++++++++++ flang/lib/semantics/StatementMap.cc | 14 ++++++++++++++ flang/lib/semantics/StatementMap.h | 14 ++++++++++++++ flang/lib/semantics/Stmt.h | 14 ++++++++++++++ flang/lib/semantics/attr.cc | 14 ++++++++++++++ flang/lib/semantics/attr.h | 14 ++++++++++++++ flang/lib/semantics/enum-set.h | 14 ++++++++++++++ flang/lib/semantics/make-types.cc | 14 ++++++++++++++ flang/lib/semantics/make-types.h | 14 ++++++++++++++ flang/lib/semantics/pass1.cc | 14 ++++++++++++++ flang/lib/semantics/resolve-names.cc | 14 ++++++++++++++ flang/lib/semantics/resolve-names.h | 14 ++++++++++++++ flang/lib/semantics/rewrite-parse-tree.cc | 14 ++++++++++++++ flang/lib/semantics/rewrite-parse-tree.h | 14 ++++++++++++++ flang/lib/semantics/scope.cc | 14 ++++++++++++++ flang/lib/semantics/scope.h | 14 ++++++++++++++ flang/lib/semantics/symbol.cc | 14 ++++++++++++++ flang/lib/semantics/symbol.h | 14 ++++++++++++++ flang/lib/semantics/type.cc | 14 ++++++++++++++ flang/lib/semantics/type.h | 14 ++++++++++++++ flang/test/semantics/implicit01.f90 | 14 ++++++++++++++ flang/test/semantics/implicit02.f90 | 14 ++++++++++++++ flang/test/semantics/implicit03.f90 | 14 ++++++++++++++ flang/test/semantics/implicit04.f90 | 14 ++++++++++++++ flang/test/semantics/implicit05.f90 | 14 ++++++++++++++ flang/test/semantics/implicit06.f90 | 14 ++++++++++++++ flang/test/semantics/implicit07.f90 | 14 ++++++++++++++ flang/test/semantics/resolve01.f90 | 14 ++++++++++++++ flang/test/semantics/resolve02.f90 | 14 ++++++++++++++ flang/test/semantics/resolve03.f90 | 14 ++++++++++++++ flang/test/semantics/resolve04.f90 | 14 ++++++++++++++ flang/test/semantics/resolve05.f90 | 14 ++++++++++++++ flang/test/semantics/resolve06.f90 | 14 ++++++++++++++ flang/test/semantics/resolve07.f90 | 14 ++++++++++++++ flang/test/semantics/resolve08.f90 | 14 ++++++++++++++ flang/test/semantics/resolve09.f90 | 14 ++++++++++++++ flang/test/semantics/resolve10.f90 | 14 ++++++++++++++ flang/test/semantics/resolve11.f90 | 14 ++++++++++++++ flang/tools/CMakeLists.txt | 14 ++++++++++++++ flang/tools/f18/CMakeLists.txt | 14 ++++++++++++++ flang/tools/f18/f18.cc | 14 ++++++++++++++ flang/tools/f18/test-sema.cc | 14 ++++++++++++++ 104 files changed, 1364 insertions(+) mode change 100755 => 100644 flang/documentation/C++style.md diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt index 562aa43..ce9e43c 100644 --- a/flang/CMakeLists.txt +++ b/flang/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + cmake_minimum_required(VERSION 3.9.0) # Pass -DGCC=... to cmake to use a specific gcc installation. diff --git a/flang/README.md b/flang/README.md index 0f9f32b..2fa16e3 100644 --- a/flang/README.md +++ b/flang/README.md @@ -1 +1,5 @@ + + # f18 diff --git a/flang/documentation/C++style.md b/flang/documentation/C++style.md old mode 100755 new mode 100644 index ab96709..34bc454 --- a/flang/documentation/C++style.md +++ b/flang/documentation/C++style.md @@ -1,3 +1,7 @@ + + ## In brief: * Use *clang-format* to resolve all layout questions. * Where LLVM's C++ style guide is clear on usage, follow it. diff --git a/flang/documentation/ParserCombinators.md b/flang/documentation/ParserCombinators.md index 21629ed..eb5bd97 100644 --- a/flang/documentation/ParserCombinators.md +++ b/flang/documentation/ParserCombinators.md @@ -1,3 +1,7 @@ + + ## Concept The Fortran language recognizer here can be classified as an LL recursive descent parser. It is composed from a *parser combinator* library that diff --git a/flang/documentation/directives.md b/flang/documentation/directives.md index 554dc46..878e48c 100644 --- a/flang/documentation/directives.md +++ b/flang/documentation/directives.md @@ -1,3 +1,7 @@ + + Compiler directives supported by F18 ==================================== diff --git a/flang/documentation/extensions.md b/flang/documentation/extensions.md index e4862b6..62e0b08 100644 --- a/flang/documentation/extensions.md +++ b/flang/documentation/extensions.md @@ -1,3 +1,7 @@ + + Extensions, deletions, and legacy features supported ==================================================== diff --git a/flang/documentation/f2018-grammar.txt b/flang/documentation/f2018-grammar.txt index 1ca684a..af7ccf3 100644 --- a/flang/documentation/f2018-grammar.txt +++ b/flang/documentation/f2018-grammar.txt @@ -1,3 +1,5 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. + R0001 digit -> 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 R0002 letter -> A | B | C | D | E | F | G | H | I | J | K | L | M | diff --git a/flang/documentation/parsing.md b/flang/documentation/parsing.md index f4757e9..75594e6 100644 --- a/flang/documentation/parsing.md +++ b/flang/documentation/parsing.md @@ -1,3 +1,7 @@ + + The F18 Parser ============== This program source code implements a parser for the Fortran programming diff --git a/flang/documentation/preprocessing.md b/flang/documentation/preprocessing.md index a3cc470..613ef59 100644 --- a/flang/documentation/preprocessing.md +++ b/flang/documentation/preprocessing.md @@ -1,3 +1,7 @@ + + Fortran Preprocessing ===================== diff --git a/flang/documentation/semantics.md b/flang/documentation/semantics.md index 554ab0a..45404a8 100644 --- a/flang/documentation/semantics.md +++ b/flang/documentation/semantics.md @@ -1,3 +1,7 @@ + + The semantic pass will determine whether the input program is a legal Fortran program. diff --git a/flang/include/flang/CMakeLists.txt b/flang/include/flang/CMakeLists.txt index e69de29..ecde2a6 100644 --- a/flang/include/flang/CMakeLists.txt +++ b/flang/include/flang/CMakeLists.txt @@ -0,0 +1,14 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + diff --git a/flang/lib/CMakeLists.txt b/flang/lib/CMakeLists.txt index b856b35..647d4b7 100644 --- a/flang/lib/CMakeLists.txt +++ b/flang/lib/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + add_subdirectory(parser) add_subdirectory(semantics) diff --git a/flang/lib/parser/CMakeLists.txt b/flang/lib/parser/CMakeLists.txt index f1ad22e..257ed21 100644 --- a/flang/lib/parser/CMakeLists.txt +++ b/flang/lib/parser/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + add_library(FortranParser char-buffer.cc char-set.cc diff --git a/flang/lib/parser/basic-parsers.h b/flang/lib/parser/basic-parsers.h index 7af7f2a..bfd9d08 100644 --- a/flang/lib/parser/basic-parsers.h +++ b/flang/lib/parser/basic-parsers.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_BASIC_PARSERS_H_ #define FORTRAN_PARSER_BASIC_PARSERS_H_ diff --git a/flang/lib/parser/char-block.h b/flang/lib/parser/char-block.h index 4ceaf37..ab2856c 100644 --- a/flang/lib/parser/char-block.h +++ b/flang/lib/parser/char-block.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_CHAR_BLOCK_H_ #define FORTRAN_PARSER_CHAR_BLOCK_H_ diff --git a/flang/lib/parser/char-buffer.cc b/flang/lib/parser/char-buffer.cc index 2a3c017..bf70e55 100644 --- a/flang/lib/parser/char-buffer.cc +++ b/flang/lib/parser/char-buffer.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "char-buffer.h" #include "idioms.h" #include diff --git a/flang/lib/parser/char-buffer.h b/flang/lib/parser/char-buffer.h index a9196e1..22f7805 100644 --- a/flang/lib/parser/char-buffer.h +++ b/flang/lib/parser/char-buffer.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_CHAR_BUFFER_H_ #define FORTRAN_PARSER_CHAR_BUFFER_H_ diff --git a/flang/lib/parser/char-set.cc b/flang/lib/parser/char-set.cc index a389c7c..eac1cdf 100644 --- a/flang/lib/parser/char-set.cc +++ b/flang/lib/parser/char-set.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "char-set.h" namespace Fortran { diff --git a/flang/lib/parser/char-set.h b/flang/lib/parser/char-set.h index 9310cbb..9276e3a 100644 --- a/flang/lib/parser/char-set.h +++ b/flang/lib/parser/char-set.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_CHAR_SET_H_ #define FORTRAN_PARSER_CHAR_SET_H_ diff --git a/flang/lib/parser/characters.cc b/flang/lib/parser/characters.cc index 7953fb9..bf00bac 100644 --- a/flang/lib/parser/characters.cc +++ b/flang/lib/parser/characters.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "characters.h" #include #include diff --git a/flang/lib/parser/characters.h b/flang/lib/parser/characters.h index 55114163..2373a0b 100644 --- a/flang/lib/parser/characters.h +++ b/flang/lib/parser/characters.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_CHARACTERS_H_ #define FORTRAN_PARSER_CHARACTERS_H_ diff --git a/flang/lib/parser/debug-parser.cc b/flang/lib/parser/debug-parser.cc index 29cd4e6..8542b92e1 100644 --- a/flang/lib/parser/debug-parser.cc +++ b/flang/lib/parser/debug-parser.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "debug-parser.h" #include "user-state.h" #include diff --git a/flang/lib/parser/debug-parser.h b/flang/lib/parser/debug-parser.h index 4fec230..2ff71ad 100644 --- a/flang/lib/parser/debug-parser.h +++ b/flang/lib/parser/debug-parser.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_DEBUG_PARSER_H_ #define FORTRAN_PARSER_DEBUG_PARSER_H_ diff --git a/flang/lib/parser/format-specification.h b/flang/lib/parser/format-specification.h index 3d76cf0..24d8558 100644 --- a/flang/lib/parser/format-specification.h +++ b/flang/lib/parser/format-specification.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_FORMAT_SPECIFICATION_H_ #define FORTRAN_FORMAT_SPECIFICATION_H_ diff --git a/flang/lib/parser/grammar.h b/flang/lib/parser/grammar.h index 6a23530..cee21f0 100644 --- a/flang/lib/parser/grammar.h +++ b/flang/lib/parser/grammar.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_GRAMMAR_H_ #define FORTRAN_PARSER_GRAMMAR_H_ diff --git a/flang/lib/parser/idioms.cc b/flang/lib/parser/idioms.cc index af23879..2b061b7 100644 --- a/flang/lib/parser/idioms.cc +++ b/flang/lib/parser/idioms.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "idioms.h" #include #include diff --git a/flang/lib/parser/idioms.h b/flang/lib/parser/idioms.h index 6654034..e3121cd 100644 --- a/flang/lib/parser/idioms.h +++ b/flang/lib/parser/idioms.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_IDIOMS_H_ #define FORTRAN_PARSER_IDIOMS_H_ diff --git a/flang/lib/parser/indirection.h b/flang/lib/parser/indirection.h index 1edf16e..167087a 100644 --- a/flang/lib/parser/indirection.h +++ b/flang/lib/parser/indirection.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_INDIRECTION_H_ #define FORTRAN_PARSER_INDIRECTION_H_ diff --git a/flang/lib/parser/instrumented-parser.cc b/flang/lib/parser/instrumented-parser.cc index ffc358a..6525a14 100644 --- a/flang/lib/parser/instrumented-parser.cc +++ b/flang/lib/parser/instrumented-parser.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "instrumented-parser.h" #include "message.h" #include "provenance.h" diff --git a/flang/lib/parser/instrumented-parser.h b/flang/lib/parser/instrumented-parser.h index 48df45d..31d832c 100644 --- a/flang/lib/parser/instrumented-parser.h +++ b/flang/lib/parser/instrumented-parser.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_INSTRUMENTED_PARSER_H_ #define FORTRAN_PARSER_INSTRUMENTED_PARSER_H_ diff --git a/flang/lib/parser/interval.h b/flang/lib/parser/interval.h index 8d1e5b4..dd6bf22 100644 --- a/flang/lib/parser/interval.h +++ b/flang/lib/parser/interval.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_INTERVAL_H_ #define FORTRAN_PARSER_INTERVAL_H_ diff --git a/flang/lib/parser/message.cc b/flang/lib/parser/message.cc index 640ab61..eadb093 100644 --- a/flang/lib/parser/message.cc +++ b/flang/lib/parser/message.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "message.h" #include "char-set.h" #include diff --git a/flang/lib/parser/message.h b/flang/lib/parser/message.h index 975b7d4..2fa9d01 100644 --- a/flang/lib/parser/message.h +++ b/flang/lib/parser/message.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_MESSAGE_H_ #define FORTRAN_PARSER_MESSAGE_H_ diff --git a/flang/lib/parser/parse-state.h b/flang/lib/parser/parse-state.h index 8e3017f..34f6b86 100644 --- a/flang/lib/parser/parse-state.h +++ b/flang/lib/parser/parse-state.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PARSE_STATE_H_ #define FORTRAN_PARSER_PARSE_STATE_H_ diff --git a/flang/lib/parser/parse-tree-visitor.h b/flang/lib/parser/parse-tree-visitor.h index cd3bc19..61758b9 100644 --- a/flang/lib/parser/parse-tree-visitor.h +++ b/flang/lib/parser/parse-tree-visitor.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PARSE_TREE_VISITOR_H_ #define FORTRAN_PARSER_PARSE_TREE_VISITOR_H_ diff --git a/flang/lib/parser/parse-tree.cc b/flang/lib/parser/parse-tree.cc index c6e457f..96d0d2a 100644 --- a/flang/lib/parser/parse-tree.cc +++ b/flang/lib/parser/parse-tree.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "parse-tree.h" #include "idioms.h" #include "indirection.h" diff --git a/flang/lib/parser/parse-tree.h b/flang/lib/parser/parse-tree.h index 21ae7ce..4486a39 100644 --- a/flang/lib/parser/parse-tree.h +++ b/flang/lib/parser/parse-tree.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PARSE_TREE_H_ #define FORTRAN_PARSER_PARSE_TREE_H_ diff --git a/flang/lib/parser/parsing.cc b/flang/lib/parser/parsing.cc index b8176fb..dfa231b 100644 --- a/flang/lib/parser/parsing.cc +++ b/flang/lib/parser/parsing.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "parsing.h" #include "grammar.h" #include "instrumented-parser.h" diff --git a/flang/lib/parser/parsing.h b/flang/lib/parser/parsing.h index 3f6d3c9..b73a76b 100644 --- a/flang/lib/parser/parsing.h +++ b/flang/lib/parser/parsing.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PARSING_H_ #define FORTRAN_PARSER_PARSING_H_ diff --git a/flang/lib/parser/preprocessor.cc b/flang/lib/parser/preprocessor.cc index 7eaebfc..71a6788 100644 --- a/flang/lib/parser/preprocessor.cc +++ b/flang/lib/parser/preprocessor.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "preprocessor.h" #include "characters.h" #include "idioms.h" diff --git a/flang/lib/parser/preprocessor.h b/flang/lib/parser/preprocessor.h index b8a1680..fd8b23a 100644 --- a/flang/lib/parser/preprocessor.h +++ b/flang/lib/parser/preprocessor.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PREPROCESSOR_H_ #define FORTRAN_PARSER_PREPROCESSOR_H_ diff --git a/flang/lib/parser/prescan.cc b/flang/lib/parser/prescan.cc index 1185895..4c24f75 100644 --- a/flang/lib/parser/prescan.cc +++ b/flang/lib/parser/prescan.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "prescan.h" #include "characters.h" #include "idioms.h" diff --git a/flang/lib/parser/prescan.h b/flang/lib/parser/prescan.h index 91682ab..1f1561e 100644 --- a/flang/lib/parser/prescan.h +++ b/flang/lib/parser/prescan.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PRESCAN_H_ #define FORTRAN_PARSER_PRESCAN_H_ diff --git a/flang/lib/parser/provenance.cc b/flang/lib/parser/provenance.cc index 4e398ef..ee7c6fa 100644 --- a/flang/lib/parser/provenance.cc +++ b/flang/lib/parser/provenance.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "provenance.h" #include "idioms.h" #include diff --git a/flang/lib/parser/provenance.h b/flang/lib/parser/provenance.h index 83f2f86..32f9e65 100644 --- a/flang/lib/parser/provenance.h +++ b/flang/lib/parser/provenance.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_PROVENANCE_H_ #define FORTRAN_PARSER_PROVENANCE_H_ diff --git a/flang/lib/parser/reference-counted.h b/flang/lib/parser/reference-counted.h index d7aaba2..448a6d2 100644 --- a/flang/lib/parser/reference-counted.h +++ b/flang/lib/parser/reference-counted.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_REFERENCE_COUNTED_H_ #define FORTRAN_PARSER_REFERENCE_COUNTED_H_ diff --git a/flang/lib/parser/source.cc b/flang/lib/parser/source.cc index 4fab3c0..2763e5b 100644 --- a/flang/lib/parser/source.cc +++ b/flang/lib/parser/source.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "source.h" #include "char-buffer.h" #include "idioms.h" diff --git a/flang/lib/parser/source.h b/flang/lib/parser/source.h index b919388..b5b7447 100644 --- a/flang/lib/parser/source.h +++ b/flang/lib/parser/source.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_SOURCE_H_ #define FORTRAN_PARSER_SOURCE_H_ diff --git a/flang/lib/parser/stmt-parser.h b/flang/lib/parser/stmt-parser.h index 3321436..4eccf68 100644 --- a/flang/lib/parser/stmt-parser.h +++ b/flang/lib/parser/stmt-parser.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_STMT_PARSER_H_ #define FORTRAN_PARSER_STMT_PARSER_H_ diff --git a/flang/lib/parser/token-parsers.h b/flang/lib/parser/token-parsers.h index 6c23adc..f61975d 100644 --- a/flang/lib/parser/token-parsers.h +++ b/flang/lib/parser/token-parsers.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_TOKEN_PARSERS_H_ #define FORTRAN_PARSER_TOKEN_PARSERS_H_ diff --git a/flang/lib/parser/token-sequence.cc b/flang/lib/parser/token-sequence.cc index ae66166..c9c327e 100644 --- a/flang/lib/parser/token-sequence.cc +++ b/flang/lib/parser/token-sequence.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "token-sequence.h" #include "characters.h" diff --git a/flang/lib/parser/token-sequence.h b/flang/lib/parser/token-sequence.h index d336b38..2428021 100644 --- a/flang/lib/parser/token-sequence.h +++ b/flang/lib/parser/token-sequence.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_TOKEN_SEQUENCE_H_ #define FORTRAN_PARSER_TOKEN_SEQUENCE_H_ diff --git a/flang/lib/parser/type-parsers.h b/flang/lib/parser/type-parsers.h index d9ec348..7f3b966 100644 --- a/flang/lib/parser/type-parsers.h +++ b/flang/lib/parser/type-parsers.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_TYPE_PARSERS_H_ #define FORTRAN_PARSER_TYPE_PARSERS_H_ diff --git a/flang/lib/parser/unparse.cc b/flang/lib/parser/unparse.cc index 76425e1..fbd807f 100644 --- a/flang/lib/parser/unparse.cc +++ b/flang/lib/parser/unparse.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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. + // Generates Fortran from the content of a parse tree, using the // traversal templates in parse-tree-visitor.h. diff --git a/flang/lib/parser/unparse.h b/flang/lib/parser/unparse.h index 00748b5..b1ce1bf 100644 --- a/flang/lib/parser/unparse.h +++ b/flang/lib/parser/unparse.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_UNPARSE_H_ #define FORTRAN_PARSER_UNPARSE_H_ diff --git a/flang/lib/parser/user-state.cc b/flang/lib/parser/user-state.cc index 332583a..298572b 100644 --- a/flang/lib/parser/user-state.cc +++ b/flang/lib/parser/user-state.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "user-state.h" #include "basic-parsers.h" #include "grammar.h" diff --git a/flang/lib/parser/user-state.h b/flang/lib/parser/user-state.h index e2249cf..4a4bf6d 100644 --- a/flang/lib/parser/user-state.h +++ b/flang/lib/parser/user-state.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_PARSER_USER_STATE_H_ #define FORTRAN_PARSER_USER_STATE_H_ diff --git a/flang/lib/semantics/CMakeLists.txt b/flang/lib/semantics/CMakeLists.txt index a9eca8d..a244c28 100644 --- a/flang/lib/semantics/CMakeLists.txt +++ b/flang/lib/semantics/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + add_library(FlangSemantics attr.cc diff --git a/flang/lib/semantics/GetValue.h b/flang/lib/semantics/GetValue.h index a14ff24..d382bb9 100644 --- a/flang/lib/semantics/GetValue.h +++ b/flang/lib/semantics/GetValue.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FLANG_SUPPORT_GET_VALUE_H #undef IGNORE_optional diff --git a/flang/lib/semantics/LabelTable.h b/flang/lib/semantics/LabelTable.h index f27d2fd..0f34d03 100644 --- a/flang/lib/semantics/LabelTable.h +++ b/flang/lib/semantics/LabelTable.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_LABEL_TABLE_H_ #define FORTRAN_LABEL_TABLE_H_ diff --git a/flang/lib/semantics/ParseTreeDump.cc b/flang/lib/semantics/ParseTreeDump.cc index e7f837d..c258743 100644 --- a/flang/lib/semantics/ParseTreeDump.cc +++ b/flang/lib/semantics/ParseTreeDump.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "ParseTreeDump.h" #include diff --git a/flang/lib/semantics/ParseTreeDump.h b/flang/lib/semantics/ParseTreeDump.h index 801c200..14470d7 100644 --- a/flang/lib/semantics/ParseTreeDump.h +++ b/flang/lib/semantics/ParseTreeDump.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FLANG_SEMA_PARSE_TREE_DUMP_H #define FLANG_SEMA_PARSE_TREE_DUMP_H diff --git a/flang/lib/semantics/SemanticData.h b/flang/lib/semantics/SemanticData.h index 6da9339..2a3053d 100644 --- a/flang/lib/semantics/SemanticData.h +++ b/flang/lib/semantics/SemanticData.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_SEMA_DATA_H_ #define FORTRAN_SEMA_DATA_H_ diff --git a/flang/lib/semantics/StatementMap.cc b/flang/lib/semantics/StatementMap.cc index df8f758..07b77dc 100644 --- a/flang/lib/semantics/StatementMap.cc +++ b/flang/lib/semantics/StatementMap.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "StatementMap.h" diff --git a/flang/lib/semantics/StatementMap.h b/flang/lib/semantics/StatementMap.h index a323854..5b080b5 100644 --- a/flang/lib/semantics/StatementMap.h +++ b/flang/lib/semantics/StatementMap.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FLANG_SEMA_STATEMENT_MAP_H #define FLANG_SEMA_STATEMENT_MAP_H diff --git a/flang/lib/semantics/Stmt.h b/flang/lib/semantics/Stmt.h index 83ed788..926a998 100644 --- a/flang/lib/semantics/Stmt.h +++ b/flang/lib/semantics/Stmt.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FLANG_SEMA_STMT_H_ #define FLANG_SEMA_STMT_H_ diff --git a/flang/lib/semantics/attr.cc b/flang/lib/semantics/attr.cc index a3babe8..020b763 100644 --- a/flang/lib/semantics/attr.cc +++ b/flang/lib/semantics/attr.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "attr.h" #include "../parser/idioms.h" #include diff --git a/flang/lib/semantics/attr.h b/flang/lib/semantics/attr.h index 456dec1..d5b5d1b 100644 --- a/flang/lib/semantics/attr.h +++ b/flang/lib/semantics/attr.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_ATTR_H_ #define FORTRAN_ATTR_H_ diff --git a/flang/lib/semantics/enum-set.h b/flang/lib/semantics/enum-set.h index d222595..32d4cc2 100644 --- a/flang/lib/semantics/enum-set.h +++ b/flang/lib/semantics/enum-set.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_SEMANTICS_ENUM_SET_H_ #define FORTRAN_SEMANTICS_ENUM_SET_H_ diff --git a/flang/lib/semantics/make-types.cc b/flang/lib/semantics/make-types.cc index bad7295..4903d33 100644 --- a/flang/lib/semantics/make-types.cc +++ b/flang/lib/semantics/make-types.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "make-types.h" #include "attr.h" #include "type.h" diff --git a/flang/lib/semantics/make-types.h b/flang/lib/semantics/make-types.h index f70a5c6..f02467e 100644 --- a/flang/lib/semantics/make-types.h +++ b/flang/lib/semantics/make-types.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 namespace Fortran::parser { diff --git a/flang/lib/semantics/pass1.cc b/flang/lib/semantics/pass1.cc index 189372e..26ff894 100644 --- a/flang/lib/semantics/pass1.cc +++ b/flang/lib/semantics/pass1.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "../../lib/parser/format-specification.h" #include "../../lib/parser/idioms.h" diff --git a/flang/lib/semantics/resolve-names.cc b/flang/lib/semantics/resolve-names.cc index a31a094..59b4758 100644 --- a/flang/lib/semantics/resolve-names.cc +++ b/flang/lib/semantics/resolve-names.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "resolve-names.h" #include "rewrite-parse-tree.h" #include "attr.h" diff --git a/flang/lib/semantics/resolve-names.h b/flang/lib/semantics/resolve-names.h index d132ad0..653b0b2 100644 --- a/flang/lib/semantics/resolve-names.h +++ b/flang/lib/semantics/resolve-names.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 namespace Fortran::parser { diff --git a/flang/lib/semantics/rewrite-parse-tree.cc b/flang/lib/semantics/rewrite-parse-tree.cc index 7d80fd2..273cf27 100644 --- a/flang/lib/semantics/rewrite-parse-tree.cc +++ b/flang/lib/semantics/rewrite-parse-tree.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "rewrite-parse-tree.h" #include "scope.h" #include "symbol.h" diff --git a/flang/lib/semantics/rewrite-parse-tree.h b/flang/lib/semantics/rewrite-parse-tree.h index 33a82a9..52cf996 100644 --- a/flang/lib/semantics/rewrite-parse-tree.h +++ b/flang/lib/semantics/rewrite-parse-tree.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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. + namespace Fortran::parser { struct Program; } // namespace Fortran::parser diff --git a/flang/lib/semantics/scope.cc b/flang/lib/semantics/scope.cc index 3c01654..385e16b 100644 --- a/flang/lib/semantics/scope.cc +++ b/flang/lib/semantics/scope.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "scope.h" #include "symbol.h" #include diff --git a/flang/lib/semantics/scope.h b/flang/lib/semantics/scope.h index d63fd5b..c1ebe31 100644 --- a/flang/lib/semantics/scope.h +++ b/flang/lib/semantics/scope.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_SEMANTICS_SCOPE_H_ #define FORTRAN_SEMANTICS_SCOPE_H_ diff --git a/flang/lib/semantics/symbol.cc b/flang/lib/semantics/symbol.cc index a28cd10..b181a9e 100644 --- a/flang/lib/semantics/symbol.cc +++ b/flang/lib/semantics/symbol.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "symbol.h" #include "scope.h" #include "../parser/idioms.h" diff --git a/flang/lib/semantics/symbol.h b/flang/lib/semantics/symbol.h index 79927f8..0aabdb1 100644 --- a/flang/lib/semantics/symbol.h +++ b/flang/lib/semantics/symbol.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_SEMANTICS_SYMBOL_H_ #define FORTRAN_SEMANTICS_SYMBOL_H_ diff --git a/flang/lib/semantics/type.cc b/flang/lib/semantics/type.cc index 72d352d..899a630 100644 --- a/flang/lib/semantics/type.cc +++ b/flang/lib/semantics/type.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "type.h" #include "attr.h" #include diff --git a/flang/lib/semantics/type.h b/flang/lib/semantics/type.h index b4297d6..d3381a1 100644 --- a/flang/lib/semantics/type.h +++ b/flang/lib/semantics/type.h @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 FORTRAN_TYPE_H_ #define FORTRAN_TYPE_H_ diff --git a/flang/test/semantics/implicit01.f90 b/flang/test/semantics/implicit01.f90 index 318fe76..0f4de10 100644 --- a/flang/test/semantics/implicit01.f90 +++ b/flang/test/semantics/implicit01.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s1 implicit none !ERROR: More than one IMPLICIT NONE statement diff --git a/flang/test/semantics/implicit02.f90 b/flang/test/semantics/implicit02.f90 index d77c3f5..29d5ca8 100644 --- a/flang/test/semantics/implicit02.f90 +++ b/flang/test/semantics/implicit02.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s1 implicit none !ERROR: IMPLICIT statement after IMPLICIT NONE or IMPLICIT NONE(TYPE) statement diff --git a/flang/test/semantics/implicit03.f90 b/flang/test/semantics/implicit03.f90 index 343471a..89d5c22 100644 --- a/flang/test/semantics/implicit03.f90 +++ b/flang/test/semantics/implicit03.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s1 implicit integer(a-z) !ERROR: IMPLICIT NONE statement after IMPLICIT statement diff --git a/flang/test/semantics/implicit04.f90 b/flang/test/semantics/implicit04.f90 index 004dbe6..d9c20a87 100644 --- a/flang/test/semantics/implicit04.f90 +++ b/flang/test/semantics/implicit04.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s parameter(a=1.0) !ERROR: IMPLICIT NONE statement after PARAMETER statement diff --git a/flang/test/semantics/implicit05.f90 b/flang/test/semantics/implicit05.f90 index 50039a4..d8a5026 100644 --- a/flang/test/semantics/implicit05.f90 +++ b/flang/test/semantics/implicit05.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s !ERROR: 'a' does not follow 'b' alphabetically implicit integer(b-a) diff --git a/flang/test/semantics/implicit06.f90 b/flang/test/semantics/implicit06.f90 index 225052c..6f9846d 100644 --- a/flang/test/semantics/implicit06.f90 +++ b/flang/test/semantics/implicit06.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s1 implicit integer(a-c) !ERROR: More than one implicit type specified for 'c' diff --git a/flang/test/semantics/implicit07.f90 b/flang/test/semantics/implicit07.f90 index 9b112bf..18cf95b 100644 --- a/flang/test/semantics/implicit07.f90 +++ b/flang/test/semantics/implicit07.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + implicit none(external) external x call x diff --git a/flang/test/semantics/resolve01.f90 b/flang/test/semantics/resolve01.f90 index 399cb0f..dadddcc 100644 --- a/flang/test/semantics/resolve01.f90 +++ b/flang/test/semantics/resolve01.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + integer :: x !ERROR: The type of 'x' has already been declared real :: x diff --git a/flang/test/semantics/resolve02.f90 b/flang/test/semantics/resolve02.f90 index e17e431..741f10e 100644 --- a/flang/test/semantics/resolve02.f90 +++ b/flang/test/semantics/resolve02.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s real :: x contains diff --git a/flang/test/semantics/resolve03.f90 b/flang/test/semantics/resolve03.f90 index 63a88f1..65ee006 100644 --- a/flang/test/semantics/resolve03.f90 +++ b/flang/test/semantics/resolve03.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + implicit none integer :: x !ERROR: No explicit type declared for 'y' diff --git a/flang/test/semantics/resolve04.f90 b/flang/test/semantics/resolve04.f90 index eca0b0c..9366560 100644 --- a/flang/test/semantics/resolve04.f90 +++ b/flang/test/semantics/resolve04.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + !ERROR: No explicit type declared for 'f' function f() implicit none diff --git a/flang/test/semantics/resolve05.f90 b/flang/test/semantics/resolve05.f90 index 20e3f81..5093ed7 100644 --- a/flang/test/semantics/resolve05.f90 +++ b/flang/test/semantics/resolve05.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + program p !ERROR: 'p' is already declared in this scoping unit integer p diff --git a/flang/test/semantics/resolve06.f90 b/flang/test/semantics/resolve06.f90 index 12e0e2d..d9edc21 100644 --- a/flang/test/semantics/resolve06.f90 +++ b/flang/test/semantics/resolve06.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + implicit none allocatable :: x integer :: x diff --git a/flang/test/semantics/resolve07.f90 b/flang/test/semantics/resolve07.f90 index aaccb23b..96e51de 100644 --- a/flang/test/semantics/resolve07.f90 +++ b/flang/test/semantics/resolve07.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + subroutine s1 integer :: x(2) !ERROR: The dimensions of 'x' have already been declared diff --git a/flang/test/semantics/resolve08.f90 b/flang/test/semantics/resolve08.f90 index 32274ce..5211d58 100644 --- a/flang/test/semantics/resolve08.f90 +++ b/flang/test/semantics/resolve08.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + integer :: g(10) f(i) = i + 1 ! statement function g(i) = i + 2 ! mis-parsed array assignment diff --git a/flang/test/semantics/resolve09.f90 b/flang/test/semantics/resolve09.f90 index 97484e9..a91b135 100644 --- a/flang/test/semantics/resolve09.f90 +++ b/flang/test/semantics/resolve09.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + integer :: y call x !ERROR: Use of 'y' as a procedure conflicts with its declaration diff --git a/flang/test/semantics/resolve10.f90 b/flang/test/semantics/resolve10.f90 index 0a150ae..9f667b3 100644 --- a/flang/test/semantics/resolve10.f90 +++ b/flang/test/semantics/resolve10.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + module m public !ERROR: The default accessibility of this module has already been declared diff --git a/flang/test/semantics/resolve11.f90 b/flang/test/semantics/resolve11.f90 index 9af6cea..83bdc99 100644 --- a/flang/test/semantics/resolve11.f90 +++ b/flang/test/semantics/resolve11.f90 @@ -1,3 +1,17 @@ +! Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +! +! 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. + module m public i integer, private :: j diff --git a/flang/tools/CMakeLists.txt b/flang/tools/CMakeLists.txt index 5f9f2e5..dda7555 100644 --- a/flang/tools/CMakeLists.txt +++ b/flang/tools/CMakeLists.txt @@ -1,2 +1,16 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + add_subdirectory(f18) diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt index 7a197a5..45fe0dd 100644 --- a/flang/tools/f18/CMakeLists.txt +++ b/flang/tools/f18/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +# +# 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. + ######## f18 ########## diff --git a/flang/tools/f18/f18.cc b/flang/tools/f18/f18.cc index e1d7904..d49d82a 100644 --- a/flang/tools/f18/f18.cc +++ b/flang/tools/f18/f18.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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. + // Temporary Fortran front end driver main program for development scaffolding. #include "../../lib/parser/characters.h" diff --git a/flang/tools/f18/test-sema.cc b/flang/tools/f18/test-sema.cc index badfbec..f1a7395 100644 --- a/flang/tools/f18/test-sema.cc +++ b/flang/tools/f18/test-sema.cc @@ -1,3 +1,17 @@ +// Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. +// +// 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 "../../lib/parser/parsing.h" #include "../../lib/semantics/attr.h" #include "../../lib/semantics/type.h" -- 2.7.4