SavchenkoValeriy / emacs-clang-format-plus

Emacs minor mode for automatic clang-format application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Braces in comments cause errors

hrehfeld opened this issue · comments

have stuff like this:

// type(M&& data) : data(::std::move(data)) {}
Debugger entered--Lisp error: (error "c-where-wrt-brace-construct: c-beginning-of-decl-1...")
  error("c-where-wrt-brace-construct: c-beginning-of-decl-1..." previous)
  c-where-wrt-brace-construct()
  c-beginning-of-defun()
  clang-format+-inside-of-enclosing-definition-p()
  clang-format+-get-region-internal(2205 c-beginning-of-defun previous-line)
  clang-format+-get-region-beginning(2205)
  #f(compiled-function (prop beg end) #<bytecode -0x13fc710a9140b881>)(chg 2205 2208)
  clang-format+-map-changes(#f(compiled-function (prop beg end) #<bytecode -0x13fc710a9140b881>))
  clang-format+-apply-to-modifications()
  clang-format+-before-save()
  run-hooks(before-save-hook)
  basic-save-buffer(t)
  save-buffer(1)
  funcall-interactively(save-buffer 1)
  command-execute(save-buffer)