Beef icon indicating copy to clipboard operation
Beef copied to clipboard

[IDE][BUG] 'Rename Symbol' does not affects offsetof()

Open kallisto56 opened this issue 3 years ago • 0 comments

Hi there,

Rename Symbol does not affect the references specified in offsetof. It affects the member in offsetof when we start renaming from there, but it does not affect other offsetof references.

In order to reproduce, try renaming members where I've put comments:

namespace Game
{
	public struct MyStruct
	{
		// Try renaming either of the members
		public int lhs, rhs;
		
		public void Test ()
		{
			int offsetLHS = offsetof(MyStruct, lhs);
			int offsetRHS = offsetof(MyStruct, rhs);

			// Try renaming the member below
			int offsetLHS0 = offsetof(MyStruct, lhs);
		}
	}
}

kallisto56 avatar Oct 21 '22 20:10 kallisto56