Skip to main content


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 18:55
Marko Gašparič is currently offline Marko GašparičFriend
Messages: 10
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 19: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 25 08:27:47 GMT 2024

Powered by FUDForum. Page generated in 0.02923 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top