Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.15 KB

TODO.org

File metadata and controls

38 lines (25 loc) · 1.15 KB

Compile_commands.json generator

Found in the clang mailing list: Bear on Github

Can be used to generate a compile_commands.json from a compile command such as make

$ bear -- make
$ ls
<files...> compile_commands.json

Bundle fallback packages (if any)

Display assembly

Watch the comments here: http://programmers.stackexchange.com/a/156723

gcc -O -c -g -Wa,-ahl=so.s so.c

And some interesting tools are available here: http://isocpp.org/blog/2013/01/online-c-compilers

hide-ifdef-mode

If the list of defines (-DXXX) is available it’s possible to hide some ifdef with hide-ifdef-mode.

Following this method:

(setq hide-ifdef-define-alist '((linux HAVE_UNISTD_H)
                                (win HAVE_WINDOWS_H)))

;; or hit C-@ U in a buffer with `hide-ifdef-mode' enabled
(hide-ifdef-use-define-alist 'linux)