From f6ffa09437c1d2df857796f7c750bf61316ced2d Mon Sep 17 00:00:00 2001 From: Tobias Christiansen Date: Sun, 19 Sep 2021 21:51:44 +0200 Subject: [PATCH] Meta: Add section to CLion Configuration Docs about including headers --- Documentation/CLionConfiguration.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/CLionConfiguration.md b/Documentation/CLionConfiguration.md index 2fb953b93b3..8e723aca1a2 100644 --- a/Documentation/CLionConfiguration.md +++ b/Documentation/CLionConfiguration.md @@ -39,6 +39,13 @@ want exclude Toolchain files as well, follow the same procedure with the followi - `Toolchain/Tarballs` - `Toolchain/Build` +## Include headers and source files for code insight + +To get proper code insight mark the folders `AK`, `Kernel` and `Userland` by right-clicking on them and selecting `Mark Directory as | Project Sources and Headers`. + +A symptom of this not being configured correctly is CLion giving a warning for every single file: +> The file does not belong to any project target, code insight features might not work properly. + ## Code Generation Settings To make code generated by CLion (e.g. identifier names, const placement) match the SerenityOS coding style, change the