SSoelvsten / adiar

An I/O-efficient implementation of (Binary) Decision Diagrams
https://ssoelvsten.github.io/adiar/
MIT License
24 stars 13 forks source link

Provide IntelliSense in test files #252

Closed SSoelvsten closed 1 year ago

SSoelvsten commented 2 years ago

Currently all test files have red scripples all over them in Visual Studio Code. It would be better, if we somehow can get it to work properly. Adding #include <adiar/adiar.h> at the top of each test file does not seem to work. One probably needs to mess with CMake.

SSoelvsten commented 1 year ago

A lot of IntelliSense is missing for Visual Studio Code on Windows if you use the C++ compiler of Windows Subsystem for Linux (WSL) as I and Anna have done. The solution is to open the project in VSCode with WSL (https://code.visualstudio.com/docs/cpp/config-wsl). For example, one can do so as follows.

code .

Just ensure, the addons also are installed for the WSL version.

Yewt, this only adds IntellliSense to the src/ folder, but not the test/ folder. The problem here is, that the build dependencies of each .cpp is unknown to CMake and it does not include any of the common definitions.

This has the added benefit, that one can faster compile and run a subset of the unit tests.