forked from root-project/roottest
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for CMS fwd decl enumerator as template arg:
- Loading branch information
1 parent
c665247
commit 568ae3a
Showing
7 changed files
with
71 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
ROOTTEST_GENERATE_REFLEX_DICTIONARY(fwdDeclEnumconstantDict | ||
OPTIONS --fail_on_warnings | ||
SELECTION selection.xml | ||
classes.h | ||
) | ||
|
||
ROOTTEST_ADD_TEST(fwdDeclEnumconstant | ||
MACRO execfwdDeclEnumconstant.C | ||
DEPENDS fwdDeclEnumconstantDict-libgen-build | ||
LABELS roottest regression cling) |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef DataFormats_Provenance_Hash_h | ||
#define DataFormats_Provenance_Hash_h | ||
|
||
namespace edm { | ||
|
||
template <int I> | ||
class Hash { | ||
public: | ||
}; | ||
|
||
} // namespace edm | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef DataFormats_Provenance_HashedTypes_h | ||
#define DataFormats_Provenance_HashedTypes_h | ||
|
||
/// Declaration of the enum HashedTypes, used in defining several "id" | ||
/// classes. | ||
|
||
namespace edm { | ||
enum HashedTypes { | ||
ModuleDescriptionType, // Obsolete | ||
ParameterSetType, | ||
ProcessHistoryType, | ||
ProcessConfigurationType, | ||
EntryDescriptionType, // Obsolete | ||
ParentageType | ||
}; | ||
} | ||
|
||
#endif // DataFormats_Provenance_HashedTypes_h |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef DataFormats_Provenance_ParameterSetID_h | ||
#define DataFormats_Provenance_ParameterSetID_h | ||
|
||
/*---------------------------------------------------------------------- | ||
ParameterSetID: A globally unique identifier for each collection of | ||
tracked parameters. Two ParameterSet objects will have equal | ||
ParameterSetIDs if they contain the same set of tracked parameters. | ||
We calculate the ParameterSetID from the names and values of the | ||
tracked parameters within a ParameterSet, currently using the MD5 | ||
algorithm. | ||
----------------------------------------------------------------------*/ | ||
|
||
#include "Hash.h" | ||
#include "HashedTypes.h" | ||
|
||
namespace edm { | ||
typedef Hash<ParameterSetType> ParameterSetID; | ||
|
||
} | ||
#endif |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "ParameterSetID.h" |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int execfwdDeclEnumconstant() { | ||
return gSystem->Load("libfwdDeclEnumconstantDict_dictrflx"); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<lcgdict> | ||
<class name="edm::ParameterSetID"/> | ||
</lcgdict> |