Skip to content

Allow standards-based attributes to have leading and trailing underscores.#8243

Merged
Axel-Naumann merged 1 commit intoroot-project:masterfrom
Axel-Naumann:clang-attr-double_underscore-2ed4573e8f8619dc67647256ac070bf91f461392
May 27, 2021
Merged

Allow standards-based attributes to have leading and trailing underscores.#8243
Axel-Naumann merged 1 commit intoroot-project:masterfrom
Axel-Naumann:clang-attr-double_underscore-2ed4573e8f8619dc67647256ac070bf91f461392

Conversation

@Axel-Naumann
Copy link
Copy Markdown
Member

This gives library implementers a way to use standards-based attributes that do not conflict with user-defined macros of the same name. Attributes in C2x require this behavior normatively (C2x 6.7.11p4), but there's no reason to not have the same behavior in C++, especially given that such attributes may be used by a C library consumed by a C++ compilation.

llvm-svn: 369033

Backported from llvm-project 2ed4573e8f8619dc67647256ac070bf91f461392

Fixes GCC 11 builds.

…ores.

This gives library implementers a way to use standards-based attributes that do not conflict with user-defined macros of the same name. Attributes in C2x require this behavior normatively (C2x 6.7.11p4), but there's no reason to not have the same behavior in C++, especially given that such attributes may be used by a C library consumed by a C++ compilation.

llvm-svn: 369033
@Axel-Naumann Axel-Naumann self-assigned this May 26, 2021
@Axel-Naumann Axel-Naumann requested a review from vgvassilev as a code owner May 26, 2021 09:21
@phsft-bot
Copy link
Copy Markdown

Starting build on ROOT-debian10-i386/cxx14, ROOT-performance-centos8-multicore/default, ROOT-fedora30/cxx14, ROOT-fedora31/noimt, ROOT-ubuntu16/nortcxxmod, mac1014/python3, mac11.0/cxx17, windows10/cxx14
How to customize builds

Copy link
Copy Markdown
Member

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was exactly what I was looking for. Thanks!

@Axel-Naumann Axel-Naumann merged commit d3d4b9c into root-project:master May 27, 2021
@Axel-Naumann Axel-Naumann deleted the clang-attr-double_underscore-2ed4573e8f8619dc67647256ac070bf91f461392 branch May 27, 2021 08:43
@Axel-Naumann Axel-Naumann restored the clang-attr-double_underscore-2ed4573e8f8619dc67647256ac070bf91f461392 branch May 27, 2021 08:43
@Axel-Naumann Axel-Naumann deleted the clang-attr-double_underscore-2ed4573e8f8619dc67647256ac070bf91f461392 branch May 27, 2021 08:45
@Axel-Naumann Axel-Naumann linked an issue Jun 4, 2021 that may be closed by this pull request
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.

Problems compiling root 6.24.00 with gcc 11 on Fedora 34

5 participants