-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.dir-locals.el
executable file
·57 lines (53 loc) · 3.22 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c++-mode
(flycheck-gcc-language-standard . "c++17")
(eval progn
(let
((includes-list
(list
(substitute-in-file-name "$rcsw/include")
(substitute-in-file-name "$rcppsw/include")
(substitute-in-file-name "$fordyca/include")
(substitute-in-file-name "$cosm/include")
(substitute-in-file-name "/opt/ros/noetic/include")
(concat
(projectile-project-root)
"include")
"/usr/include/lua5.2" "/usr/include/x86_64-linux-gnu/qt5/"
"/usr/include/x86_64-linux-gnu/qt5/QtWidgets"
"/usr/include/x86_64-linux-gnu/qt5/QtGui"
"/usr/include/x86_64-linux-gnu/qt5/QtCore"
"/usr/lib/x86_64-linux-gnu/qt5//mkspecs/linux-g++-64")))
(setq flycheck-clang-include-path includes-list)
(setq flycheck-gcc-include-path includes-list)
(add-to-list 'flycheck-clang-args "-std=c++17")
(add-to-list 'flycheck-clang-args "-fPIC")
(add-to-list 'flycheck-clang-args "-Wno-pragma-once-outside-header")
(add-to-list 'flycheck-clang-args (concat "-isystem" (substitute-in-file-name
"$localroot/system/include")))
(add-to-list 'flycheck-clang-args (concat "-isystem" "/usr/include/eigen3"))
(add-to-list 'flycheck-clang-args "-ftemplate-backtrace-limit=0")
(add-to-list 'flycheck-clang-definitions "COSM_HAL_TARGET=COSM_HAL_TARGET_ARGOS_FOOTBOT")
(add-to-list 'flycheck-clang-definitions "COSM_ENABLE_PAL_TARGET_ARGOS")
;; (add-to-list 'flycheck-clang-definitions "COSM_HAL_TARGET=COSM_HAL_TARGET_ROS_TURTLEBOT3")
;; (add-to-list 'flycheck-clang-definitions "COSM_ENABLE_PAL_TARGET_ROS")
(add-to-list 'flycheck-clang-definitions "RCPPSW_ER_SYSTEM_LOG4CXX")
(add-to-list 'flycheck-clang-definitions "RCPPSW_AL_MT_SAFE_TYPES")
(add-to-list 'flycheck-clang-definitions "LIBRA_ER=LIBRA_ER_ALL")
(add-to-list 'flycheck-gcc-args "-fPIC")
(add-to-list 'flycheck-gcc-definitions "COSM_HAL_TARGET=COSM_HAL_TARGET_ARGOS_FOOTBOT")
(add-to-list 'flycheck-gcc-definitions "COSM_ENABLE_PAL_TARGET_ARGOS")
;; (add-to-list 'flycheck-gcc-definitions "COSM_HAL_TARGET=COSM_HAL_TARGET_ROS_TURTLEBOT3")
;; (add-to-list 'flycheck-gcc-definitions "COSM_ENABLE_PAL_TARGET_ROS")
(add-to-list 'flycheck-gcc-definitions "RCPPSW_AL_MT_SAFE_TYPES")
(add-to-list 'flycheck-gcc-args "-std=c++17")
(add-to-list 'flycheck-gcc-args (concat "-isystem" (substitute-in-file-name
"$rcppsw/ext")))
(add-to-list 'flycheck-gcc-args (concat "-isystem" (substitute-in-file-name
"$localroot/system/include")))
(add-to-list 'flycheck-gcc-args (concat "-isystem" "/usr/include/eigen3"))
(add-to-list 'flycheck-gcc-definitions "LIBRA_ER=LIBRA_ER_ALL")
)
)))
;;; end of .dir-locals.el