                     (or (getenv "CXX") "g++")))))
       (set (make-local-variable 'ac-clang-flags)
            (append
-            '("-std=c++14" "-code-completion-macros" "-code-completion-patterns")
+            `(,(concat "-std=" profile-clang-standard-version)
+              "-code-completion-macros" "-code-completion-patterns")
             (mapcar (lambda(x) (concat "-I" (expand-file-name x)))
                     (profile-current-get 'include-files))
             (list `,(concat "-I"

;; Author: Dan Harms <danielrharms@gmail.com>
;; Created: Saturday, February 28, 2015
;; Version: 1.0
;; Modified Time-stamp: <2016-01-28 22:48:27 dharms>
;; Keywords:

;; This program is free software; you can redistribute it and/or modify

  (let ((cmd (concat "echo | " compiler " -v -x c++ -E - 2>&1 | "
                     "grep -A 20 starts | grep include | grep -v search")))
    (split-string (shell-command-to-string cmd))))
(defvar profile-clang-standard-version "c++14")

;;;###autoload
(defun profile-on-c-file-open (project-root)
