C++ Starter
Created at 2016-03-16T03:34:58.000Z

My test repository is here: https://github.com/hi-ogawa/cpp_playground.

Standard Process

make, CMake

bundle (3rd party integration)

testing

debugging

# run each command
$ lldb p10034
(lldb) breakpoint set --name main                # or `br s -n main`
(lldb) process launch -i resources/p10034.input  # or `pr la -i ...`
(lldb) frame variables                           # or `fr v`
(lldb) expression ??                             # TODO
(lldb) gui

# one liner to pop into debug quickly
$ lldb p10034 -o "br s -n main" -o "pr la -i resources/p10034.input"
(lldb) gui

Important Notes

Miscs

Documents

Styleguide

Emacs Integration

;; init.el
(add-hook 'c++-mode-hook (lambda ()
                           (setq flycheck-c/c++-gcc-executable "clang++")
                           (flycheck-mode)))
;; .dir-locals.el
((c++-mode
  (flycheck-clang-language-standard . "c++11")
  (flycheck-clang-standard-library . "libc++")))