aboutsummaryrefslogtreecommitdiffstats
path: root/etc/srecode/cpp.srt
diff options
context:
space:
mode:
authorChong Yidong2012-10-02 02:10:29 +0800
committerChong Yidong2012-10-02 02:10:29 +0800
commit62a81506f802e4824b718cc30321ee3a0057cdf7 (patch)
treed681d7b767b1c3f7e4aee24ce39f6bef0d7f1f7e /etc/srecode/cpp.srt
parentb3317662acc0157406c20c8e14c43b7126eaa8a0 (diff)
downloademacs-62a81506f802e4824b718cc30321ee3a0057cdf7.tar.gz
emacs-62a81506f802e4824b718cc30321ee3a0057cdf7.zip
Update CEDET from upstream.
Diffstat (limited to 'etc/srecode/cpp.srt')
-rw-r--r--etc/srecode/cpp.srt123
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 "/**"
25set comment_end " */" 25set comment_end " */"
26set comment_prefix " *" 26set comment_prefix " *"
27 27
28;; OVERRIDE THIS in your user or project template file to whatever
29;; you use for your project.
30set HEADEREXT ".h"
31
32context file
33
34template empty :time :user :file :cpp
35----
36{{>:filecomment}}
37
38{{#NOTHEADER}}
39
40{{^}}
41{{/NOTHEADER}}
42{{#HEADER}}
43{{>:header_guard}}
44{{/HEADER}}
45----
46
47template header_guard :file :blank
48----
49#ifndef {{FILENAME_SYMBOL}}
50#define {{FILENAME_SYMBOL}} 1
51
52{{^}}
53
54#endif // {{FILENAME_SYMBOL}}
55----
56
57context misc
58
59template 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
66context declaration 28context declaration
67 29
68prompt TYPE "Return Type: "
69
70template function :indent :blank
71"Insert a function declaration."
72----
73{{?TYPE}} {{?NAME}}{{>:misc:arglist}}
74{{#INITIALIZERS}}{{>B:initializers}}{{/INITIALIZERS}}
75{
76{{^}}
77}
78----
79bind "f"
80
81template function-prototype :indent :blank
82"Insert a function declaration."
83----
84{{?TYPE}} {{?NAME}}{{>:misc:arglist}};
85----
86
87
88prompt TYPE "Data Type: "
89
90template variable :indent :blank
91"Insert a variable declaration."
92----
93{{?TYPE}} {{?NAME}}{{#HAVEDEFAULT}} = {{DEFAULT}}{{/HAVEDEFAULT}};
94----
95bind "v"
96
97template variable-prototype :indent :blank
98"Insert a variable declaration."
99----
100{{?TYPE}} {{?NAME}};
101----
102bind "v"
103
104template class :indent :blank 30template class :indent :blank
105"Insert a C++ class. For use by user insertion. 31"Insert a C++ class. For use by user insertion.
106Override this template to change contents of a class. 32Override this template to change contents of a class.
@@ -146,18 +72,6 @@ template method :indent :blank
146} 72}
147---- 73----
148 74
149template include :blank
150"An include statement."
151----
152#include "{{?NAME}}"
153----
154bind "i"
155
156template label :blank :indent
157----
158 {{?NAME}}:
159----
160
161context classdecl 75context classdecl
162 76
163template constructor-tag :indent :blank 77template 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
199context declaration
200
201template comment-function :indent :blank
202"Used to put a nice comment in front of a function.
203Override 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
232context declaration
233
234template doxygen-function :indent :blank
235----
236/**
237 * @name {{NAME}} - {{DOC}}{{^}}{{#ARGS}}
238 * @param {{NAME}} - {{DOC}}{{/ARGS}}
239 * @return {{TYPE}}
240 */
241----
242
243template doxygen-variable-same-line
244----
245/**< {{DOC}}{{^}} */
246----
247
248template 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