Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[[unlikely]] or [[likely]] after if statements break the formatting #1040

Open
UnlegitSenpaii opened this issue Feb 18, 2024 · 0 comments
Open

Comments

@UnlegitSenpaii
Copy link

UnlegitSenpaii commented Feb 18, 2024

Environment

  • Visual Studio version: 2022 Community
  • CodeMaid version: 12.0.3
  • Code language: C++

Description

if (false) [[unlikely]]
{
	bool something = true;
	if (true) [[likely]]
	{
		bool somethingelse = false;
	}
}

gets formatted into

if (false) [[unlikely]]
	{
		bool something = true;
		if (true) [[likely]]
			{
				bool somethingelse = false;
			}
	}

Current behavior

Its formatting wrong.

Expected behavior

It should format correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant