Files
clang-p2996/lldb/test/python_api/formatters/main.cpp
Enrico Granata c5bc412cf6 Synthetic values are now automatically enabled and active by default. SBValue is set up to always wrap a synthetic value when one is available.
A new setting enable-synthetic-value is provided on the target to disable this behavior.
There also is a new GetNonSyntheticValue() API call on SBValue to go back from synthetic to non-synthetic. There is no call to go from non-synthetic to synthetic.
The test suite has been changed accordingly.
Fallout from changes to type searching: an hack has to be played to make it possible to use maps that contain std::string due to the special name replacement operated by clang
Fixing a test case that was using libstdcpp instead of libc++ - caught as a consequence of said changes to type searching

llvm-svn: 153495
2012-03-27 02:35:13 +00:00

41 lines
531 B
C++

#include <stdio.h>
#include <vector>
struct JustAStruct
{
int A;
float B;
char C;
double D;
long E;
short F;
};
struct FooType
{
int A;
float B;
char C;
double D;
long E;
short F;
};
int main(int argc, char const *argv[]) {
JustAStruct foo;
foo.A = 1;
foo.B = 3.14;
foo.C = 'e';
foo.D = 6.28;
foo.E = 3100419850;
FooType bar;
bar.A = 1;
bar.B = 3.14;
bar.C = 'e';
bar.D = 6.28;
bar.E = 3100419850;
JustAStruct* foo_ptr = &foo;
std::vector<int> int_vector;
return 0; // Set break point at this line.
}