   :predicate (lambda () ycmd-mode))
 
 (provide 'flycheck-ycmd)
+;;; flycheck-ycmd.el ends here

  (flycheck-buffer))

(defun flycheck-ycmd-setup ()
  (add-hook 'ycmd-file-parse-result-hook 'flycheck-ycmd--cache-parse-results)
  (add-to-list 'flycheck-checkers 'flycheck-ycmd))

(flycheck-define-generic-checker 'ycmd
  "A flycheck checker using parse results from ycmd."

        ("WARNING" . warning)))

(defun flycheck-ycmd--result-to-error (r)
  "Convert ycmd parse result structure R into a flycheck error object."
  (ycmd--with-destructured-parse-result
   r
   (if (string-equal filepath (buffer-file-name))
