Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Calling getStatements() on some non-empty CompoundStatements returns [](Bug)
Calling getStatements() on some non-empty CompoundStatements returns [] [message #1184860] Wed, 13 November 2013 13:55
Marko Gašparič is currently offline Marko Gašparič
Messages: 5
Registered: May 2013
Location: Free University of Bolzan...
Junior Member
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 14:35]

Report message to a moderator

Previous Topic:Prefix for Cross GCC
Next Topic:Indexer failing on Java 7?
Goto Forum:
  


Current Time: Thu Apr 17 14:25:03 EDT 2014

Powered by FUDForum. Page generated in 0.04617 seconds