Skip to content

Commit 1e77cf5

Browse files
committed
Add qt.
1 parent e064045 commit 1e77cf5

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

clients/docstr-c++.el

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,26 @@
2828

2929
(defcustom docstr-c++-style nil
3030
"Style specification for document string in C++."
31-
:type '(choice (const :tag "No specify" nil))
31+
:type '(choice (const :tag "No specify" nil)
32+
(const :tag "Qt Documentation Style" qt))
3233
:group 'docstr)
3334

3435
(defcustom docstr-c++-prefix "* "
3536
"Prefix you use on each newline."
3637
:type 'string
3738
:group 'docstr)
3839

40+
(defun docstr-c++-config-qt ()
41+
"Configre for convention, Qt."
42+
(docstr-util-default-format :param "\\param" :ret "\\return")
43+
(setq-local docstr-c++-prefix ""
44+
docstr-format-var "%s"
45+
docstr-show-type-name nil))
46+
3947
(defun docstr-c++-config ()
4048
"Automatically configure style according to variable `docstr-c++-style'."
4149
(cl-case docstr-c++-style
50+
(qt (docstr-c++-config-qt))
4251
(t (docstr-util-default-format))))
4352

4453
;;;###autoload

0 commit comments

Comments
 (0)