go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

Feature Request: Add Include directories (of project and sub-projects) to IntelliSense #3

Closed atar-axis closed 5 years ago

atar-axis commented 5 years ago

I know that this is maybe not as easy as one might think, but it would be really handsome to have the plugin automatically adding the necessary include directories to IntelliSense.

gcc does have a command that lists the the include-directories and defines: g++ -Wp,-v -E -xc -dD -x c++ /dev/null - vscode-cpptools does use that output for IntelliSense.

Maybe there is something similar for CMake?

Looks like the server does have something like that, see here: https://cmake.org/pipermail/cmake/2018-March/067291.html https://cmake.org/cmake/help/v3.7/manual/cmake-server.7.html#type-codemodel (includePath)

atar-axis commented 5 years ago

CMake servers 'codemodel does in fact hold a list of includes, even the propagated ones of sub-projects:

...
{  
"buildDirectory":"/home/flood/work/fortiss/ff1/ff1_selfcheck/build",
"hasInstallRule":true,
"minimumCMakeVersion":"3.0",
"name":"ff1_selfcheck",
"sourceDirectory":"/home/flood/work/fortiss/ff1/ff1_selfcheck",
"targets":[  
{  
    "artifacts":[  
    "/home/flood/work/fortiss/ff1/ff1_selfcheck/build/ff1_selfcheck"
    ],
    "buildDirectory":"/home/flood/work/fortiss/ff1/ff1_selfcheck/build",
    "fileGroups":[  
    {  
        "compileFlags":"  -Wall -g -Wfatal-errors -std=gnu++11",
        "includePath":[  
            {  
                "path":"/home/flood/work/fortiss/ff1/ff1_selfcheck/subs/yaml-cpp/include"
            },
            {  
                "path":"/home/flood/work/fortiss/ff1/ff1_selfcheck/subs/brick/source"
            },
            {  
                "path":"/home/flood/work/fortiss/ff1/ff1_selfcheck/subs/af3pihal/inc"
            }
        ],
        "isGenerated":false,
        "language":"CXX",
        "sources":[  
            "src/main.cpp",
            "src/BrickChecker.cpp",
            "src/DeviceFileChecker.cpp",
            "src/ErrorDisplay_7seg.cpp",
            "src/ErrorDisplay.cpp",
            "src/ErrorDisplay_LEDButton.cpp",
            "src/NetworkChecker.cpp",
            "src/ConfigParser.cpp"
        ]
    }
    ],
    "fullName":"ff1_selfcheck",
    "isGeneratorProvided":false,
    "linkFlags":"-rdynamic",
    "linkLibraries":"subs/yaml-cpp/libyaml-cpp.a subs/brick/libbrick.a subs/af3pihal/libaf3pihal.a -lpthread",
    "linkerLanguage":"CXX",
    "name":"ff1_selfcheck",
    "sourceDirectory":"/home/flood/work/fortiss/ff1/ff1_selfcheck",
    "type":"EXECUTABLE"
},
...

I don't know if you can easily communicate to the IntelliSense-Service, but if yes, then it should be easy to simply add those paths :)

go2sh commented 5 years ago

See the add_cpp_provider branch. ;-) is my nr1 priority. I'll find some Time this Weekend, it is not so complecated. Just need to add some Code for the cmake cache to get the compiler and c/cpp Standard.

go2sh commented 5 years ago

But its not ready for testing yet. Still work in progress.

atar-axis commented 5 years ago

Aiii, perfect coincidence :grin: let me know if I can help you somehow or when it's ready for testing and thanks for your efforts once again :wink:

Just need to add some Code for the cmake cache to get the compiler and c/cpp Standard.

Isn't that also available from the codemodel? :)

go2sh commented 5 years ago

So the code is ready. But there seems to be a bug in vscode-cpp extension. Bug I have to find some way around it.

atar-axis commented 5 years ago

nice - thank you! I guess the bug does only show up when I open my files to early - right? can you share the .vsix with me?

cheers!

go2sh commented 5 years ago

Hi, I found the bug in my code. I published a new version v0.3.0. Happy Testing. I'll add some code later to support intellisense for include files and source files not added to cmake yet.

atar-axis commented 5 years ago

Perfect, works like a charm so far :) Thank you very very much!

atar-axis commented 5 years ago

I am sorry, I was wrong - since 0.3.0 the extension doesn't start up anymore in VScode Insiders. That means: No statusbar, no commands to run, and no added Intellisense paths.

go2sh commented 5 years ago

Pls check v0.3.1, this was a hard one... I missed a dependency in the release which was only a dev dependency. But vscode didn't report any error. There are also some issues with windows I have to resolve.

go2sh commented 5 years ago

Also note, there is a bug in vscode insiders in the extension api, so that all kind of cmake files get found and tried to use. So it might be unuseable.

atar-axis commented 5 years ago

Aii, I downloaded the normal version and updated CMake-Integration, the status bar is back but the includes do not yet work image Is there some debug output I can provide to you?

go2sh commented 5 years ago

Two issue are open:

Do you hit one of those? Or is it a regular source file on linux/mac?

atar-axis commented 5 years ago

I am on linux, and e.g. yaml-cpp is imported as a subproject via

image

So this is most probably #7, eh?

atar-axis commented 5 years ago

btw, thank you very much for all your efforts! think about a donation button - like https://ko-fi.com/ :P

go2sh commented 5 years ago

If the target has a target include dir, it should be there. Can you check the log of the output (ausgabe) of "C/C++" it should show you the information it has got from the extension.

atar-axis commented 5 years ago
My structure is the following: ``` . ├── build │   ├── arm_cross │   │   ├── CMakeCache.txt │   │   ├── CMakeFiles │   │   │   ├── 3.13.2 │   │   │   ├── cmake.check_cache │   │   │   ├── CMakeDirectoryInformation.cmake │   │   │   ├── CMakeOutput.log │   │   │   ├── CMakeRuleHashes.txt │   │   │   ├── CMakeTmp │   │   │   ├── feature_tests.bin │   │   │   ├── feature_tests.c │   │   │   ├── feature_tests.cxx │   │   │   ├── ff1_selfcheck.dir │   │   │   ├── Makefile2 │   │   │   ├── Makefile.cmake │   │   │   ├── Progress │   │   │   ├── progress.marks │   │   │   └── TargetDirectories.txt │   │   ├── cmake_install.cmake │   │   ├── Makefile │   │   ├── subs │   │   │   ├── af3pihal │   │   │   ├── brick │   │   │   └── yaml-cpp │   │   └── yaml-cpp.pc │   ├── CMakeCache.txt │   ├── CMakeFiles │   │   ├── 3.13.2 │   │   │   ├── CMakeCCompiler.cmake │   │   │   ├── CMakeCXXCompiler.cmake │   │   │   ├── CMakeDetermineCompilerABI_C.bin │   │   │   ├── CMakeDetermineCompilerABI_CXX.bin │   │   │   ├── CMakeSystem.cmake │   │   │   ├── CompilerIdC │   │   │   └── CompilerIdCXX │   │   ├── cmake.check_cache │   │   ├── CMakeDirectoryInformation.cmake │   │   ├── CMakeOutput.log │   │   ├── CMakeRuleHashes.txt │   │   ├── CMakeTmp │   │   ├── feature_tests.bin │   │   ├── feature_tests.c │   │   ├── feature_tests.cxx │   │   ├── ff1_selfcheck.dir │   │   │   ├── build.make │   │   │   ├── cmake_clean.cmake │   │   │   ├── DependInfo.cmake │   │   │   ├── depend.make │   │   │   ├── flags.make │   │   │   ├── link.txt │   │   │   ├── progress.make │   │   │   └── src │   │   ├── Makefile2 │   │   ├── Makefile.cmake │   │   ├── progress.marks │   │   └── TargetDirectories.txt │   ├── cmake_install.cmake │   ├── Makefile │   ├── subs │   │   ├── af3pihal │   │   │   ├── CMakeFiles │   │   │   ├── cmake_install.cmake │   │   │   └── Makefile │   │   ├── brick │   │   │   ├── CMakeFiles │   │   │   ├── cmake_install.cmake │   │   │   └── Makefile │   │   └── yaml-cpp │   │   ├── CMakeFiles │   │   ├── cmake_install.cmake │   │   ├── Makefile │   │   ├── util │   │   ├── yaml-cpp-config.cmake │   │   ├── yaml-cpp-config-version.cmake │   │   └── yaml-cpp-targets.cmake │   ├── x86_64 │   │   ├── CMakeCache.txt │   │   ├── CMakeFiles │   │   │   ├── 3.13.2 │   │   │   ├── cmake.check_cache │   │   │   ├── CMakeDirectoryInformation.cmake │   │   │   ├── CMakeOutput.log │   │   │   ├── CMakeRuleHashes.txt │   │   │   ├── CMakeTmp │   │   │   ├── feature_tests.bin │   │   │   ├── feature_tests.c │   │   │   ├── feature_tests.cxx │   │   │   ├── ff1_selfcheck.dir │   │   │   ├── Makefile2 │   │   │   ├── Makefile.cmake │   │   │   ├── progress.marks │   │   │   └── TargetDirectories.txt │   │   ├── cmake_install.cmake │   │   ├── ff1_selfcheck │   │   ├── Makefile │   │   ├── subs │   │   │   ├── af3pihal │   │   │   ├── brick │   │   │   └── yaml-cpp │   │   └── yaml-cpp.pc │   └── yaml-cpp.pc ├── CMakeLists.txt ├── configs │   ├── config_black.yaml │   └── config_orange.yaml ├── README.md ├── src │   ├── errout │   │   ├── ErrorDisplay_7seg.cpp │   │   ├── ErrorDisplay_7seg.h │   │   ├── ErrorDisplay.h │   │   ├── ErrorDisplay_LEDButton.cpp │   │   ├── ErrorDisplay_LEDButton.h │   │   ├── ErrorDisplay_Pipe.cpp │   │   ├── ErrorDisplay_Pipe.h │   │   ├── ErrorDisplay_Server.cpp │   │   ├── ErrorDisplay_Server.h │   │   └── errout.h │   ├── main.cpp │   └── peripherals │   ├── Brick.cpp │   ├── Brick.h │   ├── DeviceFile.cpp │   ├── DeviceFile.h │   ├── Network.cpp │   ├── Network.h │   └── peripherals.h └── subs ├── af3pihal │   ├── CMakeLists.txt │   ├── inc │   │   ├── af3_component.h │   │   ├── af3_component_remote_proxy.h │   │   ├── af3.h │   │   ├── af3_v2v.h │   │   ├── camera_client.h │   │   ├── cansocket.h │   │   ├── canthread.h │   │   ├── control_center_downstream.h │   │   ├── debugprint.h │   │   ├── gamepad.h │   │   ├── listutil.h │   │   ├── protocol_can.h │   │   ├── protocol_control_center.h │   │   ├── protocol_coordinator.h │   │   ├── protocol_factory.h │   │   ├── protocol_worker.h │   │   ├── rumblepad.h │   │   ├── temp_actuator.h │   │   ├── timeutil.h │   │   ├── v2v_message_handlers.h │   │   ├── v2v_message_types.h │   │   └── v2v_udp_basic.h │   ├── README.md │   └── src │   ├── af3.c │   ├── af3_component.c │   ├── af3_component_remote_proxy.c │   ├── af3_v2v.c │   ├── camera_client.c │   ├── cansocket.c │   ├── canthread.c │   ├── control_center_downstream.c │   ├── gamepad.c │   ├── listutil.c │   ├── protocol_control_center.c │   ├── protocol_coordinator.c │   ├── protocol_factory.c │   ├── protocol_worker.c │   ├── rumblepad.c │   ├── temp_actuator.c │   ├── test_control_center.c │   ├── timeutil.c │   ├── v2v_message_handlers.c │   └── v2v_udp_basic.c ├── brick │   ├── changelog.txt │   ├── CMakeLists.txt │   ├── download_url.txt │   ├── examples │   │   ├── brick │   │   ├── bricklet │   │   ├── example_authenticate.c │   │   └── example_enumerate.c │   ├── license.txt │   ├── readme.txt │   └── source │   ├── brick_dc.c │   ├── brick_dc.h │   ├── brick_imu.c │   ├── brick_imu.h │   ├── brick_imu_v2.c │   ├── brick_imu_v2.h │   ├── bricklet_accelerometer.c │   ├── bricklet_accelerometer.h │   ├── bricklet_air_quality.c │   ├── bricklet_air_quality.h │   ├── bricklet_ambient_light.c │   ├── bricklet_ambient_light.h │   ├── bricklet_ambient_light_v2.c │   ├── bricklet_ambient_light_v2.h │   ├── bricklet_analog_in.c │   ├── bricklet_analog_in.h │   ├── bricklet_analog_in_v2.c │   ├── bricklet_analog_in_v2.h │   ├── bricklet_analog_in_v3.c │   ├── bricklet_analog_in_v3.h │   ├── bricklet_analog_out.c │   ├── bricklet_analog_out.h │   ├── bricklet_analog_out_v2.c │   ├── bricklet_analog_out_v2.h │   ├── bricklet_analog_out_v3.c │   ├── bricklet_analog_out_v3.h │   ├── bricklet_barometer.c │   ├── bricklet_barometer.h │   ├── bricklet_barometer_v2.c │   ├── bricklet_barometer_v2.h │   ├── bricklet_can.c │   ├── bricklet_can.h │   ├── bricklet_can_v2.c │   ├── bricklet_can_v2.h │   ├── bricklet_co2.c │   ├── bricklet_co2.h │   ├── bricklet_color.c │   ├── bricklet_color.h │   ├── bricklet_current12.c │   ├── bricklet_current12.h │   ├── bricklet_current25.c │   ├── bricklet_current25.h │   ├── bricklet_distance_ir.c │   ├── bricklet_distance_ir.h │   ├── bricklet_distance_ir_v2.c │   ├── bricklet_distance_ir_v2.h │   ├── bricklet_distance_us.c │   ├── bricklet_distance_us.h │   ├── bricklet_dmx.c │   ├── bricklet_dmx.h │   ├── bricklet_dual_button.c │   ├── bricklet_dual_button.h │   ├── bricklet_dual_button_v2.c │   ├── bricklet_dual_button_v2.h │   ├── bricklet_dual_relay.c │   ├── bricklet_dual_relay.h │   ├── bricklet_dust_detector.c │   ├── bricklet_dust_detector.h │   ├── bricklet_gps.c │   ├── bricklet_gps.h │   ├── bricklet_gps_v2.c │   ├── bricklet_gps_v2.h │   ├── bricklet_hall_effect.c │   ├── bricklet_hall_effect.h │   ├── bricklet_humidity.c │   ├── bricklet_humidity.h │   ├── bricklet_humidity_v2.c │   ├── bricklet_humidity_v2.h │   ├── bricklet_industrial_analog_out.c │   ├── bricklet_industrial_analog_out.h │   ├── bricklet_industrial_analog_out_v2.c │   ├── bricklet_industrial_analog_out_v2.h │   ├── bricklet_industrial_counter.c │   ├── bricklet_industrial_counter.h │   ├── bricklet_industrial_digital_in_4.c │   ├── bricklet_industrial_digital_in_4.h │   ├── bricklet_industrial_digital_in_4_v2.c │   ├── bricklet_industrial_digital_in_4_v2.h │   ├── bricklet_industrial_digital_out_4.c │   ├── bricklet_industrial_digital_out_4.h │   ├── bricklet_industrial_digital_out_4_v2.c │   ├── bricklet_industrial_digital_out_4_v2.h │   ├── bricklet_industrial_dual_0_20ma.c │   ├── bricklet_industrial_dual_0_20ma.h │   ├── bricklet_industrial_dual_0_20ma_v2.c │   ├── bricklet_industrial_dual_0_20ma_v2.h │   ├── bricklet_industrial_dual_analog_in.c │   ├── bricklet_industrial_dual_analog_in.h │   ├── bricklet_industrial_dual_analog_in_v2.c │   ├── bricklet_industrial_dual_analog_in_v2.h │   ├── bricklet_industrial_dual_relay.c │   ├── bricklet_industrial_dual_relay.h │   ├── bricklet_industrial_quad_relay.c │   ├── bricklet_industrial_quad_relay.h │   ├── bricklet_industrial_quad_relay_v2.c │   ├── bricklet_industrial_quad_relay_v2.h │   ├── bricklet_io16.c │   ├── bricklet_io16.h │   ├── bricklet_io16_v2.c │   ├── bricklet_io16_v2.h │   ├── bricklet_io4.c │   ├── bricklet_io4.h │   ├── bricklet_io4_v2.c │   ├── bricklet_io4_v2.h │   ├── bricklet_isolator.c │   ├── bricklet_isolator.h │   ├── bricklet_joystick.c │   ├── bricklet_joystick.h │   ├── bricklet_laser_range_finder.c │   ├── bricklet_laser_range_finder.h │   ├── bricklet_lcd_128x64.c │   ├── bricklet_lcd_128x64.h │   ├── bricklet_lcd_16x2.c │   ├── bricklet_lcd_16x2.h │   ├── bricklet_lcd_20x4.c │   ├── bricklet_lcd_20x4.h │   ├── bricklet_led_strip.c │   ├── bricklet_led_strip.h │   ├── bricklet_led_strip_v2.c │   ├── bricklet_led_strip_v2.h │   ├── bricklet_linear_poti.c │   ├── bricklet_linear_poti.h │   ├── bricklet_line.c │   ├── bricklet_line.h │   ├── bricklet_load_cell.c │   ├── bricklet_load_cell.h │   ├── bricklet_load_cell_v2.c │   ├── bricklet_load_cell_v2.h │   ├── bricklet_moisture.c │   ├── bricklet_moisture.h │   ├── bricklet_motion_detector.c │   ├── bricklet_motion_detector.h │   ├── bricklet_motion_detector_v2.c │   ├── bricklet_motion_detector_v2.h │   ├── bricklet_motorized_linear_poti.c │   ├── bricklet_motorized_linear_poti.h │   ├── bricklet_multi_touch.c │   ├── bricklet_multi_touch.h │   ├── bricklet_nfc.c │   ├── bricklet_nfc.h │   ├── bricklet_nfc_rfid.c │   ├── bricklet_nfc_rfid.h │   ├── bricklet_oled_128x64.c │   ├── bricklet_oled_128x64.h │   ├── bricklet_oled_128x64_v2.c │   ├── bricklet_oled_128x64_v2.h │   ├── bricklet_oled_64x48.c │   ├── bricklet_oled_64x48.h │   ├── bricklet_one_wire.c │   ├── bricklet_one_wire.h │   ├── bricklet_outdoor_weather.c │   ├── bricklet_outdoor_weather.h │   ├── bricklet_particulate_matter.c │   ├── bricklet_particulate_matter.h │   ├── bricklet_piezo_buzzer.c │   ├── bricklet_piezo_buzzer.h │   ├── bricklet_piezo_speaker.c │   ├── bricklet_piezo_speaker.h │   ├── bricklet_ptc.c │   ├── bricklet_ptc.h │   ├── bricklet_ptc_v2.c │   ├── bricklet_ptc_v2.h │   ├── bricklet_real_time_clock.c │   ├── bricklet_real_time_clock.h │   ├── bricklet_real_time_clock_v2.c │   ├── bricklet_real_time_clock_v2.h │   ├── bricklet_remote_switch.c │   ├── bricklet_remote_switch.h │   ├── bricklet_remote_switch_v2.c │   ├── bricklet_remote_switch_v2.h │   ├── bricklet_rgb_led_button.c │   ├── bricklet_rgb_led_button.h │   ├── bricklet_rgb_led.c │   ├── bricklet_rgb_led.h │   ├── bricklet_rgb_led_matrix.c │   ├── bricklet_rgb_led_matrix.h │   ├── bricklet_rotary_encoder.c │   ├── bricklet_rotary_encoder.h │   ├── bricklet_rotary_encoder_v2.c │   ├── bricklet_rotary_encoder_v2.h │   ├── bricklet_rotary_poti.c │   ├── bricklet_rotary_poti.h │   ├── bricklet_rs232.c │   ├── bricklet_rs232.h │   ├── bricklet_rs232_v2.c │   ├── bricklet_rs232_v2.h │   ├── bricklet_rs485.c │   ├── bricklet_rs485.h │   ├── bricklet_segment_display_4x7.c │   ├── bricklet_segment_display_4x7.h │   ├── bricklet_solid_state_relay.c │   ├── bricklet_solid_state_relay.h │   ├── bricklet_solid_state_relay_v2.c │   ├── bricklet_solid_state_relay_v2.h │   ├── bricklet_sound_intensity.c │   ├── bricklet_sound_intensity.h │   ├── bricklet_sound_pressure_level.c │   ├── bricklet_sound_pressure_level.h │   ├── bricklet_temperature.c │   ├── bricklet_temperature.h │   ├── bricklet_temperature_ir.c │   ├── bricklet_temperature_ir.h │   ├── bricklet_temperature_ir_v2.c │   ├── bricklet_temperature_ir_v2.h │   ├── bricklet_temperature_v2.c │   ├── bricklet_temperature_v2.h │   ├── bricklet_thermal_imaging.c │   ├── bricklet_thermal_imaging.h │   ├── bricklet_thermocouple.c │   ├── bricklet_thermocouple.h │   ├── bricklet_thermocouple_v2.c │   ├── bricklet_thermocouple_v2.h │   ├── bricklet_tilt.c │   ├── bricklet_tilt.h │   ├── bricklet_uv_light.c │   ├── bricklet_uv_light.h │   ├── bricklet_uv_light_v2.c │   ├── bricklet_uv_light_v2.h │   ├── bricklet_voltage.c │   ├── bricklet_voltage_current.c │   ├── bricklet_voltage_current.h │   ├── bricklet_voltage_current_v2.c │   ├── bricklet_voltage_current_v2.h │   ├── bricklet_voltage.h │   ├── brick_master.c │   ├── brick_master.h │   ├── brick_red.c │   ├── brick_red.h │   ├── brick_servo.c │   ├── brick_servo.h │   ├── brick_silent_stepper.c │   ├── brick_silent_stepper.h │   ├── brick_stepper.c │   ├── brick_stepper.h │   ├── ip_connection.c │   ├── ip_connection.h │   ├── Makefile │   └── tinkerforge.def └── yaml-cpp ├── CMakeLists.txt ├── CONTRIBUTING.md ├── include │   └── yaml-cpp ├── install.txt ├── LICENSE ├── README.md ├── src │   ├── binary.cpp │   ├── collectionstack.h │   ├── contrib │   ├── convert.cpp │   ├── directives.cpp │   ├── directives.h │   ├── emit.cpp │   ├── emitfromevents.cpp │   ├── emitter.cpp │   ├── emitterstate.cpp │   ├── emitterstate.h │   ├── emitterutils.cpp │   ├── emitterutils.h │   ├── exceptions.cpp │   ├── exp.cpp │   ├── exp.h │   ├── indentation.h │   ├── memory.cpp │   ├── nodebuilder.cpp │   ├── nodebuilder.h │   ├── node.cpp │   ├── node_data.cpp │   ├── nodeevents.cpp │   ├── nodeevents.h │   ├── null.cpp │   ├── ostream_wrapper.cpp │   ├── parse.cpp │   ├── parser.cpp │   ├── ptr_vector.h │   ├── regeximpl.h │   ├── regex_yaml.cpp │   ├── regex_yaml.h │   ├── scanner.cpp │   ├── scanner.h │   ├── scanscalar.cpp │   ├── scanscalar.h │   ├── scantag.cpp │   ├── scantag.h │   ├── scantoken.cpp │   ├── setting.h │   ├── simplekey.cpp │   ├── singledocparser.cpp │   ├── singledocparser.h │   ├── streamcharsource.h │   ├── stream.cpp │   ├── stream.h │   ├── stringsource.h │   ├── tag.cpp │   ├── tag.h │   └── token.h ├── test │   ├── CMakeLists.txt │   ├── create-emitter-tests.py │   ├── gtest-1.8.0 │   ├── handler_test.h │   ├── integration │   ├── main.cpp │   ├── mock_event_handler.h │   ├── node │   ├── ostream_wrapper_test.cpp │   ├── regex_test.cpp │   └── specexamples.h ├── util │   ├── api.cpp │   ├── CMakeLists.txt │   ├── parse.cpp │   ├── read.cpp │   └── sandbox.cpp ├── yaml-cpp-config.cmake.in ├── yaml-cpp-config-version.cmake.in └── yaml-cpp.pc.cmake ```

The CMakeLists.txt in the base directory is:

# use modern target-based cmake features
cmake_minimum_required(VERSION 3.0)

# global compiler settings (propagated to subs!!!)
add_definitions(-Wall -g -Wfatal-errors)

# projectname
project(ff1_selfcheck)

## TODO: unfortunately the toolchain is somehow not propagated to some test subs of yaml-cpp,
## therefore we disable test-cases completely for now.
## A better solution would be to ensure that even the test subs use the given toolchain
set(YAML_CPP_BUILD_TESTS OFF CACHE BOOL "Disable testing" FORCE)

# add sub directories to CMake build-tree
add_subdirectory(subs/yaml-cpp)
add_subdirectory(subs/brick)
add_subdirectory(subs/af3pihal)

# executable to create
add_executable(${PROJECT_NAME}
    src/main.cpp
    src/peripherals/DeviceFile.cpp
    src/peripherals/Brick.cpp
    src/peripherals/Network.cpp

    src/errout/ErrorDisplay_7seg.cpp
    src/errout/ErrorDisplay_Pipe.cpp
    src/errout/ErrorDisplay_LEDButton.cpp
    src/errout/ErrorDisplay_Server.cpp
)

# link libraries
target_link_libraries(${PROJECT_NAME}
    PRIVATE
        yaml-cpp # imported target
        brick    # imported target
        af3pihal # imported target
        pthread  # system lib
        #boost_program_options
)

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
Subfiles The one in `subs/brick` is: ``` # use modern target-based cmake features cmake_minimum_required (VERSION 3.0) # projectname project (brick) # executable to create add_library (${PROJECT_NAME} ./source/brick_red.c ./source/bricklet_industrial_dual_0_20ma.c ./source/bricklet_io4_v2.c ./source/bricklet_real_time_clock_v2.c ./source/bricklet_particulate_matter.c ./source/bricklet_lcd_128x64.c ./source/bricklet_load_cell_v2.c ./source/bricklet_voltage_current_v2.c ./source/bricklet_color.c ./source/bricklet_dual_button_v2.c ./source/bricklet_laser_range_finder.c ./source/bricklet_analog_out.c ./source/bricklet_rgb_led.c ./source/bricklet_nfc_rfid.c ./source/bricklet_oled_128x64_v2.c ./source/bricklet_tilt.c ./source/bricklet_gps_v2.c ./source/bricklet_led_strip.c ./source/bricklet_rs232.c ./source/brick_servo.c ./source/bricklet_moisture.c ./source/bricklet_rgb_led_button.c ./source/bricklet_rotary_encoder_v2.c ./source/bricklet_thermocouple.c ./source/bricklet_temperature_ir_v2.c ./source/bricklet_industrial_digital_in_4_v2.c ./source/bricklet_ambient_light_v2.c ./source/bricklet_temperature_ir.c ./source/brick_imu_v2.c ./source/bricklet_oled_128x64.c ./source/bricklet_humidity_v2.c ./source/bricklet_led_strip_v2.c ./source/bricklet_dust_detector.c ./source/bricklet_industrial_counter.c ./source/bricklet_temperature_v2.c ./source/bricklet_industrial_analog_out.c ./source/bricklet_dual_relay.c ./source/bricklet_sound_intensity.c ./source/bricklet_isolator.c ./source/ip_connection.c ./source/bricklet_industrial_quad_relay_v2.c ./source/bricklet_industrial_dual_0_20ma_v2.c ./source/bricklet_rotary_encoder.c ./source/bricklet_lcd_16x2.c ./source/bricklet_analog_in.c ./source/bricklet_thermocouple_v2.c ./source/bricklet_industrial_dual_analog_in.c ./source/bricklet_oled_64x48.c ./source/bricklet_rgb_led_matrix.c ./source/bricklet_motion_detector_v2.c ./source/bricklet_industrial_analog_out_v2.c ./source/bricklet_solid_state_relay.c ./source/bricklet_nfc.c ./source/bricklet_remote_switch_v2.c ./source/bricklet_barometer_v2.c ./source/bricklet_motorized_linear_poti.c ./source/bricklet_linear_poti.c ./source/bricklet_industrial_dual_relay.c ./source/bricklet_co2.c ./source/bricklet_rotary_poti.c ./source/bricklet_dual_button.c ./source/bricklet_industrial_digital_in_4.c ./source/bricklet_accelerometer.c ./source/bricklet_piezo_speaker.c ./source/bricklet_rs485.c ./source/brick_dc.c ./source/bricklet_current12.c ./source/bricklet_sound_pressure_level.c ./source/bricklet_io4.c ./source/bricklet_multi_touch.c ./source/bricklet_humidity.c ./source/bricklet_ptc_v2.c ./source/bricklet_piezo_buzzer.c ./source/bricklet_io16.c ./source/bricklet_distance_ir.c ./source/brick_silent_stepper.c ./source/bricklet_analog_in_v2.c ./source/bricklet_remote_switch.c ./source/bricklet_load_cell.c ./source/bricklet_air_quality.c ./source/bricklet_voltage.c ./source/bricklet_segment_display_4x7.c ./source/bricklet_thermal_imaging.c ./source/bricklet_io16_v2.c ./source/bricklet_rs232_v2.c ./source/bricklet_analog_out_v2.c ./source/bricklet_industrial_digital_out_4.c ./source/bricklet_distance_ir_v2.c ./source/bricklet_can.c ./source/brick_stepper.c ./source/bricklet_voltage_current.c ./source/bricklet_analog_in_v3.c ./source/bricklet_hall_effect.c ./source/bricklet_uv_light_v2.c ./source/bricklet_ptc.c ./source/bricklet_solid_state_relay_v2.c ./source/bricklet_real_time_clock.c ./source/bricklet_ambient_light.c ./source/bricklet_uv_light.c ./source/bricklet_barometer.c ./source/bricklet_one_wire.c ./source/bricklet_industrial_dual_analog_in_v2.c ./source/brick_imu.c ./source/bricklet_analog_out_v3.c ./source/bricklet_dmx.c ./source/brick_master.c ./source/bricklet_lcd_20x4.c ./source/bricklet_joystick.c ./source/bricklet_outdoor_weather.c ./source/bricklet_distance_us.c ./source/bricklet_line.c ./source/bricklet_can_v2.c ./source/bricklet_current25.c ./source/bricklet_gps.c ./source/bricklet_temperature.c ./source/bricklet_industrial_digital_out_4_v2.c ./source/bricklet_motion_detector.c ./source/bricklet_industrial_quad_relay.c ) # directories where to search for header files target_include_directories(${PROJECT_NAME} PUBLIC source # the headerfiles in source are the includes ) target_compile_features(${PROJECT_NAME} PRIVATE c_std_11) ```
The output in `C/C++` is: ``` initialized workspace/didChangeConfiguration IntelliSense Engine = Default. Autocomplete is enabled. Error squiggles are enabled. File exclude: **/.git File exclude: **/.svn File exclude: **/.hg File exclude: **/CVS File exclude: **/.DS_Store File exclude: **/.vscode Search exclude: **/node_modules Search exclude: **/bower_components Search exclude: **/.vscode textDocument/didOpen cpptools/queryCompilerDefaults Attempting to get defaults from compiler found on the machine: '/usr/bin/clang' terminating child process: 13949 Attempting to get defaults from compiler found on the machine: '/usr/bin/clang' terminating child process: 13964 cpptools/activeDocumentChange cpptools/textEditorSelectionChange textDocument/codeAction cpptools/didChangeFolderSettings Attempting to get defaults from compiler in "compilerPath" property: '/usr/bin/g++' terminating child process: 13973 Custom configuration provider 'CMake Integration' registered Code browsing service initialized Attempting to get defaults from compiler in "compilerPath" property: '/usr/bin/g++' terminating child process: 13978 Folder: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/ will be indexed Folder: /usr/local/include/ will be indexed Folder: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include-fixed/ will be indexed Folder: /usr/include/ will be indexed Folder: /home/flood/work/fortiss/ff1/ff1_selfcheck/ will be indexed Populate include completion cache. textDocument/didOpen Discovering files... sending compilation args for /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp include: /home/flood/work/fortiss/ff1/ff1_selfcheck/src include: /usr/include/c++/8.2.1 include: /usr/include/c++/8.2.1/x86_64-pc-linux-gnu include: /usr/include/c++/8.2.1/backward include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include include: /usr/local/include include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include-fixed include: /usr/include define: __STDC__=1 define: __cplusplus=201703L define: __STDC_UTF_16__=1 define: __STDC_UTF_32__=1 define: __STDC_HOSTED__=1 define: __GNUC__=8 define: __GNUC_MINOR__=2 define: __GNUC_PATCHLEVEL__=1 define: __VERSION__="8.2.1 20181127" define: __ATOMIC_RELAXED=0 define: __ATOMIC_SEQ_CST=5 define: __ATOMIC_ACQUIRE=2 define: __ATOMIC_RELEASE=3 define: __ATOMIC_ACQ_REL=4 define: __ATOMIC_CONSUME=1 define: __pic__=2 define: __PIC__=2 define: __pie__=2 define: __PIE__=2 define: __FINITE_MATH_ONLY__=0 define: _LP64=1 define: __LP64__=1 define: __SIZEOF_INT__=4 define: __SIZEOF_LONG__=8 define: __SIZEOF_LONG_LONG__=8 define: __SIZEOF_SHORT__=2 define: __SIZEOF_FLOAT__=4 define: __SIZEOF_DOUBLE__=8 define: __SIZEOF_LONG_DOUBLE__=16 define: __SIZEOF_SIZE_T__=8 define: __CHAR_BIT__=8 define: __BIGGEST_ALIGNMENT__=16 define: __ORDER_LITTLE_ENDIAN__=1234 define: __ORDER_BIG_ENDIAN__=4321 define: __ORDER_PDP_ENDIAN__=3412 define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __SIZEOF_POINTER__=8 define: __GNUG__=8 define: __SIZE_TYPE__=long unsigned int define: __PTRDIFF_TYPE__=long int define: __WCHAR_TYPE__=int define: __WINT_TYPE__=unsigned int define: __INTMAX_TYPE__=long int define: __UINTMAX_TYPE__=long unsigned int define: __CHAR16_TYPE__=short unsigned int define: __CHAR32_TYPE__=unsigned int define: __SIG_ATOMIC_TYPE__=int define: __INT8_TYPE__=signed char define: __INT16_TYPE__=short int define: __INT32_TYPE__=int define: __INT64_TYPE__=long int define: __UINT8_TYPE__=unsigned char define: __UINT16_TYPE__=short unsigned int define: __UINT32_TYPE__=unsigned int define: __UINT64_TYPE__=long unsigned int define: __INT_LEAST8_TYPE__=signed char define: __INT_LEAST16_TYPE__=short int define: __INT_LEAST32_TYPE__=int define: __INT_LEAST64_TYPE__=long int define: __UINT_LEAST8_TYPE__=unsigned char define: __UINT_LEAST16_TYPE__=short unsigned int define: __UINT_LEAST32_TYPE__=unsigned int define: __UINT_LEAST64_TYPE__=long unsigned int define: __INT_FAST8_TYPE__=signed char define: __INT_FAST16_TYPE__=long int define: __INT_FAST32_TYPE__=long int define: __INT_FAST64_TYPE__=long int define: __UINT_FAST8_TYPE__=unsigned char define: __UINT_FAST16_TYPE__=long unsigned int define: __UINT_FAST32_TYPE__=long unsigned int define: __UINT_FAST64_TYPE__=long unsigned int define: __INTPTR_TYPE__=long int define: __UINTPTR_TYPE__=long unsigned int define: __has_include(STR)=__has_include__(STR) define: __has_include_next(STR)=__has_include_next__(STR) define: __GXX_WEAK__=1 define: __DEPRECATED=1 define: __GXX_RTTI=1 define: __cpp_rtti=199711 define: __GXX_EXPERIMENTAL_CXX0X__=1 define: __cpp_binary_literals=201304 define: __cpp_hex_float=201603 define: __cpp_runtime_arrays=198712 define: __cpp_raw_strings=200710 define: __cpp_unicode_literals=200710 define: __cpp_user_defined_literals=200809 define: __cpp_lambdas=200907 define: __cpp_decltype=200707 define: __cpp_attributes=200809 define: __cpp_rvalue_reference=200610 define: __cpp_rvalue_references=200610 define: __cpp_variadic_templates=200704 define: __cpp_initializer_lists=200806 define: __cpp_delegating_constructors=200604 define: __cpp_nsdmi=200809 define: __cpp_inheriting_constructors=201511 define: __cpp_ref_qualifiers=200710 define: __cpp_alias_templates=200704 define: __cpp_return_type_deduction=201304 define: __cpp_init_captures=201304 define: __cpp_generic_lambdas=201304 define: __cpp_decltype_auto=201304 define: __cpp_aggregate_nsdmi=201304 define: __cpp_variable_templates=201304 define: __cpp_digit_separators=201309 define: __cpp_unicode_characters=201411 define: __cpp_static_assert=201411 define: __cpp_namespace_attributes=201411 define: __cpp_enumerator_attributes=201411 define: __cpp_nested_namespace_definitions=201411 define: __cpp_fold_expressions=201603 define: __cpp_nontype_template_args=201411 define: __cpp_range_based_for=201603 define: __cpp_constexpr=201603 define: __cpp_if_constexpr=201606 define: __cpp_capture_star_this=201603 define: __cpp_inline_variables=201606 define: __cpp_aggregate_bases=201603 define: __cpp_deduction_guides=201611 define: __cpp_noexcept_function_type=201510 define: __cpp_template_auto=201606 define: __cpp_structured_bindings=201606 define: __cpp_variadic_using=201611 define: __cpp_sized_deallocation=201309 define: __cpp_aligned_new=201606 define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=16 define: __cpp_template_template_args=201611 define: __cpp_threadsafe_static_init=200806 define: __EXCEPTIONS=1 define: __cpp_exceptions=199711 define: __GXX_ABI_VERSION=1013 define: __SCHAR_MAX__=0x7f define: __SHRT_MAX__=0x7fff define: __INT_MAX__=0x7fffffff define: __LONG_MAX__=0x7fffffffffffffffL define: __LONG_LONG_MAX__=0x7fffffffffffffffLL define: __WCHAR_MAX__=0x7fffffff define: __WCHAR_MIN__=(-__WCHAR_MAX__ - 1) define: __WINT_MAX__=0xffffffffU define: __WINT_MIN__=0U define: __PTRDIFF_MAX__=0x7fffffffffffffffL define: __SIZE_MAX__=0xffffffffffffffffUL define: __SCHAR_WIDTH__=8 define: __SHRT_WIDTH__=16 define: __INT_WIDTH__=32 define: __LONG_WIDTH__=64 define: __LONG_LONG_WIDTH__=64 define: __WCHAR_WIDTH__=32 define: __WINT_WIDTH__=32 define: __PTRDIFF_WIDTH__=64 define: __SIZE_WIDTH__=64 define: __INTMAX_MAX__=0x7fffffffffffffffL define: __INTMAX_C(c)=c ## L define: __UINTMAX_MAX__=0xffffffffffffffffUL define: __UINTMAX_C(c)=c ## UL define: __INTMAX_WIDTH__=64 define: __SIG_ATOMIC_MAX__=0x7fffffff define: __SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) define: __SIG_ATOMIC_WIDTH__=32 define: __INT8_MAX__=0x7f define: __INT16_MAX__=0x7fff define: __INT32_MAX__=0x7fffffff define: __INT64_MAX__=0x7fffffffffffffffL define: __UINT8_MAX__=0xff define: __UINT16_MAX__=0xffff define: __UINT32_MAX__=0xffffffffU define: __UINT64_MAX__=0xffffffffffffffffUL define: __INT_LEAST8_MAX__=0x7f define: __INT8_C(c)=c define: __INT_LEAST8_WIDTH__=8 define: __INT_LEAST16_MAX__=0x7fff define: __INT16_C(c)=c define: __INT_LEAST16_WIDTH__=16 define: __INT_LEAST32_MAX__=0x7fffffff define: __INT32_C(c)=c define: __INT_LEAST32_WIDTH__=32 define: __INT_LEAST64_MAX__=0x7fffffffffffffffL define: __INT64_C(c)=c ## L define: __INT_LEAST64_WIDTH__=64 define: __UINT_LEAST8_MAX__=0xff define: __UINT8_C(c)=c define: __UINT_LEAST16_MAX__=0xffff define: __UINT16_C(c)=c define: __UINT_LEAST32_MAX__=0xffffffffU define: __UINT32_C(c)=c ## U define: __UINT_LEAST64_MAX__=0xffffffffffffffffUL define: __UINT64_C(c)=c ## UL define: __INT_FAST8_MAX__=0x7f define: __INT_FAST8_WIDTH__=8 define: __INT_FAST16_MAX__=0x7fffffffffffffffL define: __INT_FAST16_WIDTH__=64 define: __INT_FAST32_MAX__=0x7fffffffffffffffL define: __INT_FAST32_WIDTH__=64 define: __INT_FAST64_MAX__=0x7fffffffffffffffL define: __INT_FAST64_WIDTH__=64 define: __UINT_FAST8_MAX__=0xff define: __UINT_FAST16_MAX__=0xffffffffffffffffUL define: __UINT_FAST32_MAX__=0xffffffffffffffffUL define: __UINT_FAST64_MAX__=0xffffffffffffffffUL define: __INTPTR_MAX__=0x7fffffffffffffffL define: __INTPTR_WIDTH__=64 define: __UINTPTR_MAX__=0xffffffffffffffffUL define: __GCC_IEC_559=2 define: __GCC_IEC_559_COMPLEX=2 define: __FLT_EVAL_METHOD__=0 define: __FLT_EVAL_METHOD_TS_18661_3__=0 define: __DEC_EVAL_METHOD__=2 define: __FLT_RADIX__=2 define: __FLT_MANT_DIG__=24 define: __FLT_DIG__=6 define: __FLT_MIN_EXP__=(-125) define: __FLT_MIN_10_EXP__=(-37) define: __FLT_MAX_EXP__=128 define: __FLT_MAX_10_EXP__=38 define: __FLT_DECIMAL_DIG__=9 define: __FLT_MAX__=3.40282346638528859811704183484516925e+38F define: __FLT_MIN__=1.17549435082228750796873653722224568e-38F define: __FLT_EPSILON__=1.19209289550781250000000000000000000e-7F define: __FLT_DENORM_MIN__=1.40129846432481707092372958328991613e-45F define: __FLT_HAS_DENORM__=1 define: __FLT_HAS_INFINITY__=1 define: __FLT_HAS_QUIET_NAN__=1 define: __DBL_MANT_DIG__=53 define: __DBL_DIG__=15 define: __DBL_MIN_EXP__=(-1021) define: __DBL_MIN_10_EXP__=(-307) define: __DBL_MAX_EXP__=1024 define: __DBL_MAX_10_EXP__=308 define: __DBL_DECIMAL_DIG__=17 define: __DBL_MAX__=double(1.79769313486231570814527423731704357e+308L) define: __DBL_MIN__=double(2.22507385850720138309023271733240406e-308L) define: __DBL_EPSILON__=double(2.22044604925031308084726333618164062e-16L) define: __DBL_DENORM_MIN__=double(4.94065645841246544176568792868221372e-324L) define: __DBL_HAS_DENORM__=1 define: __DBL_HAS_INFINITY__=1 define: __DBL_HAS_QUIET_NAN__=1 define: __LDBL_MANT_DIG__=64 define: __LDBL_DIG__=18 define: __LDBL_MIN_EXP__=(-16381) define: __LDBL_MIN_10_EXP__=(-4931) define: __LDBL_MAX_EXP__=16384 define: __LDBL_MAX_10_EXP__=4932 define: __DECIMAL_DIG__=21 define: __LDBL_DECIMAL_DIG__=21 define: __LDBL_MAX__=1.18973149535723176502126385303097021e+4932L define: __LDBL_MIN__=3.36210314311209350626267781732175260e-4932L define: __LDBL_EPSILON__=1.08420217248550443400745280086994171e-19L define: __LDBL_DENORM_MIN__=3.64519953188247460252840593361941982e-4951L define: __LDBL_HAS_DENORM__=1 define: __LDBL_HAS_INFINITY__=1 define: __LDBL_HAS_QUIET_NAN__=1 define: __FLT32_MANT_DIG__=24 define: __FLT32_DIG__=6 define: __FLT32_MIN_EXP__=(-125) define: __FLT32_MIN_10_EXP__=(-37) define: __FLT32_MAX_EXP__=128 define: __FLT32_MAX_10_EXP__=38 define: __FLT32_DECIMAL_DIG__=9 define: __FLT32_MAX__=3.40282346638528859811704183484516925e+38F32 define: __FLT32_MIN__=1.17549435082228750796873653722224568e-38F32 define: __FLT32_EPSILON__=1.19209289550781250000000000000000000e-7F32 define: __FLT32_DENORM_MIN__=1.40129846432481707092372958328991613e-45F32 define: __FLT32_HAS_DENORM__=1 define: __FLT32_HAS_INFINITY__=1 define: __FLT32_HAS_QUIET_NAN__=1 define: __FLT64_MANT_DIG__=53 define: __FLT64_DIG__=15 define: __FLT64_MIN_EXP__=(-1021) define: __FLT64_MIN_10_EXP__=(-307) define: __FLT64_MAX_EXP__=1024 define: __FLT64_MAX_10_EXP__=308 define: __FLT64_DECIMAL_DIG__=17 define: __FLT64_MAX__=1.79769313486231570814527423731704357e+308F64 define: __FLT64_MIN__=2.22507385850720138309023271733240406e-308F64 define: __FLT64_EPSILON__=2.22044604925031308084726333618164062e-16F64 define: __FLT64_DENORM_MIN__=4.94065645841246544176568792868221372e-324F64 define: __FLT64_HAS_DENORM__=1 define: __FLT64_HAS_INFINITY__=1 define: __FLT64_HAS_QUIET_NAN__=1 define: __FLT128_MANT_DIG__=113 define: __FLT128_DIG__=33 define: __FLT128_MIN_EXP__=(-16381) define: __FLT128_MIN_10_EXP__=(-4931) define: __FLT128_MAX_EXP__=16384 define: __FLT128_MAX_10_EXP__=4932 define: __FLT128_DECIMAL_DIG__=36 define: __FLT128_MAX__=1.18973149535723176508575932662800702e+4932F128 define: __FLT128_MIN__=3.36210314311209350626267781732175260e-4932F128 define: __FLT128_EPSILON__=1.92592994438723585305597794258492732e-34F128 define: __FLT128_DENORM_MIN__=6.47517511943802511092443895822764655e-4966F128 define: __FLT128_HAS_DENORM__=1 define: __FLT128_HAS_INFINITY__=1 define: __FLT128_HAS_QUIET_NAN__=1 define: __FLT32X_MANT_DIG__=53 define: __FLT32X_DIG__=15 define: __FLT32X_MIN_EXP__=(-1021) define: __FLT32X_MIN_10_EXP__=(-307) define: __FLT32X_MAX_EXP__=1024 define: __FLT32X_MAX_10_EXP__=308 define: __FLT32X_DECIMAL_DIG__=17 define: __FLT32X_MAX__=1.79769313486231570814527423731704357e+308F32x define: __FLT32X_MIN__=2.22507385850720138309023271733240406e-308F32x define: __FLT32X_EPSILON__=2.22044604925031308084726333618164062e-16F32x define: __FLT32X_DENORM_MIN__=4.94065645841246544176568792868221372e-324F32x define: __FLT32X_HAS_DENORM__=1 define: __FLT32X_HAS_INFINITY__=1 define: __FLT32X_HAS_QUIET_NAN__=1 define: __FLT64X_MANT_DIG__=64 define: __FLT64X_DIG__=18 define: __FLT64X_MIN_EXP__=(-16381) define: __FLT64X_MIN_10_EXP__=(-4931) define: __FLT64X_MAX_EXP__=16384 define: __FLT64X_MAX_10_EXP__=4932 define: __FLT64X_DECIMAL_DIG__=21 define: __FLT64X_MAX__=1.18973149535723176502126385303097021e+4932F64x define: __FLT64X_MIN__=3.36210314311209350626267781732175260e-4932F64x define: __FLT64X_EPSILON__=1.08420217248550443400745280086994171e-19F64x define: __FLT64X_DENORM_MIN__=3.64519953188247460252840593361941982e-4951F64x define: __FLT64X_HAS_DENORM__=1 define: __FLT64X_HAS_INFINITY__=1 define: __FLT64X_HAS_QUIET_NAN__=1 define: __DEC32_MANT_DIG__=7 define: __DEC32_MIN_EXP__=(-94) define: __DEC32_MAX_EXP__=97 define: __DEC32_MIN__=1E-95DF define: __DEC32_MAX__=9.999999E96DF define: __DEC32_EPSILON__=1E-6DF define: __DEC32_SUBNORMAL_MIN__=0.000001E-95DF define: __DEC64_MANT_DIG__=16 define: __DEC64_MIN_EXP__=(-382) define: __DEC64_MAX_EXP__=385 define: __DEC64_MIN__=1E-383DD define: __DEC64_MAX__=9.999999999999999E384DD define: __DEC64_EPSILON__=1E-15DD define: __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD define: __DEC128_MANT_DIG__=34 define: __DEC128_MIN_EXP__=(-6142) define: __DEC128_MAX_EXP__=6145 define: __DEC128_MIN__=1E-6143DL define: __DEC128_MAX__=9.999999999999999999999999999999999E6144DL define: __DEC128_EPSILON__=1E-33DL define: __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL define: __REGISTER_PREFIX__= define: __USER_LABEL_PREFIX__= define: __GNUC_STDC_INLINE__=1 define: __NO_INLINE__=1 define: __STRICT_ANSI__=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: __GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: __GCC_ATOMIC_SHORT_LOCK_FREE=2 define: __GCC_ATOMIC_INT_LOCK_FREE=2 define: __GCC_ATOMIC_LONG_LOCK_FREE=2 define: __GCC_ATOMIC_LLONG_LOCK_FREE=2 define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_POINTER_LOCK_FREE=2 define: __GCC_HAVE_DWARF2_CFI_ASM=1 define: __PRAGMA_REDEFINE_EXTNAME=1 define: __SSP_STRONG__=3 define: __SIZEOF_INT128__=16 define: __SIZEOF_WCHAR_T__=4 define: __SIZEOF_WINT_T__=4 define: __SIZEOF_PTRDIFF_T__=8 define: __amd64=1 define: __amd64__=1 define: __x86_64=1 define: __x86_64__=1 define: __SIZEOF_FLOAT80__=16 define: __SIZEOF_FLOAT128__=16 define: __ATOMIC_HLE_ACQUIRE=65536 define: __ATOMIC_HLE_RELEASE=131072 define: __GCC_ASM_FLAG_OUTPUTS__=1 define: __k8=1 define: __k8__=1 define: __code_model_small__=1 define: __MMX__=1 define: __SSE__=1 define: __SSE2__=1 define: __FXSR__=1 define: __SSE_MATH__=1 define: __SSE2_MATH__=1 define: __SEG_FS=1 define: __SEG_GS=1 define: __gnu_linux__=1 define: __linux=1 define: __linux__=1 define: __unix=1 define: __unix__=1 define: __ELF__=1 define: __DECIMAL_BID_FORMAT__=1 define: _GNU_SOURCE=1 define: _STDC_PREDEF_H=1 define: __STDC_IEC_559__=1 define: __STDC_IEC_559_COMPLEX__=1 define: __STDC_ISO_10646__=201706L other: --g++ other: --gnu_version=80201 stdver: --c++17 intelliSenseMode: gcc Checking for syntax errors: file:///home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp queue_update_intellisense for files in tu of: /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp Processing folder (recursive): /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include/ Processing folder (recursive): /usr/local/include/ textDocument/hover Processing folder (recursive): /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include-fixed/ Processing folder (recursive): /usr/include/ cpptools/fileCreated cpptools/fileCreated cpptools/fileCreated cpptools/fileCreated cpptools/fileCreated cpptools/fileCreated cpptools/fileDeleted cpptools/fileDeleted cpptools/fileDeleted cpptools/fileDeleted cpptools/fileDeleted cpptools/fileDeleted terminating child process: 14033 errorSquiggles count: 93 textDocument/codeAction textDocument/hover textDocument/hover cpptools/activeDocumentChange cpptools/textEditorSelectionChange textDocument/documentHighlight cpptools/textEditorSelectionChange textDocument/codeAction 1 include path suggestion(s) discovered. Processing folder (recursive): /home/flood/work/fortiss/ff1/ff1_selfcheck/ Discovering files: 71386 file(s) processed 0 file(s) removed from database Done discovering files. Parsing open files... Parsing remaining files... Parsing: 0 files(s) processed Done parsing remaining files. Done parsing open files. textDocument/codeAction 1 include path suggestion(s) discovered. cpptools/didChangeFolderSettings $/setTraceNotification workspace/didChangeConfiguration IntelliSense Engine = Default. The extension will use the Tag Parser for IntelliSense when #includes don't resolve. Autocomplete is enabled. Error squiggles are enabled. terminating child process: 13982 still alive, killing... not exited yet. Will sleep for 1 seconds and try again Closing the communication channel. Shutting down IntelliSense server: /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp Checking for syntax errors: file:///home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp $/cancelRequest textDocument/codeAction 1 include path suggestion(s) discovered. textDocument/hover IntelliSense client not available, using Tag Parser for go to definition. IntelliSense client not available, using Tag Parser for quick info. using Tag Parser for quick info $/cancelRequest sending compilation args for /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp include: /home/flood/work/fortiss/ff1/ff1_selfcheck/src include: /usr/include/c++/8.2.1 include: /usr/include/c++/8.2.1/x86_64-pc-linux-gnu include: /usr/include/c++/8.2.1/backward include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include include: /usr/local/include include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include-fixed include: /usr/include define: __STDC__=1 define: __cplusplus=201703L define: __STDC_UTF_16__=1 define: __STDC_UTF_32__=1 define: __STDC_HOSTED__=1 define: __GNUC__=8 define: __GNUC_MINOR__=2 define: __GNUC_PATCHLEVEL__=1 define: __VERSION__="8.2.1 20181127" define: __ATOMIC_RELAXED=0 define: __ATOMIC_SEQ_CST=5 define: __ATOMIC_ACQUIRE=2 define: __ATOMIC_RELEASE=3 define: __ATOMIC_ACQ_REL=4 define: __ATOMIC_CONSUME=1 define: __pic__=2 define: __PIC__=2 define: __pie__=2 define: __PIE__=2 define: __FINITE_MATH_ONLY__=0 define: _LP64=1 define: __LP64__=1 define: __SIZEOF_INT__=4 define: __SIZEOF_LONG__=8 define: __SIZEOF_LONG_LONG__=8 define: __SIZEOF_SHORT__=2 define: __SIZEOF_FLOAT__=4 define: __SIZEOF_DOUBLE__=8 define: __SIZEOF_LONG_DOUBLE__=16 define: __SIZEOF_SIZE_T__=8 define: __CHAR_BIT__=8 define: __BIGGEST_ALIGNMENT__=16 define: __ORDER_LITTLE_ENDIAN__=1234 define: __ORDER_BIG_ENDIAN__=4321 define: __ORDER_PDP_ENDIAN__=3412 define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __SIZEOF_POINTER__=8 define: __GNUG__=8 define: __SIZE_TYPE__=long unsigned int define: __PTRDIFF_TYPE__=long int define: __WCHAR_TYPE__=int define: __WINT_TYPE__=unsigned int define: __INTMAX_TYPE__=long int define: __UINTMAX_TYPE__=long unsigned int define: __CHAR16_TYPE__=short unsigned int define: __CHAR32_TYPE__=unsigned int define: __SIG_ATOMIC_TYPE__=int define: __INT8_TYPE__=signed char define: __INT16_TYPE__=short int define: __INT32_TYPE__=int define: __INT64_TYPE__=long int define: __UINT8_TYPE__=unsigned char define: __UINT16_TYPE__=short unsigned int define: __UINT32_TYPE__=unsigned int define: __UINT64_TYPE__=long unsigned int define: __INT_LEAST8_TYPE__=signed char define: __INT_LEAST16_TYPE__=short int define: __INT_LEAST32_TYPE__=int define: __INT_LEAST64_TYPE__=long int define: __UINT_LEAST8_TYPE__=unsigned char define: __UINT_LEAST16_TYPE__=short unsigned int define: __UINT_LEAST32_TYPE__=unsigned int define: __UINT_LEAST64_TYPE__=long unsigned int define: __INT_FAST8_TYPE__=signed char define: __INT_FAST16_TYPE__=long int define: __INT_FAST32_TYPE__=long int define: __INT_FAST64_TYPE__=long int define: __UINT_FAST8_TYPE__=unsigned char define: __UINT_FAST16_TYPE__=long unsigned int define: __UINT_FAST32_TYPE__=long unsigned int define: __UINT_FAST64_TYPE__=long unsigned int define: __INTPTR_TYPE__=long int define: __UINTPTR_TYPE__=long unsigned int define: __has_include(STR)=__has_include__(STR) define: __has_include_next(STR)=__has_include_next__(STR) define: __GXX_WEAK__=1 define: __DEPRECATED=1 define: __GXX_RTTI=1 define: __cpp_rtti=199711 define: __GXX_EXPERIMENTAL_CXX0X__=1 define: __cpp_binary_literals=201304 define: __cpp_hex_float=201603 define: __cpp_runtime_arrays=198712 define: __cpp_raw_strings=200710 define: __cpp_unicode_literals=200710 define: __cpp_user_defined_literals=200809 define: __cpp_lambdas=200907 define: __cpp_decltype=200707 define: __cpp_attributes=200809 define: __cpp_rvalue_reference=200610 define: __cpp_rvalue_references=200610 define: __cpp_variadic_templates=200704 define: __cpp_initializer_lists=200806 define: __cpp_delegating_constructors=200604 define: __cpp_nsdmi=200809 define: __cpp_inheriting_constructors=201511 define: __cpp_ref_qualifiers=200710 define: __cpp_alias_templates=200704 define: __cpp_return_type_deduction=201304 define: __cpp_init_captures=201304 define: __cpp_generic_lambdas=201304 define: __cpp_decltype_auto=201304 define: __cpp_aggregate_nsdmi=201304 define: __cpp_variable_templates=201304 define: __cpp_digit_separators=201309 define: __cpp_unicode_characters=201411 define: __cpp_static_assert=201411 define: __cpp_namespace_attributes=201411 define: __cpp_enumerator_attributes=201411 define: __cpp_nested_namespace_definitions=201411 define: __cpp_fold_expressions=201603 define: __cpp_nontype_template_args=201411 define: __cpp_range_based_for=201603 define: __cpp_constexpr=201603 define: __cpp_if_constexpr=201606 define: __cpp_capture_star_this=201603 define: __cpp_inline_variables=201606 define: __cpp_aggregate_bases=201603 define: __cpp_deduction_guides=201611 define: __cpp_noexcept_function_type=201510 define: __cpp_template_auto=201606 define: __cpp_structured_bindings=201606 define: __cpp_variadic_using=201611 define: __cpp_sized_deallocation=201309 define: __cpp_aligned_new=201606 define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=16 define: __cpp_template_template_args=201611 define: __cpp_threadsafe_static_init=200806 define: __EXCEPTIONS=1 define: __cpp_exceptions=199711 define: __GXX_ABI_VERSION=1013 define: __SCHAR_MAX__=0x7f define: __SHRT_MAX__=0x7fff define: __INT_MAX__=0x7fffffff define: __LONG_MAX__=0x7fffffffffffffffL define: __LONG_LONG_MAX__=0x7fffffffffffffffLL define: __WCHAR_MAX__=0x7fffffff define: __WCHAR_MIN__=(-__WCHAR_MAX__ - 1) define: __WINT_MAX__=0xffffffffU define: __WINT_MIN__=0U define: __PTRDIFF_MAX__=0x7fffffffffffffffL define: __SIZE_MAX__=0xffffffffffffffffUL define: __SCHAR_WIDTH__=8 define: __SHRT_WIDTH__=16 define: __INT_WIDTH__=32 define: __LONG_WIDTH__=64 define: __LONG_LONG_WIDTH__=64 define: __WCHAR_WIDTH__=32 define: __WINT_WIDTH__=32 define: __PTRDIFF_WIDTH__=64 define: __SIZE_WIDTH__=64 define: __INTMAX_MAX__=0x7fffffffffffffffL define: __INTMAX_C(c)=c ## L define: __UINTMAX_MAX__=0xffffffffffffffffUL define: __UINTMAX_C(c)=c ## UL define: __INTMAX_WIDTH__=64 define: __SIG_ATOMIC_MAX__=0x7fffffff define: __SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) define: __SIG_ATOMIC_WIDTH__=32 define: __INT8_MAX__=0x7f define: __INT16_MAX__=0x7fff define: __INT32_MAX__=0x7fffffff define: __INT64_MAX__=0x7fffffffffffffffL define: __UINT8_MAX__=0xff define: __UINT16_MAX__=0xffff define: __UINT32_MAX__=0xffffffffU define: __UINT64_MAX__=0xffffffffffffffffUL define: __INT_LEAST8_MAX__=0x7f define: __INT8_C(c)=c define: __INT_LEAST8_WIDTH__=8 define: __INT_LEAST16_MAX__=0x7fff define: __INT16_C(c)=c define: __INT_LEAST16_WIDTH__=16 define: __INT_LEAST32_MAX__=0x7fffffff define: __INT32_C(c)=c define: __INT_LEAST32_WIDTH__=32 define: __INT_LEAST64_MAX__=0x7fffffffffffffffL define: __INT64_C(c)=c ## L define: __INT_LEAST64_WIDTH__=64 define: __UINT_LEAST8_MAX__=0xff define: __UINT8_C(c)=c define: __UINT_LEAST16_MAX__=0xffff define: __UINT16_C(c)=c define: __UINT_LEAST32_MAX__=0xffffffffU define: __UINT32_C(c)=c ## U define: __UINT_LEAST64_MAX__=0xffffffffffffffffUL define: __UINT64_C(c)=c ## UL define: __INT_FAST8_MAX__=0x7f define: __INT_FAST8_WIDTH__=8 define: __INT_FAST16_MAX__=0x7fffffffffffffffL define: __INT_FAST16_WIDTH__=64 define: __INT_FAST32_MAX__=0x7fffffffffffffffL define: __INT_FAST32_WIDTH__=64 define: __INT_FAST64_MAX__=0x7fffffffffffffffL define: __INT_FAST64_WIDTH__=64 define: __UINT_FAST8_MAX__=0xff define: __UINT_FAST16_MAX__=0xffffffffffffffffUL define: __UINT_FAST32_MAX__=0xffffffffffffffffUL define: __UINT_FAST64_MAX__=0xffffffffffffffffUL define: __INTPTR_MAX__=0x7fffffffffffffffL define: __INTPTR_WIDTH__=64 define: __UINTPTR_MAX__=0xffffffffffffffffUL define: __GCC_IEC_559=2 define: __GCC_IEC_559_COMPLEX=2 define: __FLT_EVAL_METHOD__=0 define: __FLT_EVAL_METHOD_TS_18661_3__=0 define: __DEC_EVAL_METHOD__=2 define: __FLT_RADIX__=2 define: __FLT_MANT_DIG__=24 define: __FLT_DIG__=6 define: __FLT_MIN_EXP__=(-125) define: __FLT_MIN_10_EXP__=(-37) define: __FLT_MAX_EXP__=128 define: __FLT_MAX_10_EXP__=38 define: __FLT_DECIMAL_DIG__=9 define: __FLT_MAX__=3.40282346638528859811704183484516925e+38F define: __FLT_MIN__=1.17549435082228750796873653722224568e-38F define: __FLT_EPSILON__=1.19209289550781250000000000000000000e-7F define: __FLT_DENORM_MIN__=1.40129846432481707092372958328991613e-45F define: __FLT_HAS_DENORM__=1 define: __FLT_HAS_INFINITY__=1 define: __FLT_HAS_QUIET_NAN__=1 define: __DBL_MANT_DIG__=53 define: __DBL_DIG__=15 define: __DBL_MIN_EXP__=(-1021) define: __DBL_MIN_10_EXP__=(-307) define: __DBL_MAX_EXP__=1024 define: __DBL_MAX_10_EXP__=308 define: __DBL_DECIMAL_DIG__=17 define: __DBL_MAX__=double(1.79769313486231570814527423731704357e+308L) define: __DBL_MIN__=double(2.22507385850720138309023271733240406e-308L) define: __DBL_EPSILON__=double(2.22044604925031308084726333618164062e-16L) define: __DBL_DENORM_MIN__=double(4.94065645841246544176568792868221372e-324L) define: __DBL_HAS_DENORM__=1 define: __DBL_HAS_INFINITY__=1 define: __DBL_HAS_QUIET_NAN__=1 define: __LDBL_MANT_DIG__=64 define: __LDBL_DIG__=18 define: __LDBL_MIN_EXP__=(-16381) define: __LDBL_MIN_10_EXP__=(-4931) define: __LDBL_MAX_EXP__=16384 define: __LDBL_MAX_10_EXP__=4932 define: __DECIMAL_DIG__=21 define: __LDBL_DECIMAL_DIG__=21 define: __LDBL_MAX__=1.18973149535723176502126385303097021e+4932L define: __LDBL_MIN__=3.36210314311209350626267781732175260e-4932L define: __LDBL_EPSILON__=1.08420217248550443400745280086994171e-19L define: __LDBL_DENORM_MIN__=3.64519953188247460252840593361941982e-4951L define: __LDBL_HAS_DENORM__=1 define: __LDBL_HAS_INFINITY__=1 define: __LDBL_HAS_QUIET_NAN__=1 define: __FLT32_MANT_DIG__=24 define: __FLT32_DIG__=6 define: __FLT32_MIN_EXP__=(-125) define: __FLT32_MIN_10_EXP__=(-37) define: __FLT32_MAX_EXP__=128 define: __FLT32_MAX_10_EXP__=38 define: __FLT32_DECIMAL_DIG__=9 define: __FLT32_MAX__=3.40282346638528859811704183484516925e+38F32 define: __FLT32_MIN__=1.17549435082228750796873653722224568e-38F32 define: __FLT32_EPSILON__=1.19209289550781250000000000000000000e-7F32 define: __FLT32_DENORM_MIN__=1.40129846432481707092372958328991613e-45F32 define: __FLT32_HAS_DENORM__=1 define: __FLT32_HAS_INFINITY__=1 define: __FLT32_HAS_QUIET_NAN__=1 define: __FLT64_MANT_DIG__=53 define: __FLT64_DIG__=15 define: __FLT64_MIN_EXP__=(-1021) define: __FLT64_MIN_10_EXP__=(-307) define: __FLT64_MAX_EXP__=1024 define: __FLT64_MAX_10_EXP__=308 define: __FLT64_DECIMAL_DIG__=17 define: __FLT64_MAX__=1.79769313486231570814527423731704357e+308F64 define: __FLT64_MIN__=2.22507385850720138309023271733240406e-308F64 define: __FLT64_EPSILON__=2.22044604925031308084726333618164062e-16F64 define: __FLT64_DENORM_MIN__=4.94065645841246544176568792868221372e-324F64 define: __FLT64_HAS_DENORM__=1 define: __FLT64_HAS_INFINITY__=1 define: __FLT64_HAS_QUIET_NAN__=1 define: __FLT128_MANT_DIG__=113 define: __FLT128_DIG__=33 define: __FLT128_MIN_EXP__=(-16381) define: __FLT128_MIN_10_EXP__=(-4931) define: __FLT128_MAX_EXP__=16384 define: __FLT128_MAX_10_EXP__=4932 define: __FLT128_DECIMAL_DIG__=36 define: __FLT128_MAX__=1.18973149535723176508575932662800702e+4932F128 define: __FLT128_MIN__=3.36210314311209350626267781732175260e-4932F128 define: __FLT128_EPSILON__=1.92592994438723585305597794258492732e-34F128 define: __FLT128_DENORM_MIN__=6.47517511943802511092443895822764655e-4966F128 define: __FLT128_HAS_DENORM__=1 define: __FLT128_HAS_INFINITY__=1 define: __FLT128_HAS_QUIET_NAN__=1 define: __FLT32X_MANT_DIG__=53 define: __FLT32X_DIG__=15 define: __FLT32X_MIN_EXP__=(-1021) define: __FLT32X_MIN_10_EXP__=(-307) define: __FLT32X_MAX_EXP__=1024 define: __FLT32X_MAX_10_EXP__=308 define: __FLT32X_DECIMAL_DIG__=17 define: __FLT32X_MAX__=1.79769313486231570814527423731704357e+308F32x define: __FLT32X_MIN__=2.22507385850720138309023271733240406e-308F32x define: __FLT32X_EPSILON__=2.22044604925031308084726333618164062e-16F32x define: __FLT32X_DENORM_MIN__=4.94065645841246544176568792868221372e-324F32x define: __FLT32X_HAS_DENORM__=1 define: __FLT32X_HAS_INFINITY__=1 define: __FLT32X_HAS_QUIET_NAN__=1 define: __FLT64X_MANT_DIG__=64 define: __FLT64X_DIG__=18 define: __FLT64X_MIN_EXP__=(-16381) define: __FLT64X_MIN_10_EXP__=(-4931) define: __FLT64X_MAX_EXP__=16384 define: __FLT64X_MAX_10_EXP__=4932 define: __FLT64X_DECIMAL_DIG__=21 define: __FLT64X_MAX__=1.18973149535723176502126385303097021e+4932F64x define: __FLT64X_MIN__=3.36210314311209350626267781732175260e-4932F64x define: __FLT64X_EPSILON__=1.08420217248550443400745280086994171e-19F64x define: __FLT64X_DENORM_MIN__=3.64519953188247460252840593361941982e-4951F64x define: __FLT64X_HAS_DENORM__=1 define: __FLT64X_HAS_INFINITY__=1 define: __FLT64X_HAS_QUIET_NAN__=1 define: __DEC32_MANT_DIG__=7 define: __DEC32_MIN_EXP__=(-94) define: __DEC32_MAX_EXP__=97 define: __DEC32_MIN__=1E-95DF define: __DEC32_MAX__=9.999999E96DF define: __DEC32_EPSILON__=1E-6DF define: __DEC32_SUBNORMAL_MIN__=0.000001E-95DF define: __DEC64_MANT_DIG__=16 define: __DEC64_MIN_EXP__=(-382) define: __DEC64_MAX_EXP__=385 define: __DEC64_MIN__=1E-383DD define: __DEC64_MAX__=9.999999999999999E384DD define: __DEC64_EPSILON__=1E-15DD define: __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD define: __DEC128_MANT_DIG__=34 define: __DEC128_MIN_EXP__=(-6142) define: __DEC128_MAX_EXP__=6145 define: __DEC128_MIN__=1E-6143DL define: __DEC128_MAX__=9.999999999999999999999999999999999E6144DL define: __DEC128_EPSILON__=1E-33DL define: __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL define: __REGISTER_PREFIX__= define: __USER_LABEL_PREFIX__= define: __GNUC_STDC_INLINE__=1 define: __NO_INLINE__=1 define: __STRICT_ANSI__=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: __GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: __GCC_ATOMIC_SHORT_LOCK_FREE=2 define: __GCC_ATOMIC_INT_LOCK_FREE=2 define: __GCC_ATOMIC_LONG_LOCK_FREE=2 define: __GCC_ATOMIC_LLONG_LOCK_FREE=2 define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_POINTER_LOCK_FREE=2 define: __GCC_HAVE_DWARF2_CFI_ASM=1 define: __PRAGMA_REDEFINE_EXTNAME=1 define: __SSP_STRONG__=3 define: __SIZEOF_INT128__=16 define: __SIZEOF_WCHAR_T__=4 define: __SIZEOF_WINT_T__=4 define: __SIZEOF_PTRDIFF_T__=8 define: __amd64=1 define: __amd64__=1 define: __x86_64=1 define: __x86_64__=1 define: __SIZEOF_FLOAT80__=16 define: __SIZEOF_FLOAT128__=16 define: __ATOMIC_HLE_ACQUIRE=65536 define: __ATOMIC_HLE_RELEASE=131072 define: __GCC_ASM_FLAG_OUTPUTS__=1 define: __k8=1 define: __k8__=1 define: __code_model_small__=1 define: __MMX__=1 define: __SSE__=1 define: __SSE2__=1 define: __FXSR__=1 define: __SSE_MATH__=1 define: __SSE2_MATH__=1 define: __SEG_FS=1 define: __SEG_GS=1 define: __gnu_linux__=1 define: __linux=1 define: __linux__=1 define: __unix=1 define: __unix__=1 define: __ELF__=1 define: __DECIMAL_BID_FORMAT__=1 define: _GNU_SOURCE=1 define: _STDC_PREDEF_H=1 define: __STDC_IEC_559__=1 define: __STDC_IEC_559_COMPLEX__=1 define: __STDC_ISO_10646__=201706L other: --g++ other: --gnu_version=80201 stdver: --c++17 intelliSenseMode: gcc queue_update_intellisense for files in tu of: /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp textDocument/hover $/cancelRequest textDocument/hover $/cancelRequest terminating child process: 14069 errorSquiggles count: 8 Tag Parser will be used for IntelliSense operations in: file:///home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp textDocument/codeAction 1 include path suggestion(s) discovered. textDocument/codeAction 1 include path suggestion(s) discovered. cpptools/didChangeFolderSettings $/setTraceNotification workspace/didChangeConfiguration IntelliSense Engine = Default. Autocomplete is enabled. Error squiggles are enabled. terminating child process: 14052 still alive, killing... not exited yet. Will sleep for 1 seconds and try again Closing the communication channel. Shutting down IntelliSense server: /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp Checking for syntax errors: file:///home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp textDocument/codeAction 1 include path suggestion(s) discovered. sending compilation args for /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp include: /home/flood/work/fortiss/ff1/ff1_selfcheck/src include: /usr/include/c++/8.2.1 include: /usr/include/c++/8.2.1/x86_64-pc-linux-gnu include: /usr/include/c++/8.2.1/backward include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include include: /usr/local/include include: /usr/lib/gcc/x86_64-pc-linux-gnu/8.2.1/include-fixed include: /usr/include define: __STDC__=1 define: __cplusplus=201703L define: __STDC_UTF_16__=1 define: __STDC_UTF_32__=1 define: __STDC_HOSTED__=1 define: __GNUC__=8 define: __GNUC_MINOR__=2 define: __GNUC_PATCHLEVEL__=1 define: __VERSION__="8.2.1 20181127" define: __ATOMIC_RELAXED=0 define: __ATOMIC_SEQ_CST=5 define: __ATOMIC_ACQUIRE=2 define: __ATOMIC_RELEASE=3 define: __ATOMIC_ACQ_REL=4 define: __ATOMIC_CONSUME=1 define: __pic__=2 define: __PIC__=2 define: __pie__=2 define: __PIE__=2 define: __FINITE_MATH_ONLY__=0 define: _LP64=1 define: __LP64__=1 define: __SIZEOF_INT__=4 define: __SIZEOF_LONG__=8 define: __SIZEOF_LONG_LONG__=8 define: __SIZEOF_SHORT__=2 define: __SIZEOF_FLOAT__=4 define: __SIZEOF_DOUBLE__=8 define: __SIZEOF_LONG_DOUBLE__=16 define: __SIZEOF_SIZE_T__=8 define: __CHAR_BIT__=8 define: __BIGGEST_ALIGNMENT__=16 define: __ORDER_LITTLE_ENDIAN__=1234 define: __ORDER_BIG_ENDIAN__=4321 define: __ORDER_PDP_ENDIAN__=3412 define: __BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __FLOAT_WORD_ORDER__=__ORDER_LITTLE_ENDIAN__ define: __SIZEOF_POINTER__=8 define: __GNUG__=8 define: __SIZE_TYPE__=long unsigned int define: __PTRDIFF_TYPE__=long int define: __WCHAR_TYPE__=int define: __WINT_TYPE__=unsigned int define: __INTMAX_TYPE__=long int define: __UINTMAX_TYPE__=long unsigned int define: __CHAR16_TYPE__=short unsigned int define: __CHAR32_TYPE__=unsigned int define: __SIG_ATOMIC_TYPE__=int define: __INT8_TYPE__=signed char define: __INT16_TYPE__=short int define: __INT32_TYPE__=int define: __INT64_TYPE__=long int define: __UINT8_TYPE__=unsigned char define: __UINT16_TYPE__=short unsigned int define: __UINT32_TYPE__=unsigned int define: __UINT64_TYPE__=long unsigned int define: __INT_LEAST8_TYPE__=signed char define: __INT_LEAST16_TYPE__=short int define: __INT_LEAST32_TYPE__=int define: __INT_LEAST64_TYPE__=long int define: __UINT_LEAST8_TYPE__=unsigned char define: __UINT_LEAST16_TYPE__=short unsigned int define: __UINT_LEAST32_TYPE__=unsigned int define: __UINT_LEAST64_TYPE__=long unsigned int define: __INT_FAST8_TYPE__=signed char define: __INT_FAST16_TYPE__=long int define: __INT_FAST32_TYPE__=long int define: __INT_FAST64_TYPE__=long int define: __UINT_FAST8_TYPE__=unsigned char define: __UINT_FAST16_TYPE__=long unsigned int define: __UINT_FAST32_TYPE__=long unsigned int define: __UINT_FAST64_TYPE__=long unsigned int define: __INTPTR_TYPE__=long int define: __UINTPTR_TYPE__=long unsigned int define: __has_include(STR)=__has_include__(STR) define: __has_include_next(STR)=__has_include_next__(STR) define: __GXX_WEAK__=1 define: __DEPRECATED=1 define: __GXX_RTTI=1 define: __cpp_rtti=199711 define: __GXX_EXPERIMENTAL_CXX0X__=1 define: __cpp_binary_literals=201304 define: __cpp_hex_float=201603 define: __cpp_runtime_arrays=198712 define: __cpp_raw_strings=200710 define: __cpp_unicode_literals=200710 define: __cpp_user_defined_literals=200809 define: __cpp_lambdas=200907 define: __cpp_decltype=200707 define: __cpp_attributes=200809 define: __cpp_rvalue_reference=200610 define: __cpp_rvalue_references=200610 define: __cpp_variadic_templates=200704 define: __cpp_initializer_lists=200806 define: __cpp_delegating_constructors=200604 define: __cpp_nsdmi=200809 define: __cpp_inheriting_constructors=201511 define: __cpp_ref_qualifiers=200710 define: __cpp_alias_templates=200704 define: __cpp_return_type_deduction=201304 define: __cpp_init_captures=201304 define: __cpp_generic_lambdas=201304 define: __cpp_decltype_auto=201304 define: __cpp_aggregate_nsdmi=201304 define: __cpp_variable_templates=201304 define: __cpp_digit_separators=201309 define: __cpp_unicode_characters=201411 define: __cpp_static_assert=201411 define: __cpp_namespace_attributes=201411 define: __cpp_enumerator_attributes=201411 define: __cpp_nested_namespace_definitions=201411 define: __cpp_fold_expressions=201603 define: __cpp_nontype_template_args=201411 define: __cpp_range_based_for=201603 define: __cpp_constexpr=201603 define: __cpp_if_constexpr=201606 define: __cpp_capture_star_this=201603 define: __cpp_inline_variables=201606 define: __cpp_aggregate_bases=201603 define: __cpp_deduction_guides=201611 define: __cpp_noexcept_function_type=201510 define: __cpp_template_auto=201606 define: __cpp_structured_bindings=201606 define: __cpp_variadic_using=201611 define: __cpp_sized_deallocation=201309 define: __cpp_aligned_new=201606 define: __STDCPP_DEFAULT_NEW_ALIGNMENT__=16 define: __cpp_template_template_args=201611 define: __cpp_threadsafe_static_init=200806 define: __EXCEPTIONS=1 define: __cpp_exceptions=199711 define: __GXX_ABI_VERSION=1013 define: __SCHAR_MAX__=0x7f define: __SHRT_MAX__=0x7fff define: __INT_MAX__=0x7fffffff define: __LONG_MAX__=0x7fffffffffffffffL define: __LONG_LONG_MAX__=0x7fffffffffffffffLL define: __WCHAR_MAX__=0x7fffffff define: __WCHAR_MIN__=(-__WCHAR_MAX__ - 1) define: __WINT_MAX__=0xffffffffU define: __WINT_MIN__=0U define: __PTRDIFF_MAX__=0x7fffffffffffffffL define: __SIZE_MAX__=0xffffffffffffffffUL define: __SCHAR_WIDTH__=8 define: __SHRT_WIDTH__=16 define: __INT_WIDTH__=32 define: __LONG_WIDTH__=64 define: __LONG_LONG_WIDTH__=64 define: __WCHAR_WIDTH__=32 define: __WINT_WIDTH__=32 define: __PTRDIFF_WIDTH__=64 define: __SIZE_WIDTH__=64 define: __INTMAX_MAX__=0x7fffffffffffffffL define: __INTMAX_C(c)=c ## L define: __UINTMAX_MAX__=0xffffffffffffffffUL define: __UINTMAX_C(c)=c ## UL define: __INTMAX_WIDTH__=64 define: __SIG_ATOMIC_MAX__=0x7fffffff define: __SIG_ATOMIC_MIN__=(-__SIG_ATOMIC_MAX__ - 1) define: __SIG_ATOMIC_WIDTH__=32 define: __INT8_MAX__=0x7f define: __INT16_MAX__=0x7fff define: __INT32_MAX__=0x7fffffff define: __INT64_MAX__=0x7fffffffffffffffL define: __UINT8_MAX__=0xff define: __UINT16_MAX__=0xffff define: __UINT32_MAX__=0xffffffffU define: __UINT64_MAX__=0xffffffffffffffffUL define: __INT_LEAST8_MAX__=0x7f define: __INT8_C(c)=c define: __INT_LEAST8_WIDTH__=8 define: __INT_LEAST16_MAX__=0x7fff define: __INT16_C(c)=c define: __INT_LEAST16_WIDTH__=16 define: __INT_LEAST32_MAX__=0x7fffffff define: __INT32_C(c)=c define: __INT_LEAST32_WIDTH__=32 define: __INT_LEAST64_MAX__=0x7fffffffffffffffL define: __INT64_C(c)=c ## L define: __INT_LEAST64_WIDTH__=64 define: __UINT_LEAST8_MAX__=0xff define: __UINT8_C(c)=c define: __UINT_LEAST16_MAX__=0xffff define: __UINT16_C(c)=c define: __UINT_LEAST32_MAX__=0xffffffffU define: __UINT32_C(c)=c ## U define: __UINT_LEAST64_MAX__=0xffffffffffffffffUL define: __UINT64_C(c)=c ## UL define: __INT_FAST8_MAX__=0x7f define: __INT_FAST8_WIDTH__=8 define: __INT_FAST16_MAX__=0x7fffffffffffffffL define: __INT_FAST16_WIDTH__=64 define: __INT_FAST32_MAX__=0x7fffffffffffffffL define: __INT_FAST32_WIDTH__=64 define: __INT_FAST64_MAX__=0x7fffffffffffffffL define: __INT_FAST64_WIDTH__=64 define: __UINT_FAST8_MAX__=0xff define: __UINT_FAST16_MAX__=0xffffffffffffffffUL define: __UINT_FAST32_MAX__=0xffffffffffffffffUL define: __UINT_FAST64_MAX__=0xffffffffffffffffUL define: __INTPTR_MAX__=0x7fffffffffffffffL define: __INTPTR_WIDTH__=64 define: __UINTPTR_MAX__=0xffffffffffffffffUL define: __GCC_IEC_559=2 define: __GCC_IEC_559_COMPLEX=2 define: __FLT_EVAL_METHOD__=0 define: __FLT_EVAL_METHOD_TS_18661_3__=0 define: __DEC_EVAL_METHOD__=2 define: __FLT_RADIX__=2 define: __FLT_MANT_DIG__=24 define: __FLT_DIG__=6 define: __FLT_MIN_EXP__=(-125) define: __FLT_MIN_10_EXP__=(-37) define: __FLT_MAX_EXP__=128 define: __FLT_MAX_10_EXP__=38 define: __FLT_DECIMAL_DIG__=9 define: __FLT_MAX__=3.40282346638528859811704183484516925e+38F define: __FLT_MIN__=1.17549435082228750796873653722224568e-38F define: __FLT_EPSILON__=1.19209289550781250000000000000000000e-7F define: __FLT_DENORM_MIN__=1.40129846432481707092372958328991613e-45F define: __FLT_HAS_DENORM__=1 define: __FLT_HAS_INFINITY__=1 define: __FLT_HAS_QUIET_NAN__=1 define: __DBL_MANT_DIG__=53 define: __DBL_DIG__=15 define: __DBL_MIN_EXP__=(-1021) define: __DBL_MIN_10_EXP__=(-307) define: __DBL_MAX_EXP__=1024 define: __DBL_MAX_10_EXP__=308 define: __DBL_DECIMAL_DIG__=17 define: __DBL_MAX__=double(1.79769313486231570814527423731704357e+308L) define: __DBL_MIN__=double(2.22507385850720138309023271733240406e-308L) define: __DBL_EPSILON__=double(2.22044604925031308084726333618164062e-16L) define: __DBL_DENORM_MIN__=double(4.94065645841246544176568792868221372e-324L) define: __DBL_HAS_DENORM__=1 define: __DBL_HAS_INFINITY__=1 define: __DBL_HAS_QUIET_NAN__=1 define: __LDBL_MANT_DIG__=64 define: __LDBL_DIG__=18 define: __LDBL_MIN_EXP__=(-16381) define: __LDBL_MIN_10_EXP__=(-4931) define: __LDBL_MAX_EXP__=16384 define: __LDBL_MAX_10_EXP__=4932 define: __DECIMAL_DIG__=21 define: __LDBL_DECIMAL_DIG__=21 define: __LDBL_MAX__=1.18973149535723176502126385303097021e+4932L define: __LDBL_MIN__=3.36210314311209350626267781732175260e-4932L define: __LDBL_EPSILON__=1.08420217248550443400745280086994171e-19L define: __LDBL_DENORM_MIN__=3.64519953188247460252840593361941982e-4951L define: __LDBL_HAS_DENORM__=1 define: __LDBL_HAS_INFINITY__=1 define: __LDBL_HAS_QUIET_NAN__=1 define: __FLT32_MANT_DIG__=24 define: __FLT32_DIG__=6 define: __FLT32_MIN_EXP__=(-125) define: __FLT32_MIN_10_EXP__=(-37) define: __FLT32_MAX_EXP__=128 define: __FLT32_MAX_10_EXP__=38 define: __FLT32_DECIMAL_DIG__=9 define: __FLT32_MAX__=3.40282346638528859811704183484516925e+38F32 define: __FLT32_MIN__=1.17549435082228750796873653722224568e-38F32 define: __FLT32_EPSILON__=1.19209289550781250000000000000000000e-7F32 define: __FLT32_DENORM_MIN__=1.40129846432481707092372958328991613e-45F32 define: __FLT32_HAS_DENORM__=1 define: __FLT32_HAS_INFINITY__=1 define: __FLT32_HAS_QUIET_NAN__=1 define: __FLT64_MANT_DIG__=53 define: __FLT64_DIG__=15 define: __FLT64_MIN_EXP__=(-1021) define: __FLT64_MIN_10_EXP__=(-307) define: __FLT64_MAX_EXP__=1024 define: __FLT64_MAX_10_EXP__=308 define: __FLT64_DECIMAL_DIG__=17 define: __FLT64_MAX__=1.79769313486231570814527423731704357e+308F64 define: __FLT64_MIN__=2.22507385850720138309023271733240406e-308F64 define: __FLT64_EPSILON__=2.22044604925031308084726333618164062e-16F64 define: __FLT64_DENORM_MIN__=4.94065645841246544176568792868221372e-324F64 define: __FLT64_HAS_DENORM__=1 define: __FLT64_HAS_INFINITY__=1 define: __FLT64_HAS_QUIET_NAN__=1 define: __FLT128_MANT_DIG__=113 define: __FLT128_DIG__=33 define: __FLT128_MIN_EXP__=(-16381) define: __FLT128_MIN_10_EXP__=(-4931) define: __FLT128_MAX_EXP__=16384 define: __FLT128_MAX_10_EXP__=4932 define: __FLT128_DECIMAL_DIG__=36 define: __FLT128_MAX__=1.18973149535723176508575932662800702e+4932F128 define: __FLT128_MIN__=3.36210314311209350626267781732175260e-4932F128 define: __FLT128_EPSILON__=1.92592994438723585305597794258492732e-34F128 define: __FLT128_DENORM_MIN__=6.47517511943802511092443895822764655e-4966F128 define: __FLT128_HAS_DENORM__=1 define: __FLT128_HAS_INFINITY__=1 define: __FLT128_HAS_QUIET_NAN__=1 define: __FLT32X_MANT_DIG__=53 define: __FLT32X_DIG__=15 define: __FLT32X_MIN_EXP__=(-1021) define: __FLT32X_MIN_10_EXP__=(-307) define: __FLT32X_MAX_EXP__=1024 define: __FLT32X_MAX_10_EXP__=308 define: __FLT32X_DECIMAL_DIG__=17 define: __FLT32X_MAX__=1.79769313486231570814527423731704357e+308F32x define: __FLT32X_MIN__=2.22507385850720138309023271733240406e-308F32x define: __FLT32X_EPSILON__=2.22044604925031308084726333618164062e-16F32x define: __FLT32X_DENORM_MIN__=4.94065645841246544176568792868221372e-324F32x define: __FLT32X_HAS_DENORM__=1 define: __FLT32X_HAS_INFINITY__=1 define: __FLT32X_HAS_QUIET_NAN__=1 define: __FLT64X_MANT_DIG__=64 define: __FLT64X_DIG__=18 define: __FLT64X_MIN_EXP__=(-16381) define: __FLT64X_MIN_10_EXP__=(-4931) define: __FLT64X_MAX_EXP__=16384 define: __FLT64X_MAX_10_EXP__=4932 define: __FLT64X_DECIMAL_DIG__=21 define: __FLT64X_MAX__=1.18973149535723176502126385303097021e+4932F64x define: __FLT64X_MIN__=3.36210314311209350626267781732175260e-4932F64x define: __FLT64X_EPSILON__=1.08420217248550443400745280086994171e-19F64x define: __FLT64X_DENORM_MIN__=3.64519953188247460252840593361941982e-4951F64x define: __FLT64X_HAS_DENORM__=1 define: __FLT64X_HAS_INFINITY__=1 define: __FLT64X_HAS_QUIET_NAN__=1 define: __DEC32_MANT_DIG__=7 define: __DEC32_MIN_EXP__=(-94) define: __DEC32_MAX_EXP__=97 define: __DEC32_MIN__=1E-95DF define: __DEC32_MAX__=9.999999E96DF define: __DEC32_EPSILON__=1E-6DF define: __DEC32_SUBNORMAL_MIN__=0.000001E-95DF define: __DEC64_MANT_DIG__=16 define: __DEC64_MIN_EXP__=(-382) define: __DEC64_MAX_EXP__=385 define: __DEC64_MIN__=1E-383DD define: __DEC64_MAX__=9.999999999999999E384DD define: __DEC64_EPSILON__=1E-15DD define: __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD define: __DEC128_MANT_DIG__=34 define: __DEC128_MIN_EXP__=(-6142) define: __DEC128_MAX_EXP__=6145 define: __DEC128_MIN__=1E-6143DL define: __DEC128_MAX__=9.999999999999999999999999999999999E6144DL define: __DEC128_EPSILON__=1E-33DL define: __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL define: __REGISTER_PREFIX__= define: __USER_LABEL_PREFIX__= define: __GNUC_STDC_INLINE__=1 define: __NO_INLINE__=1 define: __STRICT_ANSI__=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 define: __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 define: __GCC_ATOMIC_BOOL_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR16_T_LOCK_FREE=2 define: __GCC_ATOMIC_CHAR32_T_LOCK_FREE=2 define: __GCC_ATOMIC_WCHAR_T_LOCK_FREE=2 define: __GCC_ATOMIC_SHORT_LOCK_FREE=2 define: __GCC_ATOMIC_INT_LOCK_FREE=2 define: __GCC_ATOMIC_LONG_LOCK_FREE=2 define: __GCC_ATOMIC_LLONG_LOCK_FREE=2 define: __GCC_ATOMIC_TEST_AND_SET_TRUEVAL=1 define: __GCC_ATOMIC_POINTER_LOCK_FREE=2 define: __GCC_HAVE_DWARF2_CFI_ASM=1 define: __PRAGMA_REDEFINE_EXTNAME=1 define: __SSP_STRONG__=3 define: __SIZEOF_INT128__=16 define: __SIZEOF_WCHAR_T__=4 define: __SIZEOF_WINT_T__=4 define: __SIZEOF_PTRDIFF_T__=8 define: __amd64=1 define: __amd64__=1 define: __x86_64=1 define: __x86_64__=1 define: __SIZEOF_FLOAT80__=16 define: __SIZEOF_FLOAT128__=16 define: __ATOMIC_HLE_ACQUIRE=65536 define: __ATOMIC_HLE_RELEASE=131072 define: __GCC_ASM_FLAG_OUTPUTS__=1 define: __k8=1 define: __k8__=1 define: __code_model_small__=1 define: __MMX__=1 define: __SSE__=1 define: __SSE2__=1 define: __FXSR__=1 define: __SSE_MATH__=1 define: __SSE2_MATH__=1 define: __SEG_FS=1 define: __SEG_GS=1 define: __gnu_linux__=1 define: __linux=1 define: __linux__=1 define: __unix=1 define: __unix__=1 define: __ELF__=1 define: __DECIMAL_BID_FORMAT__=1 define: _GNU_SOURCE=1 define: _STDC_PREDEF_H=1 define: __STDC_IEC_559__=1 define: __STDC_IEC_559_COMPLEX__=1 define: __STDC_ISO_10646__=201706L other: --g++ other: --gnu_version=80201 stdver: --c++17 intelliSenseMode: gcc queue_update_intellisense for files in tu of: /home/flood/work/fortiss/ff1/ff1_selfcheck/src/main.cpp terminating child process: 14098 errorSquiggles count: 93 textDocument/codeAction 1 include path suggestion(s) discovered. textDocument/hover textDocument/hover cpptools/textEditorSelectionChange textDocument/codeAction 1 include path suggestion(s) discovered. textDocument/hover textDocument/hover textDocument/hover textDocument/hover $/cancelRequest textDocument/hover textDocument/hover ```
go2sh commented 5 years ago

I just did a quick test with an example setup and it work with yaml-cpp to add the subdirectory and then set the target_link_libraries. The output off c++ should look like this:

Custom configurations received:
  uri: file:///home/chris/Coding/cmake-test/src/main.cpp
  config: {
  "compilerPath": "/usr/bin/c++",
  "defines": [],
  "includePath": [
    "/home/chris/Coding/cmake-test/3rd/include"
  ],
  "standard": "c++14",
  "intelliSenseMode": "gcc-x64"
}

Can you check that your config has C_Cpp.autocomplete set to "Default" and run the command (strg+shift+p) "reset database" and try to reopen the file, the cpptools extension is quite buggy...

go2sh commented 5 years ago

If you see a lines like:

sending compilation args for /home/chris/Coding/cmake-test/src/test.cpp
include: /usr/include/c++/8.2.1
  include: /usr/include/c++/8.2.1/x86_64-pc-linux-gnu
  include: /usr/include/c++/8.2.1/backward
  include: /usr/local/include
  include: /usr/lib/clang/7.0.1/include
  include: /usr/include

This gets produced by the c_cpp_properties.json file, especially if the cpp config provider says, that he cannot provide a config (like headers and files not mentioned in the CMakeLists.txt).

atar-axis commented 5 years ago

I will completely remove everything related to vscode and reinstall, brb

atar-axis commented 5 years ago

It works now! Perfect :) Thank you!