Remove license description 44/208144/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 19 Jun 2019 01:59:16 +0000 (10:59 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 19 Jun 2019 01:59:30 +0000 (10:59 +0900)
Change-Id: Idf225e8c6931b64124183463af536ee1cabbe48b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
21 files changed:
idlc/c_gen/c_gen_base.cc
idlc/c_gen/c_gen_base.h
idlc/c_gen/c_gen_base_cb.h
idlc/c_gen/c_proxy_body_gen.cc
idlc/c_gen/c_proxy_header_gen.cc
idlc/c_gen/c_stub_body_gen.cc
idlc/c_gen/c_stub_header_gen.cc
idlc/cpp_gen/cpp_gen_base.cc
idlc/cpp_gen/cpp_gen_base.h
idlc/cpp_gen/cpp_gen_base_cb.h
idlc/cpp_gen/cpp_proxy_body_gen.cc
idlc/cpp_gen/cpp_proxy_header_gen.cc
idlc/cpp_gen/cpp_stub_body_gen.cc
idlc/cpp_gen/cpp_stub_header_gen.cc
idlc/cs_gen/cs_cb_copyright.h [deleted file]
idlc/cs_gen/cs_cb_version.h [new file with mode: 0644]
idlc/cs_gen/cs_gen_base.cc
idlc/cs_gen/cs_gen_base.h
idlc/cs_gen/cs_lib_gen.cc
idlc/cs_gen/cs_proxy_gen.cc
idlc/cs_gen/cs_stub_gen.cc

index 4373c5658d459701b2b99c9e0781a1155e5b1af6..0b975f2832b180625117ec66ea8cc121fdb6b67b 100644 (file)
@@ -254,15 +254,10 @@ std::string CGeneratorBase::Trim(const std::string& str) {
   return str.substr(first, (last - first + 1));
 }
 
-void CGeneratorBase::GenLicenseDescription(std::ofstream& stream) {
-  GenTemplate(CB_COPYRIGHT, stream,
+void CGeneratorBase::GenVersion(std::ofstream& stream) {
+  GenTemplate(CB_VERSION, stream,
       [&]()->std::string {
         return FULLVER;
-      },
-      [&]()->std::string {
-        std::time_t t = std::time(NULL);
-        std::tm* local_time = std::localtime(&t);
-        return std::to_string(local_time->tm_year + 1900);
       });
 }
 
index 33d6c078829611b5e3fa63513df3ce05ff018e68..1bc2ae317c0f44757e2d5c27c485bc9b2dcaed96 100644 (file)
@@ -51,7 +51,7 @@ class CGeneratorBase : public Generator {
     return structures_;
   }
 
-  void GenLicenseDescription(std::ofstream& stream);
+  void GenVersion(std::ofstream& stream);
   void GenIncludeDefaultHeaders(std::ofstream& stream, bool body = true);
   void GenGNUSourceDefinition(std::ofstream& stream);
   std::string GetStructIdWithNamespace(const Structure& st);
index 91449ab47fa912d6217f5f9efefe69a8254331c2..5af4d6648a3fd71270b162c3071002eb348a3e87 100644 (file)
 #ifndef IDLC_C_GEN_C_GEN_BASE_CB_H_
 #define IDLC_C_GEN_C_GEN_BASE_CB_H_
 
-const char CB_COPYRIGHT[] =
+const char CB_VERSION[] =
 R"__c_cb(/*
  * Generated by tidlc $$.
- *
- * Copyright (c) $$ Samsung Electronics Co., Ltd.
- *
- * 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.
  */
 )__c_cb";
 
index 85c7f1196c4ac3bc5677fad7d21b794fcf31d703..39683d4cb3592765939a81150634882faa7d87de 100644 (file)
@@ -26,7 +26,7 @@ CProxyBodyGen::CProxyBodyGen(std::shared_ptr<Document> doc)
     : CBodyGeneratorBase(doc) {}
 
 void CProxyBodyGen::OnInitGen(std::ofstream& stream) {
-  GenLicenseDescription(stream);
+  GenVersion(stream);
   GenGNUSourceDefinition(stream);
   GenIncludeDefaultHeaders(stream);
   GenIncludeHeader(stream);
index 0ca669c56dfc91ca9194600065c78ea3bf2d9bc0..e9eac53671807af0c6ee638636a56f67a7145ddc 100644 (file)
@@ -26,7 +26,7 @@ CProxyHeaderGen::CProxyHeaderGen(std::shared_ptr<Document> doc)
     : CHeaderGeneratorBase(doc) {}
 
 void CProxyHeaderGen::OnInitGen(std::ofstream& stream) {
-  GenLicenseDescription(stream);
+  GenVersion(stream);
   GenPragmaOnce(stream);
   GenIncludeDefaultHeaders(stream, false);
   GenExplicitLinkageOpen(stream);
index 19b5203ee4186cde2dd89634fdbd2f4075175c65..bfa6095eee9377e75dc6d7fccbfc8ef0fa86ca0a 100644 (file)
@@ -26,7 +26,7 @@ CStubBodyGen::CStubBodyGen(std::shared_ptr<Document> doc)
     : CBodyGeneratorBase(doc) {}
 
 void CStubBodyGen::OnInitGen(std::ofstream& stream) {
-  GenLicenseDescription(stream);
+  GenVersion(stream);
   GenGNUSourceDefinition(stream);
   GenIncludeDefaultHeaders(stream);
   GenIncludeHeader(stream);
index 6755549454d29721ddd1d54cee475d0d7a5e2483..1936606f7e8516c2813c5f50ee9b397c2f1d210f 100644 (file)
@@ -26,7 +26,7 @@ CStubHeaderGen::CStubHeaderGen(std::shared_ptr<Document> doc)
     : CHeaderGeneratorBase(doc) {}
 
 void CStubHeaderGen::OnInitGen(std::ofstream& stream) {
-  GenLicenseDescription(stream);
+  GenVersion(stream);
   GenPragmaOnce(stream);
   GenIncludeDefaultHeaders(stream, false);
   GenExplicitLinkageOpen(stream);
index 20c69d07545d891ea1ac09db3e5f0fb0cd3df65e..5a08130314f98cfdc1fa275d082d0baa6bfbfe90 100644 (file)
@@ -682,15 +682,10 @@ void CppGeneratorBase::GenHeaderCallback(std::ofstream& stream,
       });
 }
 
-void CppGeneratorBase::GenCopyright(std::ofstream& stream) {
-  GenTemplate(CB_COPYRIGHT, stream,
+void CppGeneratorBase::GenVersion(std::ofstream& stream) {
+  GenTemplate(CB_VERSION, stream,
     [&]()->std::string {
       return FULLVER;
-    },
-    [&]()->std::string {
-      std::time_t t = std::time(NULL);
-      std::tm* local_time = std::localtime(&t);
-      return std::to_string(local_time->tm_year + 1900);
     });
 }
 
index 4224b0fd7f83cd20f55998a4a6df828105b9176a..c59e6bc1500e93fe8327917353b23dff5e45c7ab 100644 (file)
@@ -32,7 +32,7 @@ class CppGeneratorBase : public Generator {
   explicit CppGeneratorBase(std::shared_ptr<Document> doc);
   virtual ~CppGeneratorBase() = default;
 
-  void GenCopyright(std::ofstream& stream);
+  void GenVersion(std::ofstream& stream);
   void GenStructuresForHeader(std::ofstream& stream);
   void GenStructuresForBody(std::ofstream& stream);
   void GenSerializer(std::ofstream& stream);
index dccfe377b0f1dfe5c7dccbb5c3c06f9286e53fba..56216c43d963067953ac268729c3d528d181d364 100644 (file)
@@ -101,23 +101,9 @@ rpc_port_parcel_h operator >> (rpc_port_parcel_h h, ##::CallbackBase& cb) {
 }
 )__cpp_cb";
 
-const char CB_COPYRIGHT[] =
+const char CB_VERSION[] =
 R"__cpp_cb(/*
  * Generated by tidlc $$.
- *
- * Copyright (c) $$ Samsung Electronics Co., Ltd.
- *
- * 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.
  */
 )__cpp_cb";
 
index 9338d0fb10a6ef3c34d1e0f14c99ce1aac1c82fe..0fe8607fcff9636292f8e8b59b117a8cff832dac 100644 (file)
@@ -33,7 +33,7 @@ void CppProxyBodyGen::OnInitGen(std::ofstream& stream) {
   if (found != std::string::npos)
     header_file.replace(found, key.length(), ".h");
 
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << NLine(1);
   stream << "#include <stdlib.h>" << NLine(1)
          << "#include <assert.h>" << NLine(1)
index 91a2b184155a1e1d75ea08e2b9b366835a9b6263..153cbeb227fc0499dc051d72eb216fd72cd88585 100644 (file)
@@ -26,7 +26,7 @@ CppProxyHeaderGen::CppProxyHeaderGen(std::shared_ptr<Document> doc)
     : CppGeneratorBase(doc) {}
 
 void CppProxyHeaderGen::OnInitGen(std::ofstream& stream) {
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << CB_HEADER;
   GenNamespace(stream);
 }
index b287f282f3123a3fa34eaf255bd5f0004763844e..f564f9e92741b368f5f261d3ca5445ef250b758d 100644 (file)
@@ -33,7 +33,7 @@ void CppStubBodyGen::OnInitGen(std::ofstream& stream) {
   if (found != std::string::npos)
     header_file.replace(found, key.length(), ".h");
 
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << NLine(1);
   stream << "#include <stdlib.h>" << NLine(1)
          << "#include <assert.h>" << NLine(1)
index c2d4d4f1d3c9599c8c16dd43a213307e13bb8478..a4e591b5e742dd87b486675f280860241dac11f1 100644 (file)
@@ -26,7 +26,7 @@ CppStubHeaderGen::CppStubHeaderGen(std::shared_ptr<Document> doc)
     : CppGeneratorBase(doc) {}
 
 void CppStubHeaderGen::OnInitGen(std::ofstream& stream) {
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << CB_HEADER;
   GenNamespace(stream);
 }
diff --git a/idlc/cs_gen/cs_cb_copyright.h b/idlc/cs_gen/cs_cb_copyright.h
deleted file mode 100644 (file)
index 7982f9a..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
- *
- * 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 IDLC_CS_GEN_CS_CB_COPYRIGHT_H_
-#define IDLC_CS_GEN_CS_CB_COPYRIGHT_H_
-
-const char cs_cb_copyright[] =
-R"__cs_cb(/*
- * Generated by tidlc $$.
- *
- * Copyright (c) $$ Samsung Electronics Co., Ltd.
- *
- * 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.
- */
-)__cs_cb";
-
-#endif  // IDLC_CS_GEN_CS_CB_COPYRIGHT_H_
diff --git a/idlc/cs_gen/cs_cb_version.h b/idlc/cs_gen/cs_cb_version.h
new file mode 100644 (file)
index 0000000..c0102a4
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ *
+ * 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 IDLC_CS_GEN_CS_CB_VERSION_H_
+#define IDLC_CS_GEN_CS_CB_VERSION_H_
+
+const char cs_cb_version[] =
+R"__cs_cb(/*
+ * Generated by tidlc $$.
+ */
+)__cs_cb";
+
+#endif  // IDLC_CS_GEN_CS_CB_VERSION_H_
index a9d8c1c9986f4f50395d1ed32ac15d2afd302d24..d1f7b6586cb4b3cdd014cb00e1058d7be2c6dab5 100644 (file)
@@ -20,7 +20,7 @@
 #include "idlc/cs_gen/cs_gen_base.h"
 
 namespace {
-#include "idlc/cs_gen/cs_cb_copyright.h"
+#include "idlc/cs_gen/cs_cb_version.h"
 #include "idlc/cs_gen/cs_gen_base_cb.h"
 #include "idlc/cs_gen/cs_cb_rpc_port.h"
 }
@@ -497,15 +497,10 @@ void CsGeneratorBase::GenInvokeMethod(std::ofstream& stream,
       });
 }
 
-void CsGeneratorBase::GenCopyright(std::ofstream& stream) {
-  GenTemplate(::cs_cb_copyright, stream,
+void CsGeneratorBase::GenVersion(std::ofstream& stream) {
+  GenTemplate(::cs_cb_version, stream,
     [&]()->std::string {
       return FULLVER;
-    },
-    [&]()->std::string {
-      std::time_t t = std::time(NULL);
-      std::tm* local_time = std::localtime(&t);
-      return std::to_string(local_time->tm_year + 1900);
     });
   stream << NLine(1);
 }
index 7ee0d59f30c59a27cb8e340154dde4dea68efff2..cbc35c93da51fde76c39998679ab250def6859a3 100644 (file)
@@ -32,7 +32,7 @@ class CsGeneratorBase : public Generator {
   explicit CsGeneratorBase(std::shared_ptr<Document> doc);
   virtual ~CsGeneratorBase() = default;
 
-  void GenCopyright(std::ofstream& stream);
+  void GenVersion(std::ofstream& stream);
   void GenStructures(std::ofstream& stream);
   void GenStructure(std::ofstream& stream, const Structure& st);
   void GenSerializer(std::ofstream& stream);
index 9cc5d29e756d4ea52b88d3d3186e434936ea7588..8f2eba0e1fa1fe14503dd0d5643ede95e8042620 100644 (file)
@@ -27,7 +27,7 @@ CsLibGen::CsLibGen(std::shared_ptr<Document> doc)
     : CsGeneratorBase(doc) {}
 
 void CsLibGen::OnInitGen(std::ofstream& stream) {
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << "using System;" << NLine(1)
          << "using System.Collections.Generic;" << NLine(1)
          << "using System.Runtime.InteropServices;" << NLine(1)
index 890486cfe5a84df566f4c711b3277461fc886ff3..23e24f3185805dc99cc0d7e4b8f356a7ea1fc587 100644 (file)
@@ -26,7 +26,7 @@ CsProxyGen::CsProxyGen(std::shared_ptr<Document> doc)
     : CsGeneratorBase(doc) {}
 
 void CsProxyGen::OnInitGen(std::ofstream& stream) {
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << "using System;" << NLine(1)
          << "using System.Collections.Generic;" << NLine(1)
          << "using System.Threading;" << NLine(1)
index 8e84284370c41c0f5eaa04e3b6a175e03b3466eb..e11800de1e1b6a41f85a56b68c5332cf65956987 100644 (file)
@@ -26,7 +26,7 @@ CsStubGen::CsStubGen(std::shared_ptr<Document> doc)
     : CsGeneratorBase(doc) {}
 
 void CsStubGen::OnInitGen(std::ofstream& stream) {
-  GenCopyright(stream);
+  GenVersion(stream);
   stream << "using System;" << NLine(1)
          << "using System.Collections.Generic;" << NLine(1)
          << "using Tizen.Applications;" << NLine(1)