Code Completion in EXPECT of Test cases?

Answered

Hi:

So in my test fixture files I see that code completion works in the body of a test case eg:

TEST_F(myFixture, testOne){

const int something = 1;

//  code completion works here

mpClass->SetSomething(something);

// code completion does not work here inside of any EXPECT

EXPECT_EQ(mpClass->GetSomething(), something)

}

 

Is there any way to make this work?

Thanks

2 comments
Comment actions Permalink

Hello!

Sounds like https://youtrack.jetbrains.com/issue/CPP-26297. Please try using the CLion 2021.3 EAP build (https://www.jetbrains.com/clion/nextversion/), the issue should be fixed in it.

0
Comment actions Permalink

Sure does, thank you. 

 

0

Please sign in to leave a comment.