From 763e1898b40599071168ea14599aabf580ba546c Mon Sep 17 00:00:00 2001 From: Lai-YT <381xvmvbib@gmail.com> Date: Sun, 10 Sep 2023 18:35:56 +0800 Subject: [PATCH] Separate header placement See also: https://api.csswg.org/bikeshed/?force=1&url=https://raw.githubusercontent.com/vector-of-bool/pitchfork/develop/data/spec.bs#src.header-placement.separate --- Makefile | 2 +- ast.hpp => include/ast.hpp | 0 scope.hpp => include/scope.hpp | 0 symbol.hpp => include/symbol.hpp | 0 type.hpp => include/type.hpp | 0 ast.cpp => src/ast.cpp | 0 symbol.cpp => src/symbol.cpp | 0 type.cpp => src/type.cpp | 0 8 files changed, 1 insertion(+), 1 deletion(-) rename ast.hpp => include/ast.hpp (100%) rename scope.hpp => include/scope.hpp (100%) rename symbol.hpp => include/symbol.hpp (100%) rename type.hpp => include/type.hpp (100%) rename ast.cpp => src/ast.cpp (100%) rename symbol.cpp => src/symbol.cpp (100%) rename type.cpp => src/type.cpp (100%) diff --git a/Makefile b/Makefile index 04d6c2ee..9a866aef 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ TARGET := vitaminc CXX := g++ CC = $(CXX) -CXXFLAGS = -g3 -std=c++14 -Wall -MMD +CXXFLAGS = -g3 -std=c++14 -Wall -MMD -Iinclude CFLAGS = $(CXXFLAGS) LEX = lex # C++ features are used, yacc doesn't suffice diff --git a/ast.hpp b/include/ast.hpp similarity index 100% rename from ast.hpp rename to include/ast.hpp diff --git a/scope.hpp b/include/scope.hpp similarity index 100% rename from scope.hpp rename to include/scope.hpp diff --git a/symbol.hpp b/include/symbol.hpp similarity index 100% rename from symbol.hpp rename to include/symbol.hpp diff --git a/type.hpp b/include/type.hpp similarity index 100% rename from type.hpp rename to include/type.hpp diff --git a/ast.cpp b/src/ast.cpp similarity index 100% rename from ast.cpp rename to src/ast.cpp diff --git a/symbol.cpp b/src/symbol.cpp similarity index 100% rename from symbol.cpp rename to src/symbol.cpp diff --git a/type.cpp b/src/type.cpp similarity index 100% rename from type.cpp rename to src/type.cpp