Find Definitions/Find References
1、查看函数全部定义
2、查看所有引用继承关系
3、类或方法的基类继承、派生关系层次
4、所有依赖的头文件
- Find >
You can access the four new results panes for the C++ Indexer functionality through:
- View >
Clang-based C++ Compilers (BCC64, BCCIOSARM, and BCCAARM) support the newFind Definitions and Find References feature. RAD Studio provides theFind (C++) commands on the context menu when you right-click an identifier in theCode Editor. Depending on the identifier type, these commands return various information that increases the productivity of your work. For example, you can get all references to the selected identifier in the entire project, the identifier declaration, the base or derived classes (when the identifier refers to a class), and so on.
This feature is introduced with some detail in "IDE Changes in XE6" (#New Menu Entries and Results Panes for C++ Find References / Find Definitions).
For more information, see Find Definitions and References (C++).
New Menu Entries and Results Panes for C++ Find References / Find Definitions
The C++ Indexer feature enables Find References/Find Definitions for C++. C++ Indexing is supported by ourClang-based C++ Compilers (that is, for the 64-bit Windows, iOS, and Android target platforms).
To enable C++ indexing, enable the Index files for 'Definitions and References' option, located here:
- For the current project, choose Project > Options >Project Properties.
- For new generated projects, choose Tools > Options > Environment Options > C++ Options >Project Properties .
After indexing, the C++ Find menu commands are available on theCode Editor Context Menu.
The new context menu commands on the Code Editor are: