Skip to content

Commit 0bd664a

Browse files
Alexander KurbatovAlexander Kurbatov
Alexander Kurbatov
authored and
Alexander Kurbatov
committed
chore: Expand Emacs settings
Signed-off-by: Alexander Kurbatov <[email protected]>
1 parent fd1758a commit 0bd664a

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.dir-locals.el

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
;;; Directory Local Variables
22
;;; For more information see (info "(emacs) Directory Variables")
33

4-
((c++-mode . ((flycheck-cppcheck-standards . "c++14")
5-
(flycheck-clang-language-standard . "c++14"))))
4+
((nil
5+
(eval . (let ((root (projectile-project-root)))
6+
(setq-local flycheck-cppcheck-standards "c++14")
7+
(setq-local flycheck-clang-language-standard "c++14")
8+
(setq-local flycheck-clang-include-path
9+
(list (concat root "src")
10+
(concat root "contrib/cpp-sc2/include")
11+
(concat root "contrib/cpp-sc2/contrib/protobuf/src")
12+
(concat root "contrib/cpp-sc2/generated")
13+
(concat root "build/contrib/cpp-sc2/generated")))))))

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
*.SC2Replay
66

77
# Build sandbox.
8-
build
8+
build/
99

1010
# IDE - VSCode
11-
.vscode/*
12-
!.vscode/launch.json
13-
!.vscode/tasks.json
11+
.vscode/
12+
.#*
1413

1514
# Google linter
1615
cpplint.py

.projectile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-/build
2+
-/contrib/cpp-sc2/contrib

0 commit comments

Comments
 (0)