Skip to content

Fix C++11 and higher builds if __clang__ is defined#2

Open
noah1510 wants to merge 1 commit into
Infineon:masterfrom
noah1510:patch-1
Open

Fix C++11 and higher builds if __clang__ is defined#2
noah1510 wants to merge 1 commit into
Infineon:masterfrom
noah1510:patch-1

Conversation

@noah1510

Copy link
Copy Markdown

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

CONTRIBUTING.md also tells you what to expect in the PR process.

Description
This fixes an error that happens when the code should be compiled with c++11 or newer and clang is defined. This can easily happen when using clangd in vscode as clangd sets that define even if gcc is used to compile.

The current state of that line is invalid in C++11 or higher, as the name would be understood as a suffix, which isn't what you want here. Putting that space here shouldn't change the functionality in any version but make it valid code for newer C++ standards.

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

Successfully merging this pull request may close these issues.

1 participant