Function: ffap--gcc-is-clang-p
ffap--gcc-is-clang-p is a byte-compiled function defined in
ffap.el.gz.
Signature
(ffap--gcc-is-clang-p)
Documentation
Return non-nil if the gcc command actually runs the Clang compiler.
Source Code
;; Defined in /usr/src/emacs/lisp/ffap.el.gz
(defun ffap--gcc-is-clang-p ()
"Return non-nil if the `gcc' command actually runs the Clang compiler."
;; Recent macOS machines run llvm when you type gcc by default. (!)
;; We can't even check if it's a symlink; it's a binary placed in
;; "/usr/bin/gcc". So we need to check the output.
(when-let* ((out (ignore-errors
(with-temp-buffer
(call-process "gcc" nil t nil "--version")
(buffer-string)))))
(string-match "Apple \\(LLVM\\|[Cc]lang\\)\\|Xcode\\.app" out)))