Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f345eb82 authored by AGULLO Emmanuel's avatar AGULLO Emmanuel
Browse files

More on emacs/spacemacs auto-completion procedure

parent 2f329e1b
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
#+begin_src sh :results output :exports both #+begin_src sh :results output :exports both
sudo aptitude install clang sudo aptitude install clang
#+end_src #+end_src
** Installing cc_args.py
We assume ~/bin/ is in the PATH environment variable
#+begin_src sh :results output :exports both
cd ~/bin/
wget https://raw.githubusercontent.com/Rip-Rip/clang_complete/master/bin/cc_args.py
chmod +x cc_args.py
#+end_src
** Enabling c-c++ layer in spacemacs ** Enabling c-c++ layer in spacemacs
Enable [[https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/c-c%2B%2B][c-c++ spacemacs layer]] with clang support: Enable [[https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Blang/c-c%2B%2B][c-c++ spacemacs layer]] with clang support:
#+begin_src emacs-lisp #+begin_src emacs-lisp
...@@ -24,7 +31,8 @@ spack load chameleon ; spack load cmake ; spack load fxt ; spack load openmpi ; ...@@ -24,7 +31,8 @@ spack load chameleon ; spack load cmake ; spack load fxt ; spack load openmpi ;
cd $CHAMELEON_DIR cd $CHAMELEON_DIR
mkdir spack-cc_args-build mkdir spack-cc_args-build
cd spack-cc_args-build cd spack-cc_args-build
CC='cc_args.py gcc' CC='cc_args.py gcc' cmake ..
make
#+end_src #+end_src
** Gathering the clang_complete information to the src directory ** Gathering the clang_complete information to the src directory
We now gather, sort and unify the .clang_complete information we obtained from We now gather, sort and unify the .clang_complete information we obtained from
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment