From 5e37ec3aee97374230db612cee2556a7f3860aee Mon Sep 17 00:00:00 2001 From: hwangswan Date: Wed, 8 Mar 2023 08:59:13 +0700 Subject: [PATCH] .cpp to .cc for faster typing --- Makefile | 12 ++++++------ src/{CommandLineParser.cpp => CommandLineParser.cc} | 0 src/{Course.cpp => Course.cc} | 0 src/{Grade.cpp => Grade.cc} | 0 src/{InputHelper.cpp => InputHelper.cc} | 0 src/{OutputHelper.cpp => OutputHelper.cc} | 0 src/{PersonalExcept.cpp => PersonalExcept.cc} | 0 src/{PersonalFactory.cpp => PersonalFactory.cc} | 0 src/{PersonalGPA.cpp => PersonalGPA.cc} | 0 src/{PersonalSpecific.cpp => PersonalSpecific.cc} | 0 src/{Utility.cpp => Utility.cc} | 0 src/{main.cpp => main.cc} | 0 12 files changed, 6 insertions(+), 6 deletions(-) rename src/{CommandLineParser.cpp => CommandLineParser.cc} (100%) rename src/{Course.cpp => Course.cc} (100%) rename src/{Grade.cpp => Grade.cc} (100%) rename src/{InputHelper.cpp => InputHelper.cc} (100%) rename src/{OutputHelper.cpp => OutputHelper.cc} (100%) rename src/{PersonalExcept.cpp => PersonalExcept.cc} (100%) rename src/{PersonalFactory.cpp => PersonalFactory.cc} (100%) rename src/{PersonalGPA.cpp => PersonalGPA.cc} (100%) rename src/{PersonalSpecific.cpp => PersonalSpecific.cc} (100%) rename src/{Utility.cpp => Utility.cc} (100%) rename src/{main.cpp => main.cc} (100%) diff --git a/Makefile b/Makefile index 6980f39..9a40c42 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,8 @@ CXXFLAGS := -Wall -static -static-libgcc -static-libstdc++ -std=c++17 # For compiling SRC_DIR := src OBJ_DIR := obj -SRC_FILES := $(wildcard $(SRC_DIR)/*.cpp) -OBJ_FILES := $(patsubst $(SRC_DIR)/%.cpp, $(OBJ_DIR)/%.o, $(SRC_FILES)) +SRC_FILES := $(wildcard $(SRC_DIR)/*.cc) +OBJ_FILES := $(patsubst $(SRC_DIR)/%.cc, $(OBJ_DIR)/%.o, $(SRC_FILES)) EXECUTABLE_NAME := main # For testing @@ -15,14 +15,14 @@ TEST_DRIVER_ENGINE := perl TEST_PAYLOAD := cd $(TEST_DIR) && pwd && $(TEST_DRIVER_ENGINE) $(TEST_DRIVER) # For linting and format -LINT_PAYLOAD := find src/ -iname *.c -o -iname *.cpp -o -iname *.h | xargs clang-format --dry-run --Werror -style=file -FORMAT_PAYLOAD := find src/ -iname *.c -o -iname *.cpp -o -iname *.h | xargs clang-format -i -style=file +LINT_PAYLOAD := find src/ -iname *.c -o -iname *.cc -o -iname *.h | xargs clang-format --dry-run --Werror -style=file +FORMAT_PAYLOAD := find src/ -iname *.c -o -iname *.cc -o -iname *.h | xargs clang-format -i -style=file # For coverage COVERAGE_FILENAME := coverage.info COVERAGE_OUTPUT_DIR := coverage COVERAGE_INIT_PAYLOAD := lcov --capture --directory obj --output-file=$(COVERAGE_FILENAME) -COVERAGE_EXTRACT_PAYLOAD := lcov --extract $(COVERAGE_FILENAME) '*.cpp' -o $(COVERAGE_FILENAME) +COVERAGE_EXTRACT_PAYLOAD := lcov --extract $(COVERAGE_FILENAME) '*.cc' -o $(COVERAGE_FILENAME) COVERAGE_GENERATE_REPORT_PAYLOAD := genhtml $(COVERAGE_FILENAME) --output-directory=$(COVERAGE_OUTPUT_DIR) # For cleaning @@ -35,7 +35,7 @@ $(EXECUTABLE_NAME): $(OBJ_FILES) $(CXX) $(CXXFLAGS) -o $@ $^ # Compile to object files -$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp +$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cc @ mkdir -p $(OBJ_DIR) $(CXX) $(CXXFLAGS) -c -o $@ $< diff --git a/src/CommandLineParser.cpp b/src/CommandLineParser.cc similarity index 100% rename from src/CommandLineParser.cpp rename to src/CommandLineParser.cc diff --git a/src/Course.cpp b/src/Course.cc similarity index 100% rename from src/Course.cpp rename to src/Course.cc diff --git a/src/Grade.cpp b/src/Grade.cc similarity index 100% rename from src/Grade.cpp rename to src/Grade.cc diff --git a/src/InputHelper.cpp b/src/InputHelper.cc similarity index 100% rename from src/InputHelper.cpp rename to src/InputHelper.cc diff --git a/src/OutputHelper.cpp b/src/OutputHelper.cc similarity index 100% rename from src/OutputHelper.cpp rename to src/OutputHelper.cc diff --git a/src/PersonalExcept.cpp b/src/PersonalExcept.cc similarity index 100% rename from src/PersonalExcept.cpp rename to src/PersonalExcept.cc diff --git a/src/PersonalFactory.cpp b/src/PersonalFactory.cc similarity index 100% rename from src/PersonalFactory.cpp rename to src/PersonalFactory.cc diff --git a/src/PersonalGPA.cpp b/src/PersonalGPA.cc similarity index 100% rename from src/PersonalGPA.cpp rename to src/PersonalGPA.cc diff --git a/src/PersonalSpecific.cpp b/src/PersonalSpecific.cc similarity index 100% rename from src/PersonalSpecific.cpp rename to src/PersonalSpecific.cc diff --git a/src/Utility.cpp b/src/Utility.cc similarity index 100% rename from src/Utility.cpp rename to src/Utility.cc diff --git a/src/main.cpp b/src/main.cc similarity index 100% rename from src/main.cpp rename to src/main.cc