CLion 2019.1 Help

Resolve Context

Code highlighting (as well as find usages, refactorings, code generation, code analysis and more) may depend on the set of preprocessor definitions which determine the rules of parsing and therefore the way of resolving the code. These rules are also known as the resolve context.

In case of CMake projects, the resolve context is defined by the corresponding CMake profile.

Switch resolve context for the currently opened file (CMake projects)

  • Select the desired configuration of profile from the Run/Debug Configuration switcher.

  • Use the context switcher in the right-bottom corner of the status bar:

    resolve context switcher

    Select <Auto> to restore the automatic selection after manual changes.

Last modified: 24 July 2019