[flang-commits] [flang] 651f58b - [flang] Remove *- C++ -* incantation from runtime .cpp files. NFC

Diana Picus via flang-commits flang-commits at lists.llvm.org
Fri Sep 3 00:17:59 PDT 2021


Author: Diana Picus
Date: 2021-09-03T07:17:45Z
New Revision: 651f58bf63e6cb6926faf0f33200c57fdd591a85

URL: https://github.com/llvm/llvm-project/commit/651f58bf63e6cb6926faf0f33200c57fdd591a85
DIFF: https://github.com/llvm/llvm-project/commit/651f58bf63e6cb6926faf0f33200c57fdd591a85.diff

LOG: [flang] Remove *- C++ -* incantation from runtime .cpp files. NFC

We should only need to spell the language out in .h files.

Differential Revision: https://reviews.llvm.org/D109138

Added: 
    

Modified: 
    flang/runtime/buffer.cpp
    flang/runtime/character.cpp
    flang/runtime/connection.cpp
    flang/runtime/edit-input.cpp
    flang/runtime/edit-output.cpp
    flang/runtime/environment.cpp
    flang/runtime/file.cpp
    flang/runtime/format.cpp
    flang/runtime/internal-unit.cpp
    flang/runtime/io-api.cpp
    flang/runtime/io-error.cpp
    flang/runtime/io-stmt.cpp
    flang/runtime/iostat.cpp
    flang/runtime/main.cpp
    flang/runtime/memory.cpp
    flang/runtime/namelist.cpp
    flang/runtime/numeric.cpp
    flang/runtime/stat.cpp
    flang/runtime/stop.cpp
    flang/runtime/terminator.cpp
    flang/runtime/tools.cpp
    flang/runtime/unit-map.cpp
    flang/runtime/unit.cpp

Removed: 
    


################################################################################
diff  --git a/flang/runtime/buffer.cpp b/flang/runtime/buffer.cpp
index d5081ee7a182d..15c83bfd24923 100644
--- a/flang/runtime/buffer.cpp
+++ b/flang/runtime/buffer.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/buffer.cpp --------------------------------------*- C++ -*-===//
+//===-- runtime/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.

diff  --git a/flang/runtime/character.cpp b/flang/runtime/character.cpp
index b927febd812c6..d88db565b8aa8 100644
--- a/flang/runtime/character.cpp
+++ b/flang/runtime/character.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/character.cpp -----------------------------------*- C++ -*-===//
+//===-- runtime/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.

diff  --git a/flang/runtime/connection.cpp b/flang/runtime/connection.cpp
index dc6823a83024c..29d3220f43fc3 100644
--- a/flang/runtime/connection.cpp
+++ b/flang/runtime/connection.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/connection.cpp ----------------------------------*- C++ -*-===//
+//===-- runtime/connection.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/edit-input.cpp b/flang/runtime/edit-input.cpp
index 06f5b4dd6b9d3..004c3ca35f05c 100644
--- a/flang/runtime/edit-input.cpp
+++ b/flang/runtime/edit-input.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/edit-input.cpp ----------------------------------*- C++ -*-===//
+//===-- runtime/edit-input.cpp --------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/edit-output.cpp b/flang/runtime/edit-output.cpp
index 38449671a1385..d9634b8399493 100644
--- a/flang/runtime/edit-output.cpp
+++ b/flang/runtime/edit-output.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/edit-output.cpp ---------------------------------*- C++ -*-===//
+//===-- runtime/edit-output.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/environment.cpp b/flang/runtime/environment.cpp
index 2b62e8a729a5d..badcbbca562f0 100644
--- a/flang/runtime/environment.cpp
+++ b/flang/runtime/environment.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/environment.cpp ---------------------------------*- C++ -*-===//
+//===-- runtime/environment.cpp -------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/file.cpp b/flang/runtime/file.cpp
index 98844a5bf3e8c..faf40518a3321 100644
--- a/flang/runtime/file.cpp
+++ b/flang/runtime/file.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/file.cpp ----------------------------------------*- C++ -*-===//
+//===-- runtime/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.

diff  --git a/flang/runtime/format.cpp b/flang/runtime/format.cpp
index e46cada81aa6c..f219c29aaed14 100644
--- a/flang/runtime/format.cpp
+++ b/flang/runtime/format.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/format.cpp --------------------------------------*- C++ -*-===//
+//===-- runtime/format.cpp ------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/internal-unit.cpp b/flang/runtime/internal-unit.cpp
index 9c29123f7ab97..0c1d696c35285 100644
--- a/flang/runtime/internal-unit.cpp
+++ b/flang/runtime/internal-unit.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/internal-unit.cpp -------------------------------*- C++ -*-===//
+//===-- runtime/internal-unit.cpp -----------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/io-api.cpp b/flang/runtime/io-api.cpp
index 8996b44669dda..d902bfea3e689 100644
--- a/flang/runtime/io-api.cpp
+++ b/flang/runtime/io-api.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/io-api.cpp --------------------------------------*- C++ -*-===//
+//===-- runtime/io-api.cpp ------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/io-error.cpp b/flang/runtime/io-error.cpp
index 19342c5aa427b..529a51c246435 100644
--- a/flang/runtime/io-error.cpp
+++ b/flang/runtime/io-error.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/io-error.cpp ------------------------------------*- C++ -*-===//
+//===-- runtime/io-error.cpp ----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/io-stmt.cpp b/flang/runtime/io-stmt.cpp
index cd4a6cc62cd58..edea5dc6ac662 100644
--- a/flang/runtime/io-stmt.cpp
+++ b/flang/runtime/io-stmt.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/io-stmt.cpp -------------------------------------*- C++ -*-===//
+//===-- runtime/io-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.

diff  --git a/flang/runtime/iostat.cpp b/flang/runtime/iostat.cpp
index 9fe6d22de85de..15a487765e6d5 100644
--- a/flang/runtime/iostat.cpp
+++ b/flang/runtime/iostat.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/iostat.cpp --------------------------------------*- C++ -*-===//
+//===-- runtime/iostat.cpp ------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/main.cpp b/flang/runtime/main.cpp
index d01a8bffc7f2a..bc3c044393103 100644
--- a/flang/runtime/main.cpp
+++ b/flang/runtime/main.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/main.cpp ----------------------------------------*- C++ -*-===//
+//===-- runtime/main.cpp --------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/memory.cpp b/flang/runtime/memory.cpp
index 21cd210308a2b..4fa599b748b8e 100644
--- a/flang/runtime/memory.cpp
+++ b/flang/runtime/memory.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/memory.cpp --------------------------------------*- C++ -*-===//
+//===-- runtime/memory.cpp ------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/namelist.cpp b/flang/runtime/namelist.cpp
index 4aee148cd1f30..42140c5d9502f 100644
--- a/flang/runtime/namelist.cpp
+++ b/flang/runtime/namelist.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/namelist.cpp ------------------------------------*- C++ -*-===//
+//===-- runtime/namelist.cpp ----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/numeric.cpp b/flang/runtime/numeric.cpp
index abdf03d6cd719..fa3cbb4e4f164 100644
--- a/flang/runtime/numeric.cpp
+++ b/flang/runtime/numeric.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/numeric.cpp -------------------------------------*- C++ -*-===//
+//===-- runtime/numeric.cpp -----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/stat.cpp b/flang/runtime/stat.cpp
index f02053ad1d86f..5fb68d23aa8b5 100644
--- a/flang/runtime/stat.cpp
+++ b/flang/runtime/stat.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/stat.cpp ----------------------------------------*- C++ -*-===//
+//===-- runtime/stat.cpp --------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/stop.cpp b/flang/runtime/stop.cpp
index d417f44d175fa..b448e2e7ccfa0 100644
--- a/flang/runtime/stop.cpp
+++ b/flang/runtime/stop.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/stop.cpp ----------------------------------------*- C++ -*-===//
+//===-- runtime/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.

diff  --git a/flang/runtime/terminator.cpp b/flang/runtime/terminator.cpp
index 24b61ea050345..f242ac6f2de22 100644
--- a/flang/runtime/terminator.cpp
+++ b/flang/runtime/terminator.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/terminate.cpp -----------------------------------*- C++ -*-===//
+//===-- runtime/terminate.cpp ---------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/tools.cpp b/flang/runtime/tools.cpp
index 07f38cdf3efa5..f281f134c0eb3 100644
--- a/flang/runtime/tools.cpp
+++ b/flang/runtime/tools.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/tools.cpp ---------------------------------------*- C++ -*-===//
+//===-- runtime/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.

diff  --git a/flang/runtime/unit-map.cpp b/flang/runtime/unit-map.cpp
index 2a7e414b3facc..497cef23d47c3 100644
--- a/flang/runtime/unit-map.cpp
+++ b/flang/runtime/unit-map.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/unit-map.cpp ------------------------------------*- C++ -*-===//
+//===-- runtime/unit-map.cpp ----------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

diff  --git a/flang/runtime/unit.cpp b/flang/runtime/unit.cpp
index c08b8b7b5330e..33eda31fbb45c 100644
--- a/flang/runtime/unit.cpp
+++ b/flang/runtime/unit.cpp
@@ -1,4 +1,4 @@
-//===-- runtime/unit.cpp ----------------------------------------*- C++ -*-===//
+//===-- runtime/unit.cpp --------------------------------------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.


        


More information about the flang-commits mailing list