You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by da...@apache.org on 2021/03/16 20:59:42 UTC
[incubator-nuttx-apps] branch master updated: Change all .cpp
suffix to .cxx suffix
This is an automated email from the ASF dual-hosted git repository.
davids5 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 2f1ecba Change all .cpp suffix to .cxx suffix
2f1ecba is described below
commit 2f1ecbaf74542923950d1b76dd2ea7b6aed1d8f7
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Wed Mar 17 01:40:34 2021 +0800
Change all .cpp suffix to .cxx suffix
follow the coding standard requirement
Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
examples/elf/tests/helloxx/Makefile | 2 +-
examples/elf/tests/helloxx/{hello++1.cpp => hello++1.cxx} | 2 +-
examples/elf/tests/helloxx/{hello++2.cpp => hello++2.cxx} | 2 +-
examples/elf/tests/helloxx/{hello++3.cpp => hello++3.cxx} | 2 +-
examples/elf/tests/helloxx/{hello++4.cpp => hello++4.cxx} | 2 +-
examples/elf/tests/helloxx/{hello++5.cpp => hello++5.cxx} | 2 +-
examples/nxflat/tests/hello++/Makefile | 2 +-
examples/nxflat/tests/hello++/{hello++1.cpp => hello++1.cxx} | 2 +-
examples/nxflat/tests/hello++/{hello++2.cpp => hello++2.cxx} | 2 +-
examples/nxflat/tests/hello++/{hello++3.cpp => hello++3.cxx} | 2 +-
examples/nxflat/tests/hello++/{hello++4.cpp => hello++4.cxx} | 2 +-
testing/irtest/Makefile | 5 ++---
testing/irtest/{cmd.cpp => cmd.cxx} | 2 +-
testing/irtest/{enum.cpp => enum.cxx} | 2 +-
testing/irtest/{main.cpp => main.cxx} | 2 +-
15 files changed, 16 insertions(+), 17 deletions(-)
diff --git a/examples/elf/tests/helloxx/Makefile b/examples/elf/tests/helloxx/Makefile
index d32ebe8..ab9e3ee 100644
--- a/examples/elf/tests/helloxx/Makefile
+++ b/examples/elf/tests/helloxx/Makefile
@@ -94,7 +94,7 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a
all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) $(BIN5)
.PHONY: all clean install
-$(OBJS): %$(OBJEXT): %.cpp
+$(OBJS): %$(OBJEXT): %.cxx
@echo "CC: $<"
$(Q) $(CXX) -c $(CXXELFFLAGS) $< -o $@
diff --git a/examples/elf/tests/helloxx/hello++1.cpp b/examples/elf/tests/helloxx/hello++1.cxx
similarity index 98%
rename from examples/elf/tests/helloxx/hello++1.cpp
rename to examples/elf/tests/helloxx/hello++1.cxx
index 9ab9d4d..e3ffd99 100644
--- a/examples/elf/tests/helloxx/hello++1.cpp
+++ b/examples/elf/tests/helloxx/hello++1.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++1.c
+// apps/examples/elf/tests/helloxx/hello++1.cxx
//
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/elf/tests/helloxx/hello++2.cpp b/examples/elf/tests/helloxx/hello++2.cxx
similarity index 98%
rename from examples/elf/tests/helloxx/hello++2.cpp
rename to examples/elf/tests/helloxx/hello++2.cxx
index b148989..c475830 100644
--- a/examples/elf/tests/helloxx/hello++2.cpp
+++ b/examples/elf/tests/helloxx/hello++2.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++2.c
+// apps/examples/elf/tests/helloxx/hello++2.cxx
//
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/elf/tests/helloxx/hello++3.cpp b/examples/elf/tests/helloxx/hello++3.cxx
similarity index 98%
rename from examples/elf/tests/helloxx/hello++3.cpp
rename to examples/elf/tests/helloxx/hello++3.cxx
index b59774c..e21358a 100644
--- a/examples/elf/tests/helloxx/hello++3.cpp
+++ b/examples/elf/tests/helloxx/hello++3.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++3.c
+// apps/examples/elf/tests/helloxx/hello++3.cxx
//
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/elf/tests/helloxx/hello++4.cpp b/examples/elf/tests/helloxx/hello++4.cxx
similarity index 99%
rename from examples/elf/tests/helloxx/hello++4.cpp
rename to examples/elf/tests/helloxx/hello++4.cxx
index 7db2564..eb6c0e3 100644
--- a/examples/elf/tests/helloxx/hello++4.cpp
+++ b/examples/elf/tests/helloxx/hello++4.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++4.c
+// apps/examples/elf/tests/helloxx/hello++4.cxx
//
// Copyright (C) 2012 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/elf/tests/helloxx/hello++5.cpp b/examples/elf/tests/helloxx/hello++5.cxx
similarity index 99%
rename from examples/elf/tests/helloxx/hello++5.cpp
rename to examples/elf/tests/helloxx/hello++5.cxx
index db6cd69..31e9117 100644
--- a/examples/elf/tests/helloxx/hello++5.cpp
+++ b/examples/elf/tests/helloxx/hello++5.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/elf/tests/helloxx/hello++5.c
+// apps/examples/elf/tests/helloxx/hello++5.cxx
//
// Copyright (C) 2015 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/nxflat/tests/hello++/Makefile b/examples/nxflat/tests/hello++/Makefile
index 2cbc616..0a0fec2 100644
--- a/examples/nxflat/tests/hello++/Makefile
+++ b/examples/nxflat/tests/hello++/Makefile
@@ -70,7 +70,7 @@ LIBSTDC_STUBS_LIB = $(LIBSTDC_STUBS_DIR)/liblibxx.a
all: $(BIN1) $(BIN2) $(BIN3) # $(BIN4)
-$(R1CXXOBJS): %.o: %.cpp
+$(R1CXXOBJS): %.o: %.cxx
@echo "CC: $<"
$(Q) $(CXX) -c $(CXXPICFLAGS) $< -o $@
diff --git a/examples/nxflat/tests/hello++/hello++1.cpp b/examples/nxflat/tests/hello++/hello++1.cxx
similarity index 98%
rename from examples/nxflat/tests/hello++/hello++1.cpp
rename to examples/nxflat/tests/hello++/hello++1.cxx
index 850c2fd..983970c 100644
--- a/examples/nxflat/tests/hello++/hello++1.cpp
+++ b/examples/nxflat/tests/hello++/hello++1.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/nxflat/tests/hello++/hello++1.c
+// apps/examples/nxflat/tests/hello++/hello++1.cxx
//
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/nxflat/tests/hello++/hello++2.cpp b/examples/nxflat/tests/hello++/hello++2.cxx
similarity index 98%
rename from examples/nxflat/tests/hello++/hello++2.cpp
rename to examples/nxflat/tests/hello++/hello++2.cxx
index b386ba4..420764b 100644
--- a/examples/nxflat/tests/hello++/hello++2.cpp
+++ b/examples/nxflat/tests/hello++/hello++2.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/nxflat/tests/hello++/hello++2.c
+// apps/examples/nxflat/tests/hello++/hello++2.cxx
//
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/nxflat/tests/hello++/hello++3.cpp b/examples/nxflat/tests/hello++/hello++3.cxx
similarity index 98%
rename from examples/nxflat/tests/hello++/hello++3.cpp
rename to examples/nxflat/tests/hello++/hello++3.cxx
index 3741eec..5849d29 100644
--- a/examples/nxflat/tests/hello++/hello++3.cpp
+++ b/examples/nxflat/tests/hello++/hello++3.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/nxflat/tests/hello++/hello++3.c
+// apps/examples/nxflat/tests/hello++/hello++3.cxx
//
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/examples/nxflat/tests/hello++/hello++4.cpp b/examples/nxflat/tests/hello++/hello++4.cxx
similarity index 99%
rename from examples/nxflat/tests/hello++/hello++4.cpp
rename to examples/nxflat/tests/hello++/hello++4.cxx
index ac71838..35fb520 100644
--- a/examples/nxflat/tests/hello++/hello++4.cpp
+++ b/examples/nxflat/tests/hello++/hello++4.cxx
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////////////////////
-// examples/nxflat/tests/hello++/hello++4.c
+// apps/examples/nxflat/tests/hello++/hello++4.cxx
//
// Copyright (C) 2009 Gregory Nutt. All rights reserved.
// Author: Gregory Nutt <gn...@nuttx.org>
diff --git a/testing/irtest/Makefile b/testing/irtest/Makefile
index 0307f4a..4a85180 100644
--- a/testing/irtest/Makefile
+++ b/testing/irtest/Makefile
@@ -25,8 +25,7 @@ PRIORITY = $(CONFIG_TESTING_IRTEST_PRIORITY)
STACKSIZE = $(CONFIG_TESTING_IRTEST_STACKSIZE)
MODULE = $(CONFIG_TESTING_IRTEST)
-CXXEXT = .cpp
-MAINSRC = main.cpp
-CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.cpp))
+MAINSRC = main.cxx
+CXXSRCS = $(filter-out $(MAINSRC), $(wildcard *.cxx))
include $(APPDIR)/Application.mk
diff --git a/testing/irtest/cmd.cpp b/testing/irtest/cmd.cxx
similarity index 99%
rename from testing/irtest/cmd.cpp
rename to testing/irtest/cmd.cxx
index 7a5686a..99bb493 100644
--- a/testing/irtest/cmd.cpp
+++ b/testing/irtest/cmd.cxx
@@ -1,5 +1,5 @@
/****************************************************************************
- * testing/irtest/cmd.cpp
+ * apps/testing/irtest/cmd.cxx
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
diff --git a/testing/irtest/enum.cpp b/testing/irtest/enum.cxx
similarity index 98%
rename from testing/irtest/enum.cpp
rename to testing/irtest/enum.cxx
index 8c805e6..dcc5305 100644
--- a/testing/irtest/enum.cpp
+++ b/testing/irtest/enum.cxx
@@ -1,5 +1,5 @@
/****************************************************************************
- * testing/irtest/enum.cpp
+ * apps/testing/irtest/enum.cxx
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
diff --git a/testing/irtest/main.cpp b/testing/irtest/main.cxx
similarity index 98%
rename from testing/irtest/main.cpp
rename to testing/irtest/main.cxx
index d6c26bb..18351af 100644
--- a/testing/irtest/main.cpp
+++ b/testing/irtest/main.cxx
@@ -1,5 +1,5 @@
/****************************************************************************
- * testing/irtest/main.cpp
+ * apps/testing/irtest/main.cxx
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with