[flang] Changed *.cc file extension to *.cpp (updated scripts) (flang-compiler/f18...
authorAlexis Perry <AlexisPerry@users.noreply.github.com>
Tue, 28 Jan 2020 02:18:45 +0000 (19:18 -0700)
committerSteve Scalpone <sscalpone@nvidia.com>
Tue, 28 Jan 2020 02:18:45 +0000 (18:18 -0800)
Updated CMake files accordingly, using better regex
Updated license headers to match new extension and fit within 80 columns
Updated other comments within files that referred to the old extension

Original-commit: flang-compiler/f18@ae7721e611918631d1e3821dbb60f5ffcd9a69b1
Reviewed-on: https://github.com/flang-compiler/f18/pull/958

137 files changed:
flang/documentation/C++style.md
flang/documentation/PullRequestChecklist.md
flang/include/flang/evaluate/traverse.h
flang/lib/common/CMakeLists.txt
flang/lib/common/Fortran-features.cpp [moved from flang/lib/common/Fortran-features.cc with 96% similarity]
flang/lib/common/Fortran.cpp [moved from flang/lib/common/Fortran.cc with 95% similarity]
flang/lib/common/default-kinds.cpp [moved from flang/lib/common/default-kinds.cc with 96% similarity]
flang/lib/common/idioms.cpp [moved from flang/lib/common/idioms.cc with 94% similarity]
flang/lib/decimal/CMakeLists.txt
flang/lib/decimal/binary-to-decimal.cpp [moved from flang/lib/decimal/binary-to-decimal.cc with 99% similarity]
flang/lib/decimal/decimal-to-binary.cpp [moved from flang/lib/decimal/decimal-to-binary.cc with 99% similarity]
flang/lib/evaluate/CMakeLists.txt
flang/lib/evaluate/call.cpp [moved from flang/lib/evaluate/call.cc with 99% similarity]
flang/lib/evaluate/characteristics.cpp [moved from flang/lib/evaluate/characteristics.cc with 99% similarity]
flang/lib/evaluate/check-expression.cpp [moved from flang/lib/evaluate/check-expression.cc with 99% similarity]
flang/lib/evaluate/common.cpp [moved from flang/lib/evaluate/common.cc with 96% similarity]
flang/lib/evaluate/complex.cpp [moved from flang/lib/evaluate/complex.cc with 98% similarity]
flang/lib/evaluate/constant.cpp [moved from flang/lib/evaluate/constant.cc with 99% similarity]
flang/lib/evaluate/expression.cpp [moved from flang/lib/evaluate/expression.cc with 99% similarity]
flang/lib/evaluate/fold-character.cpp [moved from flang/lib/evaluate/fold-character.cc with 98% similarity]
flang/lib/evaluate/fold-complex.cpp [moved from flang/lib/evaluate/fold-complex.cc with 98% similarity]
flang/lib/evaluate/fold-integer.cpp [moved from flang/lib/evaluate/fold-integer.cc with 99% similarity]
flang/lib/evaluate/fold-logical.cpp [moved from flang/lib/evaluate/fold-logical.cc with 99% similarity]
flang/lib/evaluate/fold-real.cpp [moved from flang/lib/evaluate/fold-real.cc with 99% similarity]
flang/lib/evaluate/fold.cpp [moved from flang/lib/evaluate/fold.cc with 99% similarity]
flang/lib/evaluate/formatting.cpp [moved from flang/lib/evaluate/formatting.cc with 99% similarity]
flang/lib/evaluate/host.cpp [moved from flang/lib/evaluate/host.cc with 98% similarity]
flang/lib/evaluate/integer.cpp [moved from flang/lib/evaluate/integer.cc with 94% similarity]
flang/lib/evaluate/intrinsics-library-templates.h
flang/lib/evaluate/intrinsics-library.cpp [moved from flang/lib/evaluate/intrinsics-library.cc with 99% similarity]
flang/lib/evaluate/intrinsics.cpp [moved from flang/lib/evaluate/intrinsics.cc with 99% similarity]
flang/lib/evaluate/logical.cpp [moved from flang/lib/evaluate/logical.cc with 88% similarity]
flang/lib/evaluate/real.cpp [moved from flang/lib/evaluate/real.cc with 99% similarity]
flang/lib/evaluate/shape.cpp [moved from flang/lib/evaluate/shape.cc with 99% similarity]
flang/lib/evaluate/static-data.cpp [moved from flang/lib/evaluate/static-data.cc with 97% similarity]
flang/lib/evaluate/tools.cpp [moved from flang/lib/evaluate/tools.cc with 99% similarity]
flang/lib/evaluate/type.cpp [moved from flang/lib/evaluate/type.cc with 99% similarity]
flang/lib/evaluate/variable.cpp [moved from flang/lib/evaluate/variable.cc with 99% similarity]
flang/lib/parser/CMakeLists.txt
flang/lib/parser/Fortran-parsers.cpp [moved from flang/lib/parser/Fortran-parsers.cc with 99% similarity]
flang/lib/parser/char-block.cpp [moved from flang/lib/parser/char-block.cc with 88% similarity]
flang/lib/parser/char-buffer.cpp [moved from flang/lib/parser/char-buffer.cc with 97% similarity]
flang/lib/parser/char-set.cpp [moved from flang/lib/parser/char-set.cc with 90% similarity]
flang/lib/parser/characters.cpp [moved from flang/lib/parser/characters.cc with 99% similarity]
flang/lib/parser/debug-parser.cpp [moved from flang/lib/parser/debug-parser.cc with 92% similarity]
flang/lib/parser/executable-parsers.cpp [moved from flang/lib/parser/executable-parsers.cc with 99% similarity]
flang/lib/parser/expr-parsers.cpp [moved from flang/lib/parser/expr-parsers.cc with 99% similarity]
flang/lib/parser/instrumented-parser.cpp [moved from flang/lib/parser/instrumented-parser.cc with 97% similarity]
flang/lib/parser/io-parsers.cpp [moved from flang/lib/parser/io-parsers.cc with 99% similarity]
flang/lib/parser/message.cpp [moved from flang/lib/parser/message.cc with 99% similarity]
flang/lib/parser/openmp-parsers.cpp [moved from flang/lib/parser/openmp-parsers.cc with 99% similarity]
flang/lib/parser/parse-tree.cpp [moved from flang/lib/parser/parse-tree.cc with 99% similarity]
flang/lib/parser/parsing.cpp [moved from flang/lib/parser/parsing.cc with 98% similarity]
flang/lib/parser/preprocessor.cpp [moved from flang/lib/parser/preprocessor.cc with 99% similarity]
flang/lib/parser/prescan.cpp [moved from flang/lib/parser/prescan.cc with 99% similarity]
flang/lib/parser/program-parsers.cpp [moved from flang/lib/parser/program-parsers.cc with 99% similarity]
flang/lib/parser/provenance.cpp [moved from flang/lib/parser/provenance.cc with 99% similarity]
flang/lib/parser/source.cpp [moved from flang/lib/parser/source.cc with 99% similarity]
flang/lib/parser/token-sequence.cpp [moved from flang/lib/parser/token-sequence.cc with 99% similarity]
flang/lib/parser/tools.cpp [moved from flang/lib/parser/tools.cc with 97% similarity]
flang/lib/parser/unparse.cpp [moved from flang/lib/parser/unparse.cc with 99% similarity]
flang/lib/parser/user-state.cpp [moved from flang/lib/parser/user-state.cc with 97% similarity]
flang/lib/semantics/CMakeLists.txt
flang/lib/semantics/assignment.cpp [moved from flang/lib/semantics/assignment.cc with 99% similarity]
flang/lib/semantics/attr.cpp [moved from flang/lib/semantics/attr.cc with 95% similarity]
flang/lib/semantics/canonicalize-do.cpp [moved from flang/lib/semantics/canonicalize-do.cc with 98% similarity]
flang/lib/semantics/canonicalize-omp.cpp [moved from flang/lib/semantics/canonicalize-omp.cc with 98% similarity]
flang/lib/semantics/check-allocate.cpp [moved from flang/lib/semantics/check-allocate.cc with 99% similarity]
flang/lib/semantics/check-arithmeticif.cpp [moved from flang/lib/semantics/check-arithmeticif.cc with 96% similarity]
flang/lib/semantics/check-call.cpp [moved from flang/lib/semantics/check-call.cc with 99% similarity]
flang/lib/semantics/check-coarray.cpp [moved from flang/lib/semantics/check-coarray.cc with 98% similarity]
flang/lib/semantics/check-deallocate.cpp [moved from flang/lib/semantics/check-deallocate.cc with 97% similarity]
flang/lib/semantics/check-declarations.cpp [moved from flang/lib/semantics/check-declarations.cc with 99% similarity]
flang/lib/semantics/check-do.cpp [moved from flang/lib/semantics/check-do.cc with 99% similarity]
flang/lib/semantics/check-if-stmt.cpp [moved from flang/lib/semantics/check-if-stmt.cc with 93% similarity]
flang/lib/semantics/check-io.cpp [moved from flang/lib/semantics/check-io.cc with 99% similarity]
flang/lib/semantics/check-nullify.cpp [moved from flang/lib/semantics/check-nullify.cc with 97% similarity]
flang/lib/semantics/check-omp-structure.cpp [moved from flang/lib/semantics/check-omp-structure.cc with 99% similarity]
flang/lib/semantics/check-purity.cpp [moved from flang/lib/semantics/check-purity.cc with 97% similarity]
flang/lib/semantics/check-return.cpp [moved from flang/lib/semantics/check-return.cc with 96% similarity]
flang/lib/semantics/check-stop.cpp [moved from flang/lib/semantics/check-stop.cc with 95% similarity]
flang/lib/semantics/expression.cpp [moved from flang/lib/semantics/expression.cc with 99% similarity]
flang/lib/semantics/mod-file.cpp [moved from flang/lib/semantics/mod-file.cc with 99% similarity]
flang/lib/semantics/pointer-assignment.cpp [moved from flang/lib/semantics/pointer-assignment.cc with 99% similarity]
flang/lib/semantics/program-tree.cpp [moved from flang/lib/semantics/program-tree.cc with 99% similarity]
flang/lib/semantics/resolve-labels.cpp [moved from flang/lib/semantics/resolve-labels.cc with 99% similarity]
flang/lib/semantics/resolve-names-utils.cpp [moved from flang/lib/semantics/resolve-names-utils.cc with 99% similarity]
flang/lib/semantics/resolve-names-utils.h
flang/lib/semantics/resolve-names.cpp [moved from flang/lib/semantics/resolve-names.cc with 99% similarity]
flang/lib/semantics/rewrite-parse-tree.cpp [moved from flang/lib/semantics/rewrite-parse-tree.cc with 98% similarity]
flang/lib/semantics/scope.cpp [moved from flang/lib/semantics/scope.cc with 99% similarity]
flang/lib/semantics/semantics.cpp [moved from flang/lib/semantics/semantics.cc with 99% similarity]
flang/lib/semantics/symbol.cpp [moved from flang/lib/semantics/symbol.cc with 99% similarity]
flang/lib/semantics/tools.cpp [moved from flang/lib/semantics/tools.cc with 99% similarity]
flang/lib/semantics/type.cpp [moved from flang/lib/semantics/type.cc with 99% similarity]
flang/lib/semantics/unparse-with-symbols.cpp [moved from flang/lib/semantics/unparse-with-symbols.cc with 98% similarity]
flang/runtime/CMakeLists.txt
flang/runtime/ISO_Fortran_binding.cpp [moved from flang/runtime/ISO_Fortran_binding.cc with 99% similarity]
flang/runtime/derived-type.cpp [moved from flang/runtime/derived-type.cc with 97% similarity]
flang/runtime/descriptor.cpp [moved from flang/runtime/descriptor.cc with 98% similarity]
flang/runtime/file.cpp [moved from flang/runtime/file.cc with 99% similarity]
flang/runtime/format.cpp [moved from flang/runtime/format.cc with 99% similarity]
flang/runtime/io-api.cpp [moved from flang/runtime/io-api.cc with 94% similarity]
flang/runtime/io-error.cpp [moved from flang/runtime/io-error.cc with 96% similarity]
flang/runtime/io-stmt.cpp [moved from flang/runtime/io-stmt.cc with 97% similarity]
flang/runtime/main.cpp [moved from flang/runtime/main.cc with 96% similarity]
flang/runtime/memory.cpp [moved from flang/runtime/memory.cc with 92% similarity]
flang/runtime/stop.cpp [moved from flang/runtime/stop.cc with 96% similarity]
flang/runtime/terminator.cpp [moved from flang/runtime/terminator.cc with 95% similarity]
flang/runtime/tools.cpp [moved from flang/runtime/tools.cc with 95% similarity]
flang/runtime/transformational.cpp [moved from flang/runtime/transformational.cc with 98% similarity]
flang/runtime/type-code.cpp [moved from flang/runtime/type-code.cc with 96% similarity]
flang/test/decimal/CMakeLists.txt
flang/test/decimal/quick-sanity-test.cpp [moved from flang/test/decimal/quick-sanity-test.cc with 100% similarity]
flang/test/decimal/thorough-test.cpp [moved from flang/test/decimal/thorough-test.cc with 100% similarity]
flang/test/evaluate/CMakeLists.txt
flang/test/evaluate/ISO-Fortran-binding.cpp [moved from flang/test/evaluate/ISO-Fortran-binding.cc with 100% similarity]
flang/test/evaluate/bit-population-count.cpp [moved from flang/test/evaluate/bit-population-count.cc with 100% similarity]
flang/test/evaluate/expression.cpp [moved from flang/test/evaluate/expression.cc with 100% similarity]
flang/test/evaluate/folding.cpp [moved from flang/test/evaluate/folding.cc with 98% similarity]
flang/test/evaluate/fp-testing.cpp [moved from flang/test/evaluate/fp-testing.cc with 100% similarity]
flang/test/evaluate/integer.cpp [moved from flang/test/evaluate/integer.cc with 100% similarity]
flang/test/evaluate/intrinsics.cpp [moved from flang/test/evaluate/intrinsics.cc with 100% similarity]
flang/test/evaluate/leading-zero-bit-count.cpp [moved from flang/test/evaluate/leading-zero-bit-count.cc with 100% similarity]
flang/test/evaluate/logical.cpp [moved from flang/test/evaluate/logical.cc with 100% similarity]
flang/test/evaluate/real.cpp [moved from flang/test/evaluate/real.cc with 100% similarity]
flang/test/evaluate/reshape.cpp [moved from flang/test/evaluate/reshape.cc with 100% similarity]
flang/test/evaluate/testing.cpp [moved from flang/test/evaluate/testing.cc with 100% similarity]
flang/test/evaluate/uint128.cpp [moved from flang/test/evaluate/uint128.cc with 100% similarity]
flang/test/runtime/CMakeLists.txt
flang/test/runtime/format.cpp [moved from flang/test/runtime/format.cc with 98% similarity]
flang/test/runtime/hello.cpp [moved from flang/test/runtime/hello.cc with 100% similarity]
flang/tools/f18/CMakeLists.txt
flang/tools/f18/dump.cpp [moved from flang/tools/f18/dump.cc with 95% similarity]
flang/tools/f18/f18-parse-demo.cpp [moved from flang/tools/f18/f18-parse-demo.cc with 99% similarity]
flang/tools/f18/f18.cpp [moved from flang/tools/f18/f18.cc with 99% similarity]
flang/tools/f18/stub-evaluate.cpp [moved from flang/tools/f18/stub-evaluate.cc with 94% similarity]

index fb83585..9136a3f 100644 (file)
@@ -36,7 +36,7 @@ unless they introduce ambiguity.
 
 ### Files
 1. File names should use dashes, not underscores.  C++ sources have the
-extension ".cc", not ".C" or ".cpp" or ".cxx".  Don't create needless
+extension ".cpp", not ".C" or ".cc" or ".cxx".  Don't create needless
 source directory hierarchies.
 1. Header files should be idempotent.  Use the usual technique:
 ```
@@ -46,11 +46,11 @@ source directory hierarchies.
 #endif  // FORTRAN_header_H_
 ```
 1. `#include` every header defining an entity that your project header or source
-file actually uses directly.  (Exception: when foo.cc starts, as it should,
+file actually uses directly.  (Exception: when foo.cpp starts, as it should,
 with `#include "foo.h"`, and foo.h includes bar.h in order to define the
 interface to the module foo, you don't have to redundantly `#include "bar.h"`
-in foo.cc.)
-1. In the source file "foo.cc", put its corresponding `#include "foo.h"`
+in foo.cpp.)
+1. In the source file "foo.cpp", put its corresponding `#include "foo.h"`
 first in the sequence of inclusions.
 Then `#include` other project headers in alphabetic order; then C++ standard
 headers, also alphabetically; then C and system headers.
index 782c3b6..041ec50 100644 (file)
@@ -29,7 +29,7 @@ can also be used when reviewing pull requests.
 ## Follow the style guide
 The following items are taken from the [C++ style guide](C++style.md).  But
 even though I've read the style guide, they regularly trip me up.
-*  Run clang-format version 7 on all .cc and .h files.
+*  Run clang-format version 7 on all .cpp and .h files.
 *  Make sure that all source lines have 80 or fewer characters.  Note that
    clang-format will do this for most code.  But you may need to break up long
    strings.
index 326104b..d85afac 100644 (file)
@@ -25,7 +25,7 @@
 // - overrides for "Result operator()"
 //
 // Boilerplate classes also appear below to ease construction of visitors.
-// See CheckSpecificationExpr() in check-expression.cc for an example client.
+// See CheckSpecificationExpr() in check-expression.cpp for an example client.
 //
 // How this works:
 // - The operator() overloads in Traverse<> invoke the visitor's Default() for
index c72efd4..bfa8bf7 100644 (file)
@@ -7,10 +7,10 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranCommon
-  Fortran.cc
-  Fortran-features.cc
-  default-kinds.cc
-  idioms.cc
+  Fortran.cpp
+  Fortran-features.cpp
+  default-kinds.cpp
+  idioms.cpp
 )
 
 install (TARGETS FortranCommon
similarity index 96%
rename from flang/lib/common/Fortran-features.cc
rename to flang/lib/common/Fortran-features.cpp
index f921626..62c3e50 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/common/Fortran-features.cc ------------------------------------===//
+//===-- lib/common/Fortran-features.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 95%
rename from flang/lib/common/Fortran.cc
rename to flang/lib/common/Fortran.cpp
index 8b915bb..61ff0ee 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/common/Fortran.cc ---------------------------------------------===//
+//===-- lib/common/Fortran.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/lib/common/default-kinds.cc
rename to flang/lib/common/default-kinds.cpp
index 1f45993..490f4dc 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/common/default-kinds.cc ---------------------------------------===//
+//===-- lib/common/default-kinds.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 94%
rename from flang/lib/common/idioms.cc
rename to flang/lib/common/idioms.cpp
index f27f7b1..d28d76f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/common/idioms.cc ----------------------------------------------===//
+//===-- lib/common/idioms.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index d28a1f9..28c9c82 100644 (file)
@@ -7,8 +7,8 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranDecimal
-  binary-to-decimal.cc
-  decimal-to-binary.cc
+  binary-to-decimal.cpp
+  decimal-to-binary.cpp
 )
 
 install (TARGETS FortranDecimal
similarity index 99%
rename from flang/lib/decimal/binary-to-decimal.cc
rename to flang/lib/decimal/binary-to-decimal.cpp
index 53b00c3..fbc043e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/decimal/binary-to-decimal.cc ----------------------------------===//
+//===-- lib/decimal/binary-to-decimal.cpp ---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/decimal/decimal-to-binary.cc
rename to flang/lib/decimal/decimal-to-binary.cpp
index 3f57a3b..de15833 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/decimal/decimal-to-binary.cc ----------------------------------===//
+//===-- lib/decimal/decimal-to-binary.cpp ---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 54d5d83..8714819 100644 (file)
@@ -7,31 +7,31 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranEvaluate
-  call.cc
-  characteristics.cc
-  check-expression.cc
-  common.cc
-  complex.cc
-  constant.cc
-  expression.cc
-  fold.cc
-  fold-character.cc
-  fold-complex.cc
-  fold-integer.cc
-  fold-logical.cc
-  fold-real.cc
-  formatting.cc
-  host.cc
-  integer.cc
-  intrinsics.cc
-  intrinsics-library.cc
-  logical.cc
-  real.cc
-  shape.cc
-  static-data.cc
-  tools.cc
-  type.cc
-  variable.cc
+  call.cpp
+  characteristics.cpp
+  check-expression.cpp
+  common.cpp
+  complex.cpp
+  constant.cpp
+  expression.cpp
+  fold.cpp
+  fold-character.cpp
+  fold-complex.cpp
+  fold-integer.cpp
+  fold-logical.cpp
+  fold-real.cpp
+  formatting.cpp
+  host.cpp
+  integer.cpp
+  intrinsics.cpp
+  intrinsics-library.cpp
+  logical.cpp
+  real.cpp
+  shape.cpp
+  static-data.cpp
+  tools.cpp
+  type.cpp
+  variable.cpp
 )
 
 target_link_libraries(FortranEvaluate
similarity index 99%
rename from flang/lib/evaluate/call.cc
rename to flang/lib/evaluate/call.cpp
index a61f679..d1272af 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/call.cc ----------------------------------------------===//
+//===-- lib/evaluate/call.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/characteristics.cc
rename to flang/lib/evaluate/characteristics.cpp
index 1e4f282..ac18b5a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/characteristics.cc -----------------------------------===//
+//===-- lib/evaluate/characteristics.cpp ----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/check-expression.cc
rename to flang/lib/evaluate/check-expression.cpp
index 31d1454..34b9025 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/check-expression.cc ----------------------------------===//
+//===-- lib/evaluate/check-expression.cpp ---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/lib/evaluate/common.cc
rename to flang/lib/evaluate/common.cpp
index a1f7cbb..9c45e66 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/common.cc --------------------------------------------===//
+//===-- lib/evaluate/common.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/evaluate/complex.cc
rename to flang/lib/evaluate/complex.cpp
index e932459..210fd1f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/complex.cc -------------------------------------------===//
+//===-- lib/evaluate/complex.cpp ------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/constant.cc
rename to flang/lib/evaluate/constant.cpp
index 4c83e34..65da137 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/constant.cc ------------------------------------------===//
+//===-- lib/evaluate/constant.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/expression.cc
rename to flang/lib/evaluate/expression.cpp
index 21a0176..fbf20da 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/expression.cc ----------------------------------------===//
+//===-- lib/evaluate/expression.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/evaluate/fold-character.cc
rename to flang/lib/evaluate/fold-character.cpp
index 73711ec..0c99b96 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold-character.cc ------------------------------------===//
+//===-- lib/evaluate/fold-character.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/evaluate/fold-complex.cc
rename to flang/lib/evaluate/fold-complex.cpp
index e96bc9d..d4c5f00 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold-complex.cc --------------------------------------===//
+//===-- lib/evaluate/fold-complex.cpp -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/fold-integer.cc
rename to flang/lib/evaluate/fold-integer.cpp
index aa696dd..cda0a39 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold-integer.cc --------------------------------------===//
+//===-- lib/evaluate/fold-integer.cpp -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/fold-logical.cc
rename to flang/lib/evaluate/fold-logical.cpp
index 649f745..cf1bb9a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold-logical.cc --------------------------------------===//
+//===-- lib/evaluate/fold-logical.cpp -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/fold-real.cc
rename to flang/lib/evaluate/fold-real.cpp
index 05b719e..b1d3ed3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold-real.cc -----------------------------------------===//
+//===-- lib/evaluate/fold-real.cpp ----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/fold.cc
rename to flang/lib/evaluate/fold.cpp
index af1de40..4a7263f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/fold.cc ----------------------------------------------===//
+//===-- lib/evaluate/fold.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/formatting.cc
rename to flang/lib/evaluate/formatting.cpp
index 6eb43a4..5bc6277 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/formatting.cc ----------------------------------------===//
+//===-- lib/evaluate/formatting.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/evaluate/host.cc
rename to flang/lib/evaluate/host.cpp
index 62dd448..47685e0 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/host.cc ----------------------------------------------===//
+//===-- lib/evaluate/host.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 94%
rename from flang/lib/evaluate/integer.cc
rename to flang/lib/evaluate/integer.cpp
index 30484d9..06503e6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/integer.cc -------------------------------------------===//
+//===-- lib/evaluate/integer.cpp ------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 4ab657d..65d3de7 100644 (file)
@@ -13,7 +13,7 @@
 // function of the structures defined in intrinsics-library.h. It should only be
 // included if these member functions are used, else intrinsics-library.h is
 // sufficient. This is to avoid circular dependencies. The below implementation
-// cannot be defined in .cc file because it would be too cumbersome to decide
+// cannot be defined in .cpp file because it would be too cumbersome to decide
 // which version should be instantiated in a generic way.
 
 #include "host.h"
similarity index 99%
rename from flang/lib/evaluate/intrinsics-library.cc
rename to flang/lib/evaluate/intrinsics-library.cpp
index 4a8e4c6..bfddcb3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/intrinsics-library.cc --------------------------------===//
+//===-- lib/evaluate/intrinsics-library.cpp -------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/intrinsics.cc
rename to flang/lib/evaluate/intrinsics.cpp
index 1a8b5ba..93b2f86 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/intrinsics.cc ----------------------------------------===//
+//===-- lib/evaluate/intrinsics.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 88%
rename from flang/lib/evaluate/logical.cc
rename to flang/lib/evaluate/logical.cpp
index bdbfedb..8bd3a3b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/logical.cc -------------------------------------------===//
+//===-- lib/evaluate/logical.cpp ------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/real.cc
rename to flang/lib/evaluate/real.cpp
index b803a8e..ec9ab1d 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/real.cc ----------------------------------------------===//
+//===-- lib/evaluate/real.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/shape.cc
rename to flang/lib/evaluate/shape.cpp
index 62bc879..ea14c4b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/shape.cc ---------------------------------------------===//
+//===-- lib/evaluate/shape.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/evaluate/static-data.cc
rename to flang/lib/evaluate/static-data.cpp
index f5311ce..668fcb4 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/static-data.cc ---------------------------------------===//
+//===-- lib/evaluate/static-data.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/tools.cc
rename to flang/lib/evaluate/tools.cpp
index 4710343..8f9af2e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/tools.cc ---------------------------------------------===//
+//===-- lib/evaluate/tools.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/type.cc
rename to flang/lib/evaluate/type.cpp
index bf7e801..11f8003 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/type.cc ----------------------------------------------===//
+//===-- lib/evaluate/type.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/evaluate/variable.cc
rename to flang/lib/evaluate/variable.cpp
index 0922ba6..f10b0a6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/evaluate/variable.cc ------------------------------------------===//
+//===-- lib/evaluate/variable.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 9630601..72ced8c 100644 (file)
@@ -7,29 +7,29 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranParser
-  Fortran-parsers.cc
-  char-buffer.cc
-  char-block.cc
-  char-set.cc
-  characters.cc
-  debug-parser.cc
-  executable-parsers.cc
-  expr-parsers.cc
-  instrumented-parser.cc
-  io-parsers.cc
-  message.cc
-  openmp-parsers.cc
-  parse-tree.cc
-  parsing.cc
-  preprocessor.cc
-  prescan.cc
-  program-parsers.cc
-  provenance.cc
-  source.cc
-  token-sequence.cc
-  tools.cc
-  unparse.cc
-  user-state.cc
+  Fortran-parsers.cpp
+  char-buffer.cpp
+  char-block.cpp
+  char-set.cpp
+  characters.cpp
+  debug-parser.cpp
+  executable-parsers.cpp
+  expr-parsers.cpp
+  instrumented-parser.cpp
+  io-parsers.cpp
+  message.cpp
+  openmp-parsers.cpp
+  parse-tree.cpp
+  parsing.cpp
+  preprocessor.cpp
+  prescan.cpp
+  program-parsers.cpp
+  provenance.cpp
+  source.cpp
+  token-sequence.cpp
+  tools.cpp
+  unparse.cpp
+  user-state.cpp
 )
 
 target_link_libraries(FortranParser
similarity index 99%
rename from flang/lib/parser/Fortran-parsers.cc
rename to flang/lib/parser/Fortran-parsers.cpp
index bfc7122..f895189 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/Fortran-parsers.cc -------------------------------------===//
+//===-- lib/parser/Fortran-parsers.cpp ------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
 // various per-type parsers are partitioned into several C++ source
 // files.  This file contains parsers for constants, types, declarations,
 // and misfits (mostly clauses 7, 8, & 9 of Fortran 2018).  The others:
-//  executable-parsers.cc  Executable statements
-//  expr-parsers.cc        Expressions
-//  io-parsers.cc          I/O statements and FORMAT
-//  openmp-parsers.cc      OpenMP directives
-//  program-parsers.cc     Program units
+//  executable-parsers.cpp  Executable statements
+//  expr-parsers.cpp        Expressions
+//  io-parsers.cpp          I/O statements and FORMAT
+//  openmp-parsers.cpp      OpenMP directives
+//  program-parsers.cpp     Program units
 
 #include "basic-parsers.h"
 #include "expr-parsers.h"
similarity index 88%
rename from flang/lib/parser/char-block.cc
rename to flang/lib/parser/char-block.cpp
index 8c9784e..a3cb60a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/char-block.cc --------------------------------*- C++ -*-===//
+//===-- lib/parser/char-block.cpp -------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/parser/char-buffer.cc
rename to flang/lib/parser/char-buffer.cpp
index 6c42624..3de83ec 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/char-buffer.cc -----------------------------------------===//
+//===-- lib/parser/char-buffer.cpp ----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 90%
rename from flang/lib/parser/char-set.cc
rename to flang/lib/parser/char-set.cpp
index c8a324f..1390f5c 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/char-set.cc --------------------------------------------===//
+//===-- lib/parser/char-set.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/characters.cc
rename to flang/lib/parser/characters.cpp
index d6fc0d6..f470356 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/characters.cc ------------------------------------------===//
+//===-- lib/parser/characters.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 92%
rename from flang/lib/parser/debug-parser.cc
rename to flang/lib/parser/debug-parser.cpp
index 97fdf28..4957ce1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/debug-parser.cc ----------------------------------------===//
+//===-- lib/parser/debug-parser.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/executable-parsers.cc
rename to flang/lib/parser/executable-parsers.cpp
index a1557a0..72408f1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/executable-parsers.cc ----------------------------------===//
+//===-- lib/parser/executable-parsers.cpp ---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/expr-parsers.cc
rename to flang/lib/parser/expr-parsers.cpp
index 14bc391..11e94fc 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/expr-parsers.cc ----------------------------------------===//
+//===-- lib/parser/expr-parsers.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/parser/instrumented-parser.cc
rename to flang/lib/parser/instrumented-parser.cpp
index b845b22..fc5e148 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/instrumented-parser.cc ---------------------------------===//
+//===-- lib/parser/instrumented-parser.cpp --------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/io-parsers.cc
rename to flang/lib/parser/io-parsers.cpp
index 5488a32..a9ccbb7 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/io-parsers.cc ------------------------------------------===//
+//===-- lib/parser/io-parsers.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/message.cc
rename to flang/lib/parser/message.cpp
index 5589707..2f5655e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/message.cc ---------------------------------------------===//
+//===-- lib/parser/message.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/openmp-parsers.cc
rename to flang/lib/parser/openmp-parsers.cpp
index 4a5a083..076c3e8 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/openmp-parsers.cc --------------------------------------===//
+//===-- lib/parser/openmp-parsers.cpp -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/parse-tree.cc
rename to flang/lib/parser/parse-tree.cpp
index 6e0e017..c412214 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/parse-tree.cc ------------------------------------------===//
+//===-- lib/parser/parse-tree.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/parser/parsing.cc
rename to flang/lib/parser/parsing.cpp
index c2b96ab..ab39c2b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/parsing.cc ---------------------------------------------===//
+//===-- lib/parser/parsing.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/preprocessor.cc
rename to flang/lib/parser/preprocessor.cpp
index 270e72c..cd5cee7 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/preprocessor.cc ----------------------------------------===//
+//===-- lib/parser/preprocessor.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/prescan.cc
rename to flang/lib/parser/prescan.cpp
index 07f294a..679f136 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/prescan.cc ---------------------------------------------===//
+//===-- lib/parser/prescan.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/program-parsers.cc
rename to flang/lib/parser/program-parsers.cpp
index f198242..f0e4e69 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/program-parsers.cc -------------------------------------===//
+//===-- lib/parser/program-parsers.cpp ------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/provenance.cc
rename to flang/lib/parser/provenance.cpp
index 9ad864e..391e650 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/provenance.cc ------------------------------------------===//
+//===-- lib/parser/provenance.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/source.cc
rename to flang/lib/parser/source.cpp
index 4e4c273..e6635e9 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/source.cc ----------------------------------------------===//
+//===-- lib/parser/source.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/token-sequence.cc
rename to flang/lib/parser/token-sequence.cpp
index d6337f4..3f984e1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/token-sequence.cc --------------------------------------===//
+//===-- lib/parser/token-sequence.cpp -------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/parser/tools.cc
rename to flang/lib/parser/tools.cpp
index 1ef05b4..522bd3a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/tools.cc -----------------------------------------------===//
+//===-- lib/parser/tools.cpp ----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/parser/unparse.cc
rename to flang/lib/parser/unparse.cpp
index 6550efa..82d5296 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/unparse.cc ---------------------------------------------===//
+//===-- lib/parser/unparse.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/parser/user-state.cc
rename to flang/lib/parser/user-state.cpp
index b23b8f5..bd84463 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/parser/user-state.cc ------------------------------------------===//
+//===-- lib/parser/user-state.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 1f0fa35..14e636e 100644 (file)
@@ -7,38 +7,38 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranSemantics
-  assignment.cc
-  attr.cc
-  canonicalize-do.cc
-  canonicalize-omp.cc
-  check-allocate.cc
-  check-arithmeticif.cc
-  check-call.cc
-  check-coarray.cc
-  check-deallocate.cc
-  check-declarations.cc
-  check-do.cc
-  check-if-stmt.cc
-  check-io.cc
-  check-nullify.cc
-  check-omp-structure.cc
-  check-purity.cc
-  check-return.cc
-  check-stop.cc
-  expression.cc
-  mod-file.cc
-  pointer-assignment.cc
-  program-tree.cc
-  resolve-labels.cc
-  resolve-names.cc
-  resolve-names-utils.cc
-  rewrite-parse-tree.cc
-  scope.cc
-  semantics.cc
-  symbol.cc
-  tools.cc
-  type.cc
-  unparse-with-symbols.cc
+  assignment.cpp
+  attr.cpp
+  canonicalize-do.cpp
+  canonicalize-omp.cpp
+  check-allocate.cpp
+  check-arithmeticif.cpp
+  check-call.cpp
+  check-coarray.cpp
+  check-deallocate.cpp
+  check-declarations.cpp
+  check-do.cpp
+  check-if-stmt.cpp
+  check-io.cpp
+  check-nullify.cpp
+  check-omp-structure.cpp
+  check-purity.cpp
+  check-return.cpp
+  check-stop.cpp
+  expression.cpp
+  mod-file.cpp
+  pointer-assignment.cpp
+  program-tree.cpp
+  resolve-labels.cpp
+  resolve-names.cpp
+  resolve-names-utils.cpp
+  rewrite-parse-tree.cpp
+  scope.cpp
+  semantics.cpp
+  symbol.cpp
+  tools.cpp
+  type.cpp
+  unparse-with-symbols.cpp
 )
 
 target_link_libraries(FortranSemantics
similarity index 99%
rename from flang/lib/semantics/assignment.cc
rename to flang/lib/semantics/assignment.cpp
index 70f2f65..362df04 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/assignment.cc ---------------------------------------===//
+//===-- lib/semantics/assignment.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -139,7 +139,7 @@ private:
 };
 
 void AssignmentContext::Analyze(const parser::AssignmentStmt &stmt) {
-  // Assignment statement analysis is in expression.cc where user-defined
+  // Assignment statement analysis is in expression.cpp where user-defined
   // assignments can be recognized and replaced.
   if (const evaluate::Assignment * asst{GetAssignment(stmt)}) {
     if (const auto *intrinsicAsst{
similarity index 95%
rename from flang/lib/semantics/attr.cc
rename to flang/lib/semantics/attr.cpp
index 25d9201..6562344 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/attr.cc ---------------------------------------------===//
+//===-- lib/semantics/attr.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/semantics/canonicalize-do.cc
rename to flang/lib/semantics/canonicalize-do.cpp
index b4ac377..45353c9 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/canonicalize-do.cc ----------------------------------===//
+//===-- lib/semantics/canonicalize-do.cpp ---------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/semantics/canonicalize-omp.cc
rename to flang/lib/semantics/canonicalize-omp.cpp
index cbd26d1..1af2f3b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/canonicalize-omp.cc ---------------------------------===//
+//===-- lib/semantics/canonicalize-omp.cpp --------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/check-allocate.cc
rename to flang/lib/semantics/check-allocate.cpp
index 4db1434..83f3ae9 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-allocate.cc -----------------------------------===//
+//===-- lib/semantics/check-allocate.cpp ----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/lib/semantics/check-arithmeticif.cc
rename to flang/lib/semantics/check-arithmeticif.cpp
index fd293ce..d0b08a3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-arithmeticif.cc -------------------------------===//
+//===-- lib/semantics/check-arithmeticif.cpp ------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/check-call.cc
rename to flang/lib/semantics/check-call.cpp
index 164dbc8..2afd00f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-call.cc ---------------------------------------===//
+//===-- lib/semantics/check-call.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/semantics/check-coarray.cc
rename to flang/lib/semantics/check-coarray.cpp
index 44f8cf4..0e43314 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-coarray.cc ------------------------------------===//
+//===-- lib/semantics/check-coarray.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/semantics/check-deallocate.cc
rename to flang/lib/semantics/check-deallocate.cpp
index 7e66fcd..3f48fb4 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-deallocate.cc ---------------------------------===//
+//===-- lib/semantics/check-deallocate.cpp --------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/check-declarations.cc
rename to flang/lib/semantics/check-declarations.cpp
index a3352d9..a96bc6f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-declarations.cc -------------------------------===//
+//===-- lib/semantics/check-declarations.cpp ------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -1074,7 +1074,7 @@ void CheckHelper::CheckEquivalenceSet(const EquivalenceSet &set) {
       }
     }
   }
-  // TODO: Move C8106 (&al.) checks here from resolve-names-utils.cc
+  // TODO: Move C8106 (&al.) checks here from resolve-names-utils.cpp
 }
 
 void CheckHelper::CheckBlockData(const Scope &scope) {
similarity index 99%
rename from flang/lib/semantics/check-do.cc
rename to flang/lib/semantics/check-do.cpp
index 8112c63..96c8ba7 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-do.cc -----------------------------------------===//
+//===-- lib/semantics/check-do.cpp ----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 93%
rename from flang/lib/semantics/check-if-stmt.cc
rename to flang/lib/semantics/check-if-stmt.cpp
index ec423e3..589caf2 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-if-stmt.cc ------------------------------------===//
+//===-- lib/semantics/check-if-stmt.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/check-io.cc
rename to flang/lib/semantics/check-io.cpp
index dc6ef9e..6f824a3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-io.cc -----------------------------------------===//
+//===-- lib/semantics/check-io.cpp ----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/semantics/check-nullify.cc
rename to flang/lib/semantics/check-nullify.cpp
index 9951a16..06a551f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-nullify.cc ------------------------------------===//
+//===-- lib/semantics/check-nullify.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/check-omp-structure.cc
rename to flang/lib/semantics/check-omp-structure.cpp
index 15b51d3..8d22d42 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-omp-structure.cc ------------------------------===//
+//===-- lib/semantics/check-omp-structure.cpp -----------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/lib/semantics/check-purity.cc
rename to flang/lib/semantics/check-purity.cpp
index 541696f..986a22a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-purity.cc -------------------------------------===//
+//===-- lib/semantics/check-purity.cpp ------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/lib/semantics/check-return.cc
rename to flang/lib/semantics/check-return.cpp
index fc2f2cf..0fb3b61 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-return.cc -------------------------------------===//
+//===-- lib/semantics/check-return.cpp ------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 95%
rename from flang/lib/semantics/check-stop.cc
rename to flang/lib/semantics/check-stop.cpp
index 0cf56e9..105f0df 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/check-stop.cc ---------------------------------------===//
+//===-- lib/semantics/check-stop.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/expression.cc
rename to flang/lib/semantics/expression.cpp
index 3334bf2..59593ae 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/expression.cc ---------------------------------------===//
+//===-- lib/semantics/expression.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/mod-file.cc
rename to flang/lib/semantics/mod-file.cpp
index e0a18b2..857c52b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/mod-file.cc -----------------------------------------===//
+//===-- lib/semantics/mod-file.cpp ----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/pointer-assignment.cc
rename to flang/lib/semantics/pointer-assignment.cpp
index bf93bdb..8e111ef 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/pointer-assignment.cc -------------------------------===//
+//===-- lib/semantics/pointer-assignment.cpp ------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/program-tree.cc
rename to flang/lib/semantics/program-tree.cpp
index f208191..74381e1 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/program-tree.cc -------------------------------------===//
+//===-- lib/semantics/program-tree.cpp ------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/resolve-labels.cc
rename to flang/lib/semantics/resolve-labels.cpp
index 0c09fb4..87cacb8 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/resolve-labels.cc -----------------------------------===//
+//===-- lib/semantics/resolve-labels.cpp ----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/resolve-names-utils.cc
rename to flang/lib/semantics/resolve-names-utils.cpp
index dd8c85d..3b1a0b6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/resolve-names-utils.cc ------------------------------===//
+//===-- lib/semantics/resolve-names-utils.cpp -----------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 0036cb7..b0748c2 100644 (file)
@@ -9,7 +9,7 @@
 #ifndef FORTRAN_SEMANTICS_RESOLVE_NAMES_UTILS_H_
 #define FORTRAN_SEMANTICS_RESOLVE_NAMES_UTILS_H_
 
-// Utility functions and class for use in resolve-names.cc.
+// Utility functions and class for use in resolve-names.cpp.
 
 #include "flang/parser/message.h"
 #include "flang/semantics/scope.h"
similarity index 99%
rename from flang/lib/semantics/resolve-names.cc
rename to flang/lib/semantics/resolve-names.cpp
index ae20be1..e6a9b7f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/resolve-names.cc ------------------------------------===//
+//===-- lib/semantics/resolve-names.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -3762,7 +3762,7 @@ bool DeclarationVisitor::Pre(const parser::StructureConstructor &x) {
 
   // N.B C7102 is implicitly enforced by having inaccessible types not
   // being found in resolution.
-  // More constraints are enforced in expression.cc so that they
+  // More constraints are enforced in expression.cpp so that they
   // can apply to structure constructors that have been converted
   // from misparsed function references.
   for (const auto &component :
similarity index 98%
rename from flang/lib/semantics/rewrite-parse-tree.cc
rename to flang/lib/semantics/rewrite-parse-tree.cpp
index 932a6ec..37c5537 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/rewrite-parse-tree.cc -------------------------------===//
+//===-- lib/semantics/rewrite-parse-tree.cpp ------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/scope.cc
rename to flang/lib/semantics/scope.cpp
index 23166b1..96400b6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/scope.cc --------------------------------------------===//
+//===-- lib/semantics/scope.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/semantics.cc
rename to flang/lib/semantics/semantics.cpp
index 7642366..1f9958e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/semantics.cc ----------------------------------------===//
+//===-- lib/semantics/semantics.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/symbol.cc
rename to flang/lib/semantics/symbol.cpp
index 6393fa1..d513962 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/symbol.cc -------------------------------------------===//
+//===-- lib/semantics/symbol.cpp ------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/tools.cc
rename to flang/lib/semantics/tools.cpp
index 24b87b4..a39ff40 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/tools.cc --------------------------------------------===//
+//===-- lib/semantics/tools.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/lib/semantics/type.cc
rename to flang/lib/semantics/type.cpp
index 0f196db..b216261 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/type.cc ---------------------------------------------===//
+//===-- lib/semantics/type.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/lib/semantics/unparse-with-symbols.cc
rename to flang/lib/semantics/unparse-with-symbols.cpp
index 70ed49d..1af5c2a 100644 (file)
@@ -1,4 +1,4 @@
-//===-- lib/semantics/unparse-with-symbols.cc -----------------------------===//
+//===-- lib/semantics/unparse-with-symbols.cpp ----------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index ce42973..a9a71b9 100644 (file)
@@ -7,21 +7,21 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranRuntime
-  ISO_Fortran_binding.cc
-  derived-type.cc
-  descriptor.cc
-  file.cc
-  format.cc
-  io-api.cc
-  io-error.cc
-  io-stmt.cc
-  main.cc
-  memory.cc
-  stop.cc
-  terminator.cc
-  tools.cc
-  transformational.cc
-  type-code.cc
+  ISO_Fortran_binding.cpp
+  derived-type.cpp
+  descriptor.cpp
+  file.cpp
+  format.cpp
+  io-api.cpp
+  io-error.cpp
+  io-stmt.cpp
+  main.cpp
+  memory.cpp
+  stop.cpp
+  terminator.cpp
+  tools.cpp
+  transformational.cpp
+  type-code.cpp
 )
 
 target_link_libraries(FortranRuntime
similarity index 99%
rename from flang/runtime/ISO_Fortran_binding.cc
rename to flang/runtime/ISO_Fortran_binding.cpp
index 2a72aea..bcb0d05 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/ISO_Fortran_binding.cc ------------------------------------===//
+//===-- runtime/ISO_Fortran_binding.cpp -----------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/runtime/derived-type.cc
rename to flang/runtime/derived-type.cpp
index 69b3292..fb0e5a8 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/derived-type.cc -------------------------------------------===//
+//===-- runtime/derived-type.cpp ------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/runtime/descriptor.cc
rename to flang/runtime/descriptor.cpp
index e412df4..c8895dd 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/descriptor.cc ---------------------------------------------===//
+//===-- runtime/descriptor.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/runtime/file.cc
rename to flang/runtime/file.cpp
index c99db09..3936bcd 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/file.cc -----------------------------------------*- C++ -*-===//
+//===-- runtime/file.cpp ----------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/runtime/format.cc
rename to flang/runtime/format.cpp
index 2dd76e3..46ad2ea 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/format.cc ---------------------------------------*- C++ -*-===//
+//===-- runtime/format.cpp --------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 94%
rename from flang/runtime/io-api.cc
rename to flang/runtime/io-api.cpp
index a140e0e..56e6dff 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/io.cc -------------------------------------------*- C++ -*-===//
+//===-- runtime/io.cpp ------------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/runtime/io-error.cc
rename to flang/runtime/io-error.cpp
index ccf143a..52fff2d 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/io-error.cc -------------------------------------*- C++ -*-===//
+//===-- runtime/io-error.cpp ------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 97%
rename from flang/runtime/io-stmt.cc
rename to flang/runtime/io-stmt.cpp
index 221cd2d..617e3e6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/io-stmt.cc --------------------------------------*- C++ -*-===//
+//===-- runtime/io-stmt.cpp -------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/runtime/main.cc
rename to flang/runtime/main.cpp
index ce36bc2..25b3b02 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/main.cc -----------------------------------------*- C++ -*-===//
+//===-- runtime/main.cpp ----------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 92%
rename from flang/runtime/memory.cc
rename to flang/runtime/memory.cpp
index ab7c63c..e2d997c 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/memory.cc ---------------------------------------*- C++ -*-===//
+//===-- runtime/memory.cpp --------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/runtime/stop.cc
rename to flang/runtime/stop.cpp
index a1f421a..8bf665f 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/stop.cc -----------------------------------------*- C++ -*-===//
+//===-- runtime/stop.cpp ----------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 95%
rename from flang/runtime/terminator.cc
rename to flang/runtime/terminator.cpp
index e2e9b7b..c516af3 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/terminate.cc ------------------------------------*- C++ -*-===//
+//===-- runtime/terminate.cpp -----------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 95%
rename from flang/runtime/tools.cc
rename to flang/runtime/tools.cpp
index 8a9980f..43a0f68 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/tools.cc ----------------------------------------*- C++ -*-===//
+//===-- runtime/tools.cpp ---------------------------------------*- C++ -*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 98%
rename from flang/runtime/transformational.cc
rename to flang/runtime/transformational.cpp
index bd408de..42a05e6 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/transformational.cc ---------------------------------------===//
+//===-- runtime/transformational.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 96%
rename from flang/runtime/type-code.cc
rename to flang/runtime/type-code.cpp
index d4fbced..8b57cdb 100644 (file)
@@ -1,4 +1,4 @@
-//===-- runtime/type-code.cc ----------------------------------------------===//
+//===-- runtime/type-code.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
index 19050ba..d1210ba 100644 (file)
@@ -7,7 +7,7 @@
 #===------------------------------------------------------------------------===#
 
 add_executable(quick-sanity-test
-  quick-sanity-test.cc
+  quick-sanity-test.cpp
 )
 
 target_link_libraries(quick-sanity-test
@@ -15,7 +15,7 @@ target_link_libraries(quick-sanity-test
 )
 
 add_executable(thorough-test
-  thorough-test.cc
+  thorough-test.cpp
 )
 
 target_link_libraries(thorough-test
index 47b1f78..088280f 100644 (file)
@@ -7,12 +7,12 @@
 #===------------------------------------------------------------------------===#
 
 add_library(FortranEvaluateTesting
-  testing.cc
-  fp-testing.cc
+  testing.cpp
+  fp-testing.cpp
 )
 
 add_executable(leading-zero-bit-count-test
-  leading-zero-bit-count.cc
+  leading-zero-bit-count.cpp
 )
 
 target_link_libraries(leading-zero-bit-count-test
@@ -20,7 +20,7 @@ target_link_libraries(leading-zero-bit-count-test
 )
 
 add_executable(bit-population-count-test
-  bit-population-count.cc
+  bit-population-count.cpp
 )
 
 target_link_libraries(bit-population-count-test
@@ -28,7 +28,7 @@ target_link_libraries(bit-population-count-test
 )
 
 add_executable(uint128-test
-  uint128.cc
+  uint128.cpp
 )
 
 target_link_libraries(uint128-test
@@ -41,7 +41,7 @@ add_test(Leadz leading-zero-bit-count-test)
 add_test(PopPar bit-population-count-test)
 
 add_executable(expression-test
-  expression.cc
+  expression.cpp
 )
 
 target_link_libraries(expression-test
@@ -52,7 +52,7 @@ target_link_libraries(expression-test
 )
 
 add_executable(integer-test
-  integer.cc
+  integer.cpp
 )
 
 target_link_libraries(integer-test
@@ -62,7 +62,7 @@ target_link_libraries(integer-test
 )
 
 add_executable(intrinsics-test
-  intrinsics.cc
+  intrinsics.cpp
 )
 
 target_link_libraries(intrinsics-test
@@ -75,7 +75,7 @@ target_link_libraries(intrinsics-test
 )
 
 add_executable(logical-test
-  logical.cc
+  logical.cpp
 )
 
 target_link_libraries(logical-test
@@ -88,9 +88,9 @@ target_link_libraries(logical-test
 # IEEE exception flags (different use of the word "exception")
 # in the actual hardware floating-point status register, so ensure that
 # C++ exceptions are enabled for this test.
-set_source_files_properties(real.cc PROPERTIES COMPILE_FLAGS -fexceptions)
+set_source_files_properties(real.cpp PROPERTIES COMPILE_FLAGS -fexceptions)
 add_executable(real-test
-  real.cc
+  real.cpp
 )
 
 target_link_libraries(real-test
@@ -102,7 +102,7 @@ target_link_libraries(real-test
 )
 
 add_executable(reshape-test
-  reshape.cc
+  reshape.cpp
 )
 
 target_link_libraries(reshape-test
@@ -113,7 +113,7 @@ target_link_libraries(reshape-test
 )
 
 add_executable(ISO-Fortran-binding-test
-  ISO-Fortran-binding.cc
+  ISO-Fortran-binding.cpp
 )
 
 target_link_libraries(ISO-Fortran-binding-test
@@ -124,7 +124,7 @@ target_link_libraries(ISO-Fortran-binding-test
 )
 
 add_executable(folding-test
-  folding.cc
+  folding.cpp
 )
 
 target_link_libraries(folding-test
similarity index 98%
rename from flang/test/evaluate/folding.cc
rename to flang/test/evaluate/folding.cpp
index f72670e..bf68a74 100644 (file)
@@ -41,7 +41,7 @@ static FunctionRef<T> CreateIntrinsicElementalCall(
 }
 
 // Test flushSubnormalsToZero when folding with host runtime.
-// Subnormal value flushing on host is handle in host.cc
+// Subnormal value flushing on host is handle in host.cpp
 // HostFloatingPointEnvironment::SetUpHostFloatingPointEnvironment
 
 // Dummy host runtime functions where subnormal flushing matters
index 5cbc230..fda3776 100644 (file)
@@ -11,7 +11,7 @@ if(CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
 endif()
 
 add_executable(format-test
-  format.cc
+  format.cpp
 )
 
 target_link_libraries(format-test
@@ -21,7 +21,7 @@ target_link_libraries(format-test
 add_test(Format format-test)
 
 add_executable(hello-world
-  hello.cc
+  hello.cpp
 )
 
 target_link_libraries(hello-world
similarity index 98%
rename from flang/test/runtime/format.cc
rename to flang/test/runtime/format.cpp
index 50381e8..937a443 100644 (file)
@@ -16,7 +16,7 @@ using Results = std::list<std::string>;
 
 // Test harness context for format control
 struct TestFormatContext : virtual public Terminator, public FormatContext {
-  TestFormatContext() : Terminator{"format.cc", 1} {}
+  TestFormatContext() : Terminator{"format.cpp", 1} {}
   void Emit(const char *, std::size_t);
   void HandleSlash(int = 1);
   void HandleRelativePosition(int);
index 1a4c97e..676549c 100644 (file)
@@ -10,8 +10,8 @@ file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
 file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/include")
 
 add_executable(f18
-  f18.cc
-  dump.cc
+  f18.cpp
+  dump.cpp
 )
 
 target_link_libraries(f18
@@ -21,8 +21,8 @@ target_link_libraries(f18
 )
 
 add_executable(f18-parse-demo
-  f18-parse-demo.cc
-  stub-evaluate.cc
+  f18-parse-demo.cpp
+  stub-evaluate.cpp
 )
 
 target_link_libraries(f18-parse-demo
similarity index 95%
rename from flang/tools/f18/dump.cc
rename to flang/tools/f18/dump.cpp
index fd2c75e..26f4d73 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tools/f18/dump.cc -------------------------------------------------===//
+//===-- tools/f18/dump.cpp ------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 99%
rename from flang/tools/f18/f18-parse-demo.cc
rename to flang/tools/f18/f18-parse-demo.cpp
index f65b47b..d52499e 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tools/f18/f18-parse-demo.cc ---------------------------------------===//
+//===-- tools/f18/f18-parse-demo.cpp --------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +17,7 @@
 // always run, whatever the case of the source file extension.  Unrecognized
 // options are passed through to the underlying Fortran compiler.
 //
-// This program is actually a stripped-down variant of f18.cc, a temporary
+// This program is actually a stripped-down variant of f18.cpp, a temporary
 // scaffolding compiler driver that can test some semantic passes of the
 // F18 compiler under development.
 
similarity index 99%
rename from flang/tools/f18/f18.cc
rename to flang/tools/f18/f18.cpp
index 32a5cd4..56f008b 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tools/f18/f18.cc --------------------------------------------------===//
+//===-- tools/f18/f18.cpp -------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
similarity index 94%
rename from flang/tools/f18/stub-evaluate.cc
rename to flang/tools/f18/stub-evaluate.cpp
index 0b20203..99e2635 100644 (file)
@@ -1,4 +1,4 @@
-//===-- tools/f18/stub-evaluate.cc ----------------------------------------===//
+//===-- tools/f18/stub-evaluate.cpp ---------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.