Hello,
I don't understand why the CDT returns an empty array when I call getStatements() (and even when I call getChildren()) if getRawSignature() returns:
{
google::InitGoogleLogging(argv[0]);
google::ParseCommandLineFlags(&argc, &argv, true);
runBenchmarks();
return 0;
}
for example.
Is this a bug in CDT? It seems a lot like one.
I've been testing my source code. It always happens when this method (and also some other methods) is analyzed, but mostly it works fine.
It also happens that the method
{
testing::InitGoogleTest(&argc, argv);
google::ParseCommandLineFlags(&argc, &argv, true);
ElfTest::binaryPath = argv[0];
return RUN_ALL_TESTS();
}
will have null at the [1], while
{
testing::InitGoogleTest(&argc, argv);
google::ParseCommandLineFlags(&argc, &argv, true);
return RUN_ALL_TESTS();
}
works just fine.
[Updated on: Wed, 13 November 2013 19:35]
Report message to a moderator