For a C/C++ project with existing sources, you can specify how your code will be parsed to enable the code assistance features of the IDE.
Code assistance is a set of IDE features that help you navigate and edit source code. See About Editing C and C++ Source Files for more about these features.
The IDE can use several ways to gather information from a project to enable code assistance features. The build analyzer generally provides the most accurate information and is used by default. The IDE gathers information from the build by analyzing system library exec calls on Oracle Solaris, Linux, and Mac platforms.
The build analyzer is used when you create a project with existing sources and whenever you build the project to automatically discover changed code assistance configuration. The build analyzer also runs if you manually run the Configure Code Assistance wizard.
When the build analyzer is enabled, the IDE creates an exec log during the build and code assistance is configured using the exec log to gather information. When build analyzer is disabled code assistance is configured using the build log.
For some projects you might not want to use the build analyzer, so you can disable it.
To enable and disable the build analyzer:
To start the Configure Code Assistance wizard do one of the following:
When the project is parsed, the data is stored in the code assistance cache. Whenever you open a project, the IDE examines the cache and reparses the project if the cache is not up to date with the code. If the cache is up to date the IDE does not reparse the project and loads the data from the code assistance cache.
If you later add files to a project, you should include the new files in code assistance.
To include extra files in code assistance do one of the following:
See also | |
---|---|
Configure Code
Assistance Wizard: Select Mode Configuring Code Assistance Settings for C and C++ Projects Relocating the Code Assistance Cache |
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.