Skip to content

Commit b3ca90f

Browse files
committed
Set up 2025 in C++
1 parent 7a4bb43 commit b3ca90f

File tree

12 files changed

+71
-0
lines changed

12 files changed

+71
-0
lines changed

2025/.autoenv.zsh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
local wrapper_cmd=${0:h}/make_wrapper.sh
2+
if [[ $autoenv_event == 'enter' ]]; then
3+
alias workon=${0:h}/workon
4+
alias aoc=${0:h}/aoc
5+
alias iwyu=${0:h}/iwyu
6+
alias profile=${0:h}/profile.sh
7+
alias run_answer_tests=${0:h}/run_answer_tests.sh
8+
alias benchmark=${0:h}/benchmark
9+
alias make="$wrapper_cmd -f ${(q)0:h}/Makefile"
10+
compdef "$wrapper_cmd"=make
11+
else
12+
unalias workon aoc iwyu profile make run_answer_tests benchmark
13+
# remove completion definition
14+
unset "_comps[$wrapper_cmd]"
15+
unset "_services[$wrapper_cmd]"
16+
fi

2025/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/Makefile

2025/aoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/aoc

2025/benchmark

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/benchmark

2025/check_times.zsh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/check_times.zsh

2025/iwyu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/iwyu

2025/make_wrapper.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/make_wrapper.sh

2025/profile.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/cpp/profile.sh

2025/run_answer_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../tools/run_answer_tests.sh

2025/templates/day.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/******************************************************************************
2+
* File: day{{DAY}}.cpp
3+
*
4+
* Author: Eric T. Johnson (yut23)
5+
* Created: {{DATE}}
6+
*****************************************************************************/
7+
8+
#include "day{{DAY}}.hpp"
9+
#include "lib.hpp"
10+
#include <fstream> // for ifstream
11+
#include <iostream> // for cout
12+
13+
int main(int argc, char **argv) {
14+
std::ifstream infile = aoc::parse_args(argc, argv).infile;
15+
16+
auto data = aoc::day{{DAY}}::read_input(infile);
17+
18+
return 0;
19+
}

0 commit comments

Comments
 (0)