File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments