mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-21 20:45:53 -04:00

This feature is controlled by an expression command option, a target property and the SBExpressionOptions setting. FixIt's are only applied to UserExpressions, not UtilityFunctions, those you have to get right when you make them. This is just a first stage. At present the fixits are applied silently. The next step is to tell the user about the applied fixit. <rdar://problem/25351938> llvm-svn: 264379
26 lines
356 B
C++
26 lines
356 B
C++
#include <stdio.h>
|
|
|
|
struct SubStruct
|
|
{
|
|
int a;
|
|
int b;
|
|
};
|
|
|
|
struct MyStruct
|
|
{
|
|
int first;
|
|
struct SubStruct second;
|
|
};
|
|
|
|
int
|
|
main()
|
|
{
|
|
struct MyStruct my_struct = {10, {20, 30}};
|
|
struct MyStruct *my_pointer = &my_struct;
|
|
printf ("Stop here to evaluate expressions: %d %d %p\n", my_pointer->first, my_pointer->second.a, my_pointer);
|
|
return 0;
|
|
}
|
|
|
|
|
|
|