Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
abigalekim committed Aug 24, 2023
1 parent b7d62b7 commit 7264280
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .clang_format
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
BasedOnStyle: Google
ColumnLimit: 120
DerivePointerAlignment: false
PointerAlignment: Right
IndentWidth: 2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@
*.exe
*.out
*.app

# CMake
build/
38 changes: 38 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
cmake_minimum_required(VERSION 3.10)
project(Bootcamp
DESCRIPTION "C++ Bootcamp for 15-445/645"
LANGUAGES CXX)

set(BOOTCAMP_CLANG_SEARCH_PATH "/usr/local/bin" "/usr/bin" "/usr/local/opt/llvm/bin" "/usr/local/opt/llvm@14/bin"
"/opt/homebrew/opt/llvm@14/bin/")

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(CMAKE_CXX_COMPILER_VERSION MATCHES "^14.")
message(STATUS "You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
else()
message(WARNING "!! We recommend that you use clang-14 for this bootcamp. You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, a different version.")
endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
message(STATUS "You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
else()
message(WARNING "!! We recommend that you use clang-14 for this bootcamp. You're using ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}, which is not clang.")
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)

# Compiling move semantics/references executables
add_executable(references src/references.cpp)
add_executable(move_semantics src/move_semantics.cpp)
add_executable(move_constructors src/move_constructors.cpp)

# Compiling templates executables

# Compiling C++ STL executables

# Compiling misc executables

# Find clang_format bin
find_program(CLANG_FORMAT_BIN
NAMES clang-format clang-format-14
HINTS ${BOOTCAMP_CLANG_SEARCH_PATH})
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,31 @@
- meant to be read in the order below

### References and Move Semantics
references.cpp (draft is done)
move_semantics.cpp (draft is done)
move_constructors.cpp (draft is done)
- references.cpp (draft is done)
- move_semantics.cpp (draft is done)
- move_constructors.cpp (draft is done)

### Templates
templated_functions.cpp (draft is done)
templated_classes.cpp
- templated_functions.cpp (draft is done)
- templated_classes.cpp

### C++ STL Containers
vectors.cpp (draft is done)
set.cpp (draft is done)
unordered_map.cpp (draft is done)
- vectors.cpp (draft is done)
- set.cpp (draft is done)
- unordered_map.cpp (draft is done)

### C++ STL Memory
unique_ptr.cpp (draft is done)
shared_ptr.cpp (draft is done)
- unique_ptr.cpp (draft is done)
- shared_ptr.cpp (draft is done)

### C++ STL Synch Primitives
synch_primitives.cpp
- synch_primitives.cpp

### Misc
wrapper_class.cpp
iterator.cpp
auto.cpp (draft is done)
namespaces.cpp
- wrapper_class.cpp
- iterator.cpp
- auto.cpp (draft is done)
- namespaces.cpp

## Things to Do
- write CMake
Expand Down

0 comments on commit 7264280

Please sign in to comment.