Skip to content

Commit

Permalink
Merge pull request #37592 from makortel/deprecatedLegacy
Browse files Browse the repository at this point in the history
Mark legacy EDModule constructors deprecated
  • Loading branch information
cmsbuild committed Apr 29, 2022
2 parents 46ca85e + f401fce commit 12b3153
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions FWCore/Framework/interface/EDAnalyzer.h
Expand Up @@ -26,15 +26,21 @@ namespace edm {
class ModuleHolderT;
}

class CMS_DEPRECATED EDAnalyzer : public EDConsumerBase {
/**
* The legacy EDAnalyzer class is deprecated. We annotate the
* constructor only with the CMS_DEPRECATED, because with gcc it
* turns out to flag deriving classes more reliably than annotating
* the entire class.
*/
class EDAnalyzer : public EDConsumerBase {
public:
template <typename T>
friend class maker::ModuleHolderT;
template <typename T>
friend class WorkerT;
typedef EDAnalyzer ModuleType;

EDAnalyzer();
CMS_DEPRECATED EDAnalyzer();
~EDAnalyzer() override;

std::string workerType() const { return "WorkerT<EDAnalyzer>"; }
Expand Down
10 changes: 8 additions & 2 deletions FWCore/Framework/interface/EDFilter.h
Expand Up @@ -36,15 +36,21 @@ namespace edm {
class ActivityRegistry;
class ThinnedAssociationsHelper;

class CMS_DEPRECATED EDFilter : public ProducerBase, public EDConsumerBase {
/**
* The legacy EDFilter class is deprecated. We annotate the
* constructor only with the CMS_DEPRECATED, because with gcc it
* turns out to flag deriving classes more reliably than annotating
* the entire class.
*/
class EDFilter : public ProducerBase, public EDConsumerBase {
public:
template <typename T>
friend class maker::ModuleHolderT;
template <typename T>
friend class WorkerT;
typedef EDFilter ModuleType;

EDFilter();
CMS_DEPRECATED EDFilter();
~EDFilter() override;

static void fillDescriptions(ConfigurationDescriptions& descriptions);
Expand Down
10 changes: 8 additions & 2 deletions FWCore/Framework/interface/EDProducer.h
Expand Up @@ -33,15 +33,21 @@ namespace edm {
class ModuleHolderT;
}

class CMS_DEPRECATED EDProducer : public ProducerBase, public EDConsumerBase {
/**
* The legacy EDProducer class is deprecated. We annotate the
* constructor only with the CMS_DEPRECATED, because with gcc it
* turns out to flag deriving classes more reliably than annotating
* the entire class.
*/
class EDProducer : public ProducerBase, public EDConsumerBase {
public:
template <typename T>
friend class maker::ModuleHolderT;
template <typename T>
friend class WorkerT;
typedef EDProducer ModuleType;

EDProducer();
CMS_DEPRECATED EDProducer();
~EDProducer() override;

static void fillDescriptions(ConfigurationDescriptions& descriptions);
Expand Down

0 comments on commit 12b3153

Please sign in to comment.