├── README.md ├── basics └── exercises │ └── swap │ ├── CMakeLists.txt │ └── swap.cpp ├── cgal └── exercises │ ├── convex_hull.cpp │ ├── convex_hull.dat │ ├── triangle_mesh_rasterize_1.dat │ ├── triangulation_output_1.dat │ ├── triangulation_statistics_1.dat │ └── triangulation_statistics_2.dat ├── cmake ├── examples │ ├── assert │ │ ├── CMakeLists.txt │ │ └── assert.cpp │ ├── boost_1 │ │ ├── CMakeLists.txt │ │ ├── month_later.cpp │ │ └── time.cpp │ ├── hello │ │ ├── CMakeLists.txt │ │ └── hello.cpp │ ├── libfoo │ │ ├── CMakeLists.txt │ │ ├── app │ │ │ └── demo.cpp │ │ ├── include │ │ │ └── foo │ │ │ │ ├── gadget.hpp │ │ │ │ ├── other.hpp │ │ │ │ └── widget.hpp │ │ └── lib │ │ │ ├── gadget.cpp │ │ │ └── widget.cpp │ ├── multilingual_hello │ │ ├── CMakeLists.txt │ │ ├── README │ │ ├── hello.c │ │ ├── hello.cpp │ │ ├── hello.f │ │ └── hello.java │ └── simple │ │ ├── CMakeLists.txt │ │ ├── app.cpp │ │ └── util.hpp └── exercises │ ├── assertions │ └── assert_false.cpp │ ├── basic │ ├── math.cpp │ ├── math.hpp │ ├── sinc.cpp │ └── unit_step.cpp │ ├── boost_timer │ ├── fibonacci.cpp │ ├── fibonacci.hpp │ └── timer.cpp │ ├── buggy │ └── buggy.cpp │ ├── cgal_in_circle │ ├── in_circle.cpp │ ├── in_sphere.cpp │ ├── utility.cpp │ └── utility.hpp │ ├── coverage │ ├── CodeCoverage.cmake │ ├── random.cpp │ └── run_tests │ ├── fibonacci │ ├── fibonacci.cpp │ ├── fibonacci.hpp │ └── main.cpp │ ├── hello │ └── hello.cpp │ ├── hg2g │ ├── include │ │ └── hg2g │ │ │ └── hg2g.hpp │ ├── lib │ │ ├── answer.cpp │ │ └── question.cpp │ └── src │ │ └── answer.cpp │ ├── sanitizers │ ├── asan_fail.cpp │ └── ubsan_fail.cpp │ └── spl │ └── demo.cpp ├── lcov └── examples │ └── bqueue │ ├── CMakeLists.txt │ ├── CodeCoverage.cmake │ ├── bqueue.hpp │ └── test_bqueue.cpp ├── miscellany ├── buggy │ ├── CMakeLists.txt │ └── app.cpp ├── data_race │ ├── CMakeLists.txt │ └── app.cpp ├── deadlock │ ├── CMakeLists.txt │ └── app.cpp └── factorial │ ├── CMakeLists.txt │ └── factorial.cpp ├── slides ├── catch2 │ ├── CMakeLists.txt │ ├── benchmark_fibonacci.cpp │ ├── bubble_sort.hpp │ ├── counter.hpp │ ├── fibonacci.hpp │ ├── fixture.cpp │ ├── section.cpp │ ├── stack.hpp │ ├── test_bubble_sort.cpp │ ├── test_counter.cpp │ ├── test_math.cpp │ └── test_stack.cpp ├── clang_tidy │ ├── CMakeLists.txt │ ├── app.cpp │ └── lib.cpp ├── helgrind │ ├── CMakeLists.txt │ ├── clipboard.txt │ ├── data_race_1_0.cpp │ └── data_race_1_1.cpp ├── lcov │ ├── CMakeLists.txt │ ├── CodeCoverage.cmake │ ├── app.cpp │ ├── run_tests │ ├── signum.cpp │ └── utility.hpp ├── modules │ ├── Makefile │ ├── export_1 │ │ ├── CMakeLists.txt │ │ ├── hg2g-m.cpp │ │ └── main.cpp │ ├── greet_1 │ │ ├── CMakeLists.txt │ │ ├── greet.cpp │ │ └── greetings.cpp │ ├── greet_2 │ │ ├── CMakeLists.txt │ │ ├── greet.cpp │ │ ├── greetings-m.cpp │ │ └── greetings.cpp │ ├── greet_3 │ │ ├── CMakeLists.txt │ │ ├── greet.cpp │ │ ├── greetings-m.cpp │ │ ├── greetings_en.cpp │ │ └── greetings_fr.cpp │ ├── linkage_1 │ │ ├── CMakeLists.txt │ │ ├── main.cpp │ │ ├── sol-m.cpp │ │ └── sol.cpp │ ├── math_1 │ │ ├── CMakeLists.txt │ │ ├── app.cpp │ │ └── math-m.cpp │ ├── math_2 │ │ ├── CMakeLists.txt │ │ ├── app.cpp │ │ ├── math-m.cpp │ │ └── math.cpp │ └── reachability_2 │ │ ├── CMakeLists.txt │ │ ├── main.cpp │ │ └── zeus-m.cpp └── tsan │ ├── CMakeLists.txt │ ├── clipboard.txt │ ├── data_race.cpp │ ├── data_race_1.cpp │ ├── data_race_2.cpp │ └── deadlock.cpp ├── vim_lsp └── examples │ └── example_1 │ ├── CMakeLists.txt │ ├── app │ └── main.cpp │ ├── util │ ├── util.cpp │ └── util.hpp │ ├── vimlsp.vim │ └── vimrc └── ycm └── examples └── example_1 ├── CMakeLists.txt ├── app.cpp ├── util.hpp ├── vimrc └── ycm.vim /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/README.md -------------------------------------------------------------------------------- /basics/exercises/swap/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/basics/exercises/swap/CMakeLists.txt -------------------------------------------------------------------------------- /basics/exercises/swap/swap.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/basics/exercises/swap/swap.cpp -------------------------------------------------------------------------------- /cgal/exercises/convex_hull.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/convex_hull.cpp -------------------------------------------------------------------------------- /cgal/exercises/convex_hull.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/convex_hull.dat -------------------------------------------------------------------------------- /cgal/exercises/triangle_mesh_rasterize_1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/triangle_mesh_rasterize_1.dat -------------------------------------------------------------------------------- /cgal/exercises/triangulation_output_1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/triangulation_output_1.dat -------------------------------------------------------------------------------- /cgal/exercises/triangulation_statistics_1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/triangulation_statistics_1.dat -------------------------------------------------------------------------------- /cgal/exercises/triangulation_statistics_2.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cgal/exercises/triangulation_statistics_2.dat -------------------------------------------------------------------------------- /cmake/examples/assert/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/assert/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/assert/assert.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/assert/assert.cpp -------------------------------------------------------------------------------- /cmake/examples/boost_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/boost_1/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/boost_1/month_later.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/boost_1/month_later.cpp -------------------------------------------------------------------------------- /cmake/examples/boost_1/time.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/boost_1/time.cpp -------------------------------------------------------------------------------- /cmake/examples/hello/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/hello/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/hello/hello.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/hello/hello.cpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/libfoo/app/demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/app/demo.cpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/include/foo/gadget.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/include/foo/gadget.hpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/include/foo/other.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/include/foo/other.hpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/include/foo/widget.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/include/foo/widget.hpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/lib/gadget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/lib/gadget.cpp -------------------------------------------------------------------------------- /cmake/examples/libfoo/lib/widget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/libfoo/lib/widget.cpp -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/multilingual_hello/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/multilingual_hello/README -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/hello.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() 4 | { 5 | printf("Hello, World!\n"); 6 | } 7 | -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() 4 | { 5 | std::cout << "Hello, World!\n"; 6 | } 7 | -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/hello.f: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/multilingual_hello/hello.f -------------------------------------------------------------------------------- /cmake/examples/multilingual_hello/hello.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/multilingual_hello/hello.java -------------------------------------------------------------------------------- /cmake/examples/simple/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/simple/CMakeLists.txt -------------------------------------------------------------------------------- /cmake/examples/simple/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/examples/simple/app.cpp -------------------------------------------------------------------------------- /cmake/examples/simple/util.hpp: -------------------------------------------------------------------------------- 1 | template 2 | inline T square(const T& x) 3 | { 4 | return x * x; 5 | } 6 | -------------------------------------------------------------------------------- /cmake/exercises/assertions/assert_false.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/assertions/assert_false.cpp -------------------------------------------------------------------------------- /cmake/exercises/basic/math.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/basic/math.cpp -------------------------------------------------------------------------------- /cmake/exercises/basic/math.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/basic/math.hpp -------------------------------------------------------------------------------- /cmake/exercises/basic/sinc.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/basic/sinc.cpp -------------------------------------------------------------------------------- /cmake/exercises/basic/unit_step.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/basic/unit_step.cpp -------------------------------------------------------------------------------- /cmake/exercises/boost_timer/fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/boost_timer/fibonacci.cpp -------------------------------------------------------------------------------- /cmake/exercises/boost_timer/fibonacci.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/boost_timer/fibonacci.hpp -------------------------------------------------------------------------------- /cmake/exercises/boost_timer/timer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/boost_timer/timer.cpp -------------------------------------------------------------------------------- /cmake/exercises/buggy/buggy.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/buggy/buggy.cpp -------------------------------------------------------------------------------- /cmake/exercises/cgal_in_circle/in_circle.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/cgal_in_circle/in_circle.cpp -------------------------------------------------------------------------------- /cmake/exercises/cgal_in_circle/in_sphere.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/cgal_in_circle/in_sphere.cpp -------------------------------------------------------------------------------- /cmake/exercises/cgal_in_circle/utility.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/cgal_in_circle/utility.cpp -------------------------------------------------------------------------------- /cmake/exercises/cgal_in_circle/utility.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/cgal_in_circle/utility.hpp -------------------------------------------------------------------------------- /cmake/exercises/coverage/CodeCoverage.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/coverage/CodeCoverage.cmake -------------------------------------------------------------------------------- /cmake/exercises/coverage/random.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/coverage/random.cpp -------------------------------------------------------------------------------- /cmake/exercises/coverage/run_tests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/coverage/run_tests -------------------------------------------------------------------------------- /cmake/exercises/fibonacci/fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/fibonacci/fibonacci.cpp -------------------------------------------------------------------------------- /cmake/exercises/fibonacci/fibonacci.hpp: -------------------------------------------------------------------------------- 1 | int fibonacci(int n); 2 | -------------------------------------------------------------------------------- /cmake/exercises/fibonacci/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/fibonacci/main.cpp -------------------------------------------------------------------------------- /cmake/exercises/hello/hello.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | int main() 4 | { 5 | std::cout << "Hello, World!\n"; 6 | return 0; 7 | } 8 | -------------------------------------------------------------------------------- /cmake/exercises/hg2g/include/hg2g/hg2g.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/hg2g/include/hg2g/hg2g.hpp -------------------------------------------------------------------------------- /cmake/exercises/hg2g/lib/answer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/hg2g/lib/answer.cpp -------------------------------------------------------------------------------- /cmake/exercises/hg2g/lib/question.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/hg2g/lib/question.cpp -------------------------------------------------------------------------------- /cmake/exercises/hg2g/src/answer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/hg2g/src/answer.cpp -------------------------------------------------------------------------------- /cmake/exercises/sanitizers/asan_fail.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/sanitizers/asan_fail.cpp -------------------------------------------------------------------------------- /cmake/exercises/sanitizers/ubsan_fail.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/sanitizers/ubsan_fail.cpp -------------------------------------------------------------------------------- /cmake/exercises/spl/demo.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/cmake/exercises/spl/demo.cpp -------------------------------------------------------------------------------- /lcov/examples/bqueue/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/lcov/examples/bqueue/CMakeLists.txt -------------------------------------------------------------------------------- /lcov/examples/bqueue/CodeCoverage.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/lcov/examples/bqueue/CodeCoverage.cmake -------------------------------------------------------------------------------- /lcov/examples/bqueue/bqueue.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/lcov/examples/bqueue/bqueue.hpp -------------------------------------------------------------------------------- /lcov/examples/bqueue/test_bqueue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/lcov/examples/bqueue/test_bqueue.cpp -------------------------------------------------------------------------------- /miscellany/buggy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/buggy/CMakeLists.txt -------------------------------------------------------------------------------- /miscellany/buggy/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/buggy/app.cpp -------------------------------------------------------------------------------- /miscellany/data_race/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/data_race/CMakeLists.txt -------------------------------------------------------------------------------- /miscellany/data_race/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/data_race/app.cpp -------------------------------------------------------------------------------- /miscellany/deadlock/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/deadlock/CMakeLists.txt -------------------------------------------------------------------------------- /miscellany/deadlock/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/deadlock/app.cpp -------------------------------------------------------------------------------- /miscellany/factorial/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/factorial/CMakeLists.txt -------------------------------------------------------------------------------- /miscellany/factorial/factorial.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/miscellany/factorial/factorial.cpp -------------------------------------------------------------------------------- /slides/catch2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/CMakeLists.txt -------------------------------------------------------------------------------- /slides/catch2/benchmark_fibonacci.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/benchmark_fibonacci.cpp -------------------------------------------------------------------------------- /slides/catch2/bubble_sort.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/bubble_sort.hpp -------------------------------------------------------------------------------- /slides/catch2/counter.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/counter.hpp -------------------------------------------------------------------------------- /slides/catch2/fibonacci.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/fibonacci.hpp -------------------------------------------------------------------------------- /slides/catch2/fixture.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/fixture.cpp -------------------------------------------------------------------------------- /slides/catch2/section.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/section.cpp -------------------------------------------------------------------------------- /slides/catch2/stack.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/stack.hpp -------------------------------------------------------------------------------- /slides/catch2/test_bubble_sort.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/test_bubble_sort.cpp -------------------------------------------------------------------------------- /slides/catch2/test_counter.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/test_counter.cpp -------------------------------------------------------------------------------- /slides/catch2/test_math.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/test_math.cpp -------------------------------------------------------------------------------- /slides/catch2/test_stack.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/catch2/test_stack.cpp -------------------------------------------------------------------------------- /slides/clang_tidy/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/clang_tidy/CMakeLists.txt -------------------------------------------------------------------------------- /slides/clang_tidy/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/clang_tidy/app.cpp -------------------------------------------------------------------------------- /slides/clang_tidy/lib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/clang_tidy/lib.cpp -------------------------------------------------------------------------------- /slides/helgrind/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/helgrind/CMakeLists.txt -------------------------------------------------------------------------------- /slides/helgrind/clipboard.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/helgrind/clipboard.txt -------------------------------------------------------------------------------- /slides/helgrind/data_race_1_0.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/helgrind/data_race_1_0.cpp -------------------------------------------------------------------------------- /slides/helgrind/data_race_1_1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/helgrind/data_race_1_1.cpp -------------------------------------------------------------------------------- /slides/lcov/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/lcov/CMakeLists.txt -------------------------------------------------------------------------------- /slides/lcov/CodeCoverage.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/lcov/CodeCoverage.cmake -------------------------------------------------------------------------------- /slides/lcov/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/lcov/app.cpp -------------------------------------------------------------------------------- /slides/lcov/run_tests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/lcov/run_tests -------------------------------------------------------------------------------- /slides/lcov/signum.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/lcov/signum.cpp -------------------------------------------------------------------------------- /slides/lcov/utility.hpp: -------------------------------------------------------------------------------- 1 | int signum(double x); 2 | -------------------------------------------------------------------------------- /slides/modules/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/Makefile -------------------------------------------------------------------------------- /slides/modules/export_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/export_1/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/export_1/hg2g-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/export_1/hg2g-m.cpp -------------------------------------------------------------------------------- /slides/modules/export_1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/export_1/main.cpp -------------------------------------------------------------------------------- /slides/modules/greet_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_1/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/greet_1/greet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_1/greet.cpp -------------------------------------------------------------------------------- /slides/modules/greet_1/greetings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_1/greetings.cpp -------------------------------------------------------------------------------- /slides/modules/greet_2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_2/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/greet_2/greet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_2/greet.cpp -------------------------------------------------------------------------------- /slides/modules/greet_2/greetings-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_2/greetings-m.cpp -------------------------------------------------------------------------------- /slides/modules/greet_2/greetings.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_2/greetings.cpp -------------------------------------------------------------------------------- /slides/modules/greet_3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_3/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/greet_3/greet.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_3/greet.cpp -------------------------------------------------------------------------------- /slides/modules/greet_3/greetings-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_3/greetings-m.cpp -------------------------------------------------------------------------------- /slides/modules/greet_3/greetings_en.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_3/greetings_en.cpp -------------------------------------------------------------------------------- /slides/modules/greet_3/greetings_fr.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/greet_3/greetings_fr.cpp -------------------------------------------------------------------------------- /slides/modules/linkage_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/linkage_1/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/linkage_1/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/linkage_1/main.cpp -------------------------------------------------------------------------------- /slides/modules/linkage_1/sol-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/linkage_1/sol-m.cpp -------------------------------------------------------------------------------- /slides/modules/linkage_1/sol.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/linkage_1/sol.cpp -------------------------------------------------------------------------------- /slides/modules/math_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_1/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/math_1/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_1/app.cpp -------------------------------------------------------------------------------- /slides/modules/math_1/math-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_1/math-m.cpp -------------------------------------------------------------------------------- /slides/modules/math_2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_2/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/math_2/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_2/app.cpp -------------------------------------------------------------------------------- /slides/modules/math_2/math-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_2/math-m.cpp -------------------------------------------------------------------------------- /slides/modules/math_2/math.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/math_2/math.cpp -------------------------------------------------------------------------------- /slides/modules/reachability_2/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/reachability_2/CMakeLists.txt -------------------------------------------------------------------------------- /slides/modules/reachability_2/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/reachability_2/main.cpp -------------------------------------------------------------------------------- /slides/modules/reachability_2/zeus-m.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/modules/reachability_2/zeus-m.cpp -------------------------------------------------------------------------------- /slides/tsan/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/CMakeLists.txt -------------------------------------------------------------------------------- /slides/tsan/clipboard.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/clipboard.txt -------------------------------------------------------------------------------- /slides/tsan/data_race.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/data_race.cpp -------------------------------------------------------------------------------- /slides/tsan/data_race_1.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/data_race_1.cpp -------------------------------------------------------------------------------- /slides/tsan/data_race_2.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/data_race_2.cpp -------------------------------------------------------------------------------- /slides/tsan/deadlock.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/slides/tsan/deadlock.cpp -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/vim_lsp/examples/example_1/CMakeLists.txt -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/app/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/vim_lsp/examples/example_1/app/main.cpp -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/util/util.cpp: -------------------------------------------------------------------------------- 1 | #include "util.hpp" 2 | 3 | int get_answer() { 4 | return 42; 5 | } 6 | -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/util/util.hpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/vim_lsp/examples/example_1/util/util.hpp -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/vimlsp.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/vim_lsp/examples/example_1/vimlsp.vim -------------------------------------------------------------------------------- /vim_lsp/examples/example_1/vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/vim_lsp/examples/example_1/vimrc -------------------------------------------------------------------------------- /ycm/examples/example_1/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/ycm/examples/example_1/CMakeLists.txt -------------------------------------------------------------------------------- /ycm/examples/example_1/app.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/ycm/examples/example_1/app.cpp -------------------------------------------------------------------------------- /ycm/examples/example_1/util.hpp: -------------------------------------------------------------------------------- 1 | template 2 | inline T square(const T& x) 3 | { 4 | return x * x; 5 | } 6 | -------------------------------------------------------------------------------- /ycm/examples/example_1/vimrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/ycm/examples/example_1/vimrc -------------------------------------------------------------------------------- /ycm/examples/example_1/ycm.vim: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mdadams/cppbook_companion/HEAD/ycm/examples/example_1/ycm.vim --------------------------------------------------------------------------------