Skip to content

Commit 22d4a73

Browse files
committed
update ycm for gcc 7.2 and latest arduino
1 parent 811c92b commit 22d4a73

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

.ycm_extra_conf.py

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
# You can set a directory with a lot of libraries to be search recursively here
55
ArduinoLibDir = [
6-
"/Applications/Arduino.app/Contents/Resources/Java/libraries"
7-
,"/Applications/Arduino.app/Contents/Java/libraries"
8-
,"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries"
6+
# "/Applications/Arduino.app/Contents/Java/libraries"
7+
"/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/libraries"
98
]
109

1110
# This is the list of all directories to search for header files
@@ -18,35 +17,21 @@
1817
,'-Werror'
1918

2019
,'-Wno-attributes'
21-
,'-std=c++11'
20+
,'-std=c++17'
2221
,'-x'
2322
,'c++'
2423

25-
# Avr-libc flags for 1.8.0 and 1.8.1 installed with homebrew
26-
# You can deleted the one you don't need
27-
,'-isystem/usr/local/Cellar/avr-libc/1.8.0/avr/include'
28-
,'-isystem/usr/local/Cellar/avr-libc/1.8.1/avr/include'
24+
# Avr-libc flags installed with homebrew
25+
,"-isystem/usr/local/Cellar/avr-gcc/7.2.0/avr/include"
2926

30-
# Arduino libs flags when downloaded from the arduino website
31-
# IDE 1.0.6
32-
,'-I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino'
33-
,'-I/Applications/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/mega'
3427
# IDE 1.6.3
3528
,'-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino'
3629
,'-I/Applications/Arduino.app/Contents/Java/hardware/arduino/avr/variants/mega'
3730

38-
# Arduino libs flags when installed with brew cask or if the path is not the regular one
39-
# Beware, the version number can change
40-
# ,'-I/opt/homebrew-cask/Caskroom/arduino/1.0.6/Arduino.app/Contents/Resources/Java/hardware/arduino/cores/arduino'
41-
# ,'-I/opt/homebrew-cask/Caskroom/arduino/1.0.6/Arduino.app/Contents/Resources/Java/hardware/arduino/variants/mega'
42-
43-
# You can add custom libraries here, but note that the script will automatically scan the 'lib' directory.
44-
,'-I./lib/MyFirstLib'
45-
46-
# Customize microcontroler and Arduino version
31+
# Customize microcontroler and Arduino version
4732
,'-mmcu=atmega2560'
4833
,'-DF_CPU=16000000L'
49-
,'-DARDUINO=163'
34+
,'-DARDUINO=183'
5035
,'-D__AVR__'
5136
,'-D__AVR_ATmega2560__'
5237

0 commit comments

Comments
 (0)