-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29124 from gartung/gartung-gcc11compatibility-cle…
…anup-fwcore-utilities FWCore packages: cleanup use of GCC11Compatibility.h
- Loading branch information
Showing
11 changed files
with
3 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,4 @@ | ||
#ifndef FWCORE_GCC11COMPATIBILITY_H | ||
#define FWCORE_GCC11COMPATIBILITY_H | ||
/* | ||
* set of macro to control the level of comaptibility with c++11 standard | ||
* includes also other macro more specific to gcc | ||
*/ | ||
|
||
#include "FWCore/Utilities/interface/Visibility.h" | ||
#include "FWCore/Utilities/interface/Likely.h" | ||
|
||
#if defined(__GCCXML__) || defined(__CINT__) | ||
#define CMS_NOCXX11 | ||
#endif | ||
#if !GCC_PREREQUISITE(4, 6, 0) && !defined(__clang__) | ||
#define CMS_NOCXX11 | ||
#endif | ||
|
||
#ifndef CMS_NOCXX11 | ||
#if GCC_PREREQUISITE(4, 7, 0) | ||
#define GCC11_FINAL final | ||
#define GCC11_OVERRIDE override | ||
#elif __clang__ | ||
// FIXME: do not know how to query for final support. It's there in any | ||
// clang version we will ever use, so it's fine. | ||
#define GCC11_FINAL final | ||
#if __has_feature(cxx_override_control) | ||
#define GCC11_OVERRIDE override | ||
#endif | ||
#else | ||
#define GCC11_FINAL | ||
#define GCC11_OVERRIDE | ||
#endif // gcc 4.7 | ||
#else | ||
#define constexpr | ||
#define noexcept | ||
#define nullptr 0 | ||
#define GCC11_FINAL | ||
#define GCC11_OVERRIDE | ||
#endif // NOCXX11 | ||
|
||
#warning "GCC11Compatibility.h should be replaced with Visibility.h or Likely.h" | ||
#endif // FWCORE_GCC11COMPATIBILITY_H |