Manage included files | CLion Documentation
 

Manage included files

Last modified: 26 May 2024

An included file is not required to be listed in CMakeList.txt, compile_commands.json, Makefile, or build.gradle in order to be recognized as a project file and therefore provided with code insight.

The only limitation here is for the files you include to be located under the project root (visible in the Project Tool Window).

CLion treats your included files similarly regardless of the project format (CMake, compilation database, Makefile, or Gradle). See Managing included files for a CMake example, or find a compilation database example below.