diff options
| author | Chong Yidong | 2012-10-02 02:10:29 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-10-02 02:10:29 +0800 |
| commit | 62a81506f802e4824b718cc30321ee3a0057cdf7 (patch) | |
| tree | d681d7b767b1c3f7e4aee24ce39f6bef0d7f1f7e /etc/srecode/cpp.srt | |
| parent | b3317662acc0157406c20c8e14c43b7126eaa8a0 (diff) | |
| download | emacs-62a81506f802e4824b718cc30321ee3a0057cdf7.tar.gz emacs-62a81506f802e4824b718cc30321ee3a0057cdf7.zip | |
Update CEDET from upstream.
Diffstat (limited to 'etc/srecode/cpp.srt')
| -rw-r--r-- | etc/srecode/cpp.srt | 123 |
1 files changed, 0 insertions, 123 deletions
diff --git a/etc/srecode/cpp.srt b/etc/srecode/cpp.srt index 16cfc535761..f73dcd2a1ca 100644 --- a/etc/srecode/cpp.srt +++ b/etc/srecode/cpp.srt | |||
| @@ -25,82 +25,8 @@ set comment_start "/**" | |||
| 25 | set comment_end " */" | 25 | set comment_end " */" |
| 26 | set comment_prefix " *" | 26 | set comment_prefix " *" |
| 27 | 27 | ||
| 28 | ;; OVERRIDE THIS in your user or project template file to whatever | ||
| 29 | ;; you use for your project. | ||
| 30 | set HEADEREXT ".h" | ||
| 31 | |||
| 32 | context file | ||
| 33 | |||
| 34 | template empty :time :user :file :cpp | ||
| 35 | ---- | ||
| 36 | {{>:filecomment}} | ||
| 37 | |||
| 38 | {{#NOTHEADER}} | ||
| 39 | |||
| 40 | {{^}} | ||
| 41 | {{/NOTHEADER}} | ||
| 42 | {{#HEADER}} | ||
| 43 | {{>:header_guard}} | ||
| 44 | {{/HEADER}} | ||
| 45 | ---- | ||
| 46 | |||
| 47 | template header_guard :file :blank | ||
| 48 | ---- | ||
| 49 | #ifndef {{FILENAME_SYMBOL}} | ||
| 50 | #define {{FILENAME_SYMBOL}} 1 | ||
| 51 | |||
| 52 | {{^}} | ||
| 53 | |||
| 54 | #endif // {{FILENAME_SYMBOL}} | ||
| 55 | ---- | ||
| 56 | |||
| 57 | context misc | ||
| 58 | |||
| 59 | template arglist | ||
| 60 | "Insert an argument list for a function. | ||
| 61 | @todo - Support smart CR in a buffer for not too long lines." | ||
| 62 | ---- | ||
| 63 | ({{#ARGS}}{{TYPE}} {{NAME}}{{#NOTLAST}},{{/NOTLAST}}{{/ARGS}}) | ||
| 64 | ---- | ||
| 65 | |||
| 66 | context declaration | 28 | context declaration |
| 67 | 29 | ||
| 68 | prompt TYPE "Return Type: " | ||
| 69 | |||
| 70 | template function :indent :blank | ||
| 71 | "Insert a function declaration." | ||
| 72 | ---- | ||
| 73 | {{?TYPE}} {{?NAME}}{{>:misc:arglist}} | ||
| 74 | {{#INITIALIZERS}}{{>B:initializers}}{{/INITIALIZERS}} | ||
| 75 | { | ||
| 76 | {{^}} | ||
| 77 | } | ||
| 78 | ---- | ||
| 79 | bind "f" | ||
| 80 | |||
| 81 | template function-prototype :indent :blank | ||
| 82 | "Insert a function declaration." | ||
| 83 | ---- | ||
| 84 | {{?TYPE}} {{?NAME}}{{>:misc:arglist}}; | ||
| 85 | ---- | ||
| 86 | |||
| 87 | |||
| 88 | prompt TYPE "Data Type: " | ||
| 89 | |||
| 90 | template variable :indent :blank | ||
| 91 | "Insert a variable declaration." | ||
| 92 | ---- | ||
| 93 | {{?TYPE}} {{?NAME}}{{#HAVEDEFAULT}} = {{DEFAULT}}{{/HAVEDEFAULT}}; | ||
| 94 | ---- | ||
| 95 | bind "v" | ||
| 96 | |||
| 97 | template variable-prototype :indent :blank | ||
| 98 | "Insert a variable declaration." | ||
| 99 | ---- | ||
| 100 | {{?TYPE}} {{?NAME}}; | ||
| 101 | ---- | ||
| 102 | bind "v" | ||
| 103 | |||
| 104 | template class :indent :blank | 30 | template class :indent :blank |
| 105 | "Insert a C++ class. For use by user insertion. | 31 | "Insert a C++ class. For use by user insertion. |
| 106 | Override this template to change contents of a class. | 32 | Override this template to change contents of a class. |
| @@ -146,18 +72,6 @@ template method :indent :blank | |||
| 146 | } | 72 | } |
| 147 | ---- | 73 | ---- |
| 148 | 74 | ||
| 149 | template include :blank | ||
| 150 | "An include statement." | ||
| 151 | ---- | ||
| 152 | #include "{{?NAME}}" | ||
| 153 | ---- | ||
| 154 | bind "i" | ||
| 155 | |||
| 156 | template label :blank :indent | ||
| 157 | ---- | ||
| 158 | {{?NAME}}: | ||
| 159 | ---- | ||
| 160 | |||
| 161 | context classdecl | 75 | context classdecl |
| 162 | 76 | ||
| 163 | template constructor-tag :indent :blank | 77 | template constructor-tag :indent :blank |
| @@ -196,15 +110,6 @@ Override this with your own preference to avoid using doxygen." | |||
| 196 | {{>A:classdecl:doxygen-function-group-end}} | 110 | {{>A:classdecl:doxygen-function-group-end}} |
| 197 | ---- | 111 | ---- |
| 198 | 112 | ||
| 199 | context declaration | ||
| 200 | |||
| 201 | template comment-function :indent :blank | ||
| 202 | "Used to put a nice comment in front of a function. | ||
| 203 | Override this with your own preference to avoid using doxygen" | ||
| 204 | ---- | ||
| 205 | {{>A:declaration:doxygen-function}} | ||
| 206 | ---- | ||
| 207 | |||
| 208 | ;;; DOXYGEN FEATURES | 113 | ;;; DOXYGEN FEATURES |
| 209 | ;; | 114 | ;; |
| 210 | ;; | 115 | ;; |
| @@ -229,32 +134,4 @@ template doxygen-function-group-end :indent :blank | |||
| 229 | 134 | ||
| 230 | ---- | 135 | ---- |
| 231 | 136 | ||
| 232 | context declaration | ||
| 233 | |||
| 234 | template doxygen-function :indent :blank | ||
| 235 | ---- | ||
| 236 | /** | ||
| 237 | * @name {{NAME}} - {{DOC}}{{^}}{{#ARGS}} | ||
| 238 | * @param {{NAME}} - {{DOC}}{{/ARGS}} | ||
| 239 | * @return {{TYPE}} | ||
| 240 | */ | ||
| 241 | ---- | ||
| 242 | |||
| 243 | template doxygen-variable-same-line | ||
| 244 | ---- | ||
| 245 | /**< {{DOC}}{{^}} */ | ||
| 246 | ---- | ||
| 247 | |||
| 248 | template doxygen-section-comment :blank :indent | ||
| 249 | "Insert a comment that separates sections of an Emacs Lisp file." | ||
| 250 | ---- | ||
| 251 | |||
| 252 | /** {{?TITLE}} | ||
| 253 | * | ||
| 254 | * {{^}} | ||
| 255 | */ | ||
| 256 | |||
| 257 | ---- | ||
| 258 | |||
| 259 | |||
| 260 | ;; end | 137 | ;; end |