Change all .cpp suffix to .cxx suffix

follow the coding standard requirement

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2021-03-17 01:40:34 +08:00 committed by David Sidrane
parent 1673df81d1
commit 2f1ecbaf74
15 changed files with 16 additions and 17 deletions

View File

@ -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 $@

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 $@

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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 <gnutt@nuttx.org>

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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