Skip to content

Commit a5401d1

Browse files
committed
support semantic v0.4.18
1 parent 54ebef3 commit a5401d1

File tree

4 files changed

+28
-23
lines changed

4 files changed

+28
-23
lines changed

README.org

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
* cpputils-cmake.el (v0.4.17)
2-
cpputils-cmake automatically enable real time syntax check (Flymake) and IntelliSense (auto-complete+auto-complete-clang, company-mode) if you use [[http://www.cmake.org][CMake]].
3-
4-
It does all the configuration dirty job *automatically* for you. So you can use [[http://flymake.sourceforge.net/][Flymake]], [[https://github.com/flycheck/flycheck][Flycheck]], [[http://cx4a.org/software/auto-complete/][auto-complete]], [[https://github.com/brianjcj/auto-complete-clang][auto-complete-clang]], [[https://github.com/company-mode/company-mode][company-mode]], [[http://www.emacswiki.org/emacs/CompileCommand][compile]], ff-find-other-file (if you press `C-x C-o` in C/C++ file, ff-find-other-file will open *correct* header file under cursor) with almost no configuration.
5-
6-
Key points before you continue:
7-
- It's lightweight.
8-
- easy to use, copy the elisp code from "Set up" section into you ~/.emacs. DONE! Use Emacs as usual and ignore advanced tips in remaining sections.
9-
- cpputils-cmake will configure many third party plugins *automatically* for you. But it's *NOT* dependent on those plugins. Only CMake is required.
10-
* Warning
11-
cpputils-cmake *does NOT support paths containing space character*!
1+
* cpputils-cmake.el (v0.4.18)
2+
cpputils-cmake automatically enable real time syntax check (Flymake) and IntelliSense/code-completion if you use [[http://www.cmake.org][CMake]].
3+
4+
It does all the configuration dirty job *automatically* for following plugins and commands,
5+
- [[http://flymake.sourceforge.net/][Flymake]]
6+
- [[https://github.com/flycheck/flycheck][Flycheck]]
7+
- [[http://cx4a.org/software/auto-complete/][auto-complete]]
8+
- [[https://github.com/brianjcj/auto-complete-clang][auto-complete-clang]]
9+
- [[https://github.com/company-mode/company-mode][company-mode]]
10+
- [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Semantic.html][semantic]]
11+
- [[http://www.emacswiki.org/emacs/CompileCommand]["M-x compile"]]
12+
- "M-x ff-find-other-file" (if you press `C-x C-o` in C/C++ file, ff-find-other-file will open *correct* header file under cursor) with almost no configuration.
13+
14+
Please note cpputils-cmake will configure third party plugins *automatically*. But it's *NOT* dependent on those plugins. It surely will not load those plugins, so it's light weight. Only CMake is required.
1215
* Install
1316
** easy way
1417
cpputils-cmake is available at [[https://github.com/milkypostman/melpa]].
@@ -137,12 +140,13 @@ You can always `M-x cppcm-reload-all` at any time.
137140
There is also `cppcm-reload-all-hook` which will be called after `cppcm-reload-all`. This give you a chance to tweak or override the set up.
138141

139142
Here is the list of global variables third party plugins will use (and you can tweak):
140-
| variable name | plugin |
141-
|-----------------------------+---------------------|
142-
| ac-clang-flags | auto-complete-clang |
143-
| company-clang-arguments | company-mode |
144-
| cc-search-directories | ff-find-other-file |
145-
| flycheck-clang-include-path | flycheck |
143+
| variable name | plugin |
144+
|-----------------------------------------+---------------------|
145+
| ac-clang-flags | auto-complete-clang |
146+
| company-clang-arguments | company-mode |
147+
| cc-search-directories | ff-find-other-file |
148+
| flycheck-clang-include-path | flycheck |
149+
| semantic-dependency-system-include-path | semantic |
146150

147151
** compile only current target
148152
"M-x cppcm-compile".
@@ -153,9 +157,10 @@ Please press "C-h v cppcm-compile-list" for other compile options.
153157
"M-x cppcm-recompile"
154158

155159
* Credits
156-
- [[https://github.com/dojeda][David Ojeda (AKA dojeda)]] developed the algorithm to locate the top level project.
157-
- [[https://github.com/erreina][Ernesto Rodriguez Reina (AKA erreina)]] added the command "cppcm-recompile".
160+
- [[https://github.com/dojeda][David Ojeda (AKA dojeda)]] developed the algorithm to locate the top level project
161+
- [[https://github.com/erreina][Ernesto Rodriguez Reina (AKA erreina)]] added the command "cppcm-recompile"
158162
- [[http://chachi.github.io/][Jack Morrison (AKA chachi)]] added support for [[https://github.com/flycheck/flycheck][Flycheck]]
163+
- [[https://github.com/JP-Ellis][Joshua Ellis (AKA JP-Ellis)]] added support for [[https://www.gnu.org/software/emacs/manual/html_node/emacs/Semantic.html][semantic]]
159164
* Bug Report
160165
Check [[https://github.com/redguardtoo/cpputils-cmake]].
161166

cpputils-cmake-pkg.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
(define-package "cpputils-cmake" "0.4.17"
1+
(define-package "cpputils-cmake" "0.4.18"
22
"Easy real time C++ syntax check and intellisense if you use CMake")

cpputils-cmake.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
;; Author: Chen Bin <chenbin.sh@gmail.com>
55
;; URL: http://github.com/redguardtoo/cpputils-cmake
66
;; Keywords: CMake IntelliSense Flymake Flycheck
7-
;; Version: 0.4.17
7+
;; Version: 0.4.18
88

99
;; This file is not part of GNU Emacs.
1010

@@ -504,7 +504,7 @@ Require the project be compiled successfully at least once."
504504
;;;###autoload
505505
(defun cppcm-version ()
506506
(interactive)
507-
(message "0.4.17"))
507+
(message "0.4.18"))
508508

509509
;;;###autoload
510510
(defun cppcm-compile (&optional prefix)

pkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#pkg=cpputils-cmake-`date +%Y%m%d.%H%M`
3-
pkg=cpputils-cmake-0.4.17
3+
pkg=cpputils-cmake-0.4.18
44
mkdir $pkg
55
cp README.org $pkg
66
cp *.el $pkg

0 commit comments

Comments
 (0)