I'm new to C++ and I'm using Visual Studio Community 2019. Below are 3 functions: OnInput()
passes FString argument to ProcessGuess()
witch passes it to IsValid()
. Is there any tool or extension for VS so I can click on local variable FString Word
inside IsValid()
function and see whole chain of transformations: Word<- Guess<- Input for this argument? I think "chain of arguments dependencies" is weird name for what I'm asking about, what is the proper name for it?
const FString ValidInput = "Yes";
void OnInput(const FString& Input) // Take input from user
{
ProcessGuess(Input);
}
void ProcessGuess(FString Guess) //Check if user have valid guess
{
if (!IsValid(Guess))
{
PrintLine(TEXT("Your Input is NOT valid."));
}
else
{
PrintLine(TEXT("Your Input is valid."));
}
}
bool IsValid(FString Word) const //Check if user input is == ValidInput
{
if(Word == ValidInput)
{
return true;
}
else
{
return false;
}
}