X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/dc7d01f89b664abcbdf482b9db6e5e8a1a369e04..1f8413fb30d6c429d283c20f232c0ed73e12a542:/company-clang.el diff --git a/company-clang.el b/company-clang.el index b0545993d..f4725c70e 100644 --- a/company-clang.el +++ b/company-clang.el @@ -101,6 +101,7 @@ Prefix files (-include ...) can be selected with (goto-char (point-min)) (let ((pattern (format company-clang--completion-pattern (regexp-quote prefix))) + (case-fold-search nil) lines match) (while (re-search-forward pattern nil t) (setq match (match-string-no-properties 1)) @@ -145,7 +146,7 @@ Prefix files (-include ...) can be selected with (1+ (current-column))))) (defsubst company-clang--build-complete-args (pos) - (append '("-cc1" "-fsyntax-only") + (append '("-cc1" "-fsyntax-only" "-code-completion-macros") company-clang-arguments (when (stringp company-clang--prefix) (list "-include" (expand-file-name company-clang--prefix)))