24#define fnmatch(glob, path, dummy) PathMatchSpecA(path, glob);
28#include "llvm/Support/raw_ostream.h"
29#include "clang/Basic/SourceLocation.h"
30#include "clang/Basic/SourceManager.h"
31#include "clang/AST/ASTContext.h"
32#include "clang/AST/DeclCXX.h"
33#include "clang/AST/DeclTemplate.h"
35#include "cling/Interpreter/Interpreter.h"
81 std::cout<<
"Printing Selection Rules:"<<std::endl;
86 std::cout<<
"\tClass sel rule "<<i<<
":"<<std::endl;
91 std::cout<<
"\tNo Class Selection Rules"<<std::endl;
96 std::list<FunctionSelectionRule>::const_iterator it2;
100 std::cout<<
"\tFunction sel rule "<<i<<
":"<<std::endl;
101 std::cout<<
"\t\tSelected: ";
102 switch(it2->GetSelected()){
109 default: std::cout<<
"Unspecified"<<std::endl;
111 it2->PrintAttributes(std::cout,2);
115 std::cout<<
"\tNo function sel rules"<<std::endl;
119 std::list<VariableSelectionRule>::const_iterator it3;
123 std::cout<<
"\tVariable sel rule "<<i<<
":"<<std::endl;
124 std::cout<<
"\t\tSelected: ";
125 switch(it3->GetSelected()){
132 default: std::cout<<
"Unspecified"<<std::endl;
134 it3->PrintAttributes(std::cout,2);
138 std::cout<<
"\tNo variable sel rules"<<std::endl;
142 std::list<EnumSelectionRule>::const_iterator it4;
146 std::cout<<
"\tEnum sel rule "<<i<<
":"<<std::endl;
147 std::cout<<
"\t\tSelected: ";
148 switch(it4->GetSelected()){
155 default: std::cout<<
"Unspecified"<<std::endl;
157 it4->PrintAttributes(std::cout,2);
161 std::cout<<
"\tNo enum sel rules"<<std::endl;
175 std::unordered_map<std::string,RULE*>& storedRules,
176 const std::string& attrName){
177 auto itRetCodePair = storedRules.emplace( attrName, rule );
179 auto storedRule = storedRules[attrName];
181 if (itRetCodePair.second ||
182 storedRule->GetSelected() != rule->GetSelected())
return false;
185 std::stringstream sstr; sstr <<
"Rule:\n";
187 sstr << (
areEqual ?
"Identical " :
"Conflicting ");
188 sstr <<
"rule already stored:\n";
189 storedRule->Print(sstr);
191 "Duplicated rule found.\n%s",sstr.str().c_str());
195template<
class RULESCOLLECTION,
class RULE =
typename RULESCOLLECTION::value_type>
198 std::unordered_map<std::string, RULE*> patterns,names;
199 for (
auto&& rule : rules){
200 if (rule.HasAttributeName() &&
HasDuplicate(&rule,names,rule.GetAttributeName())) nDuplicates++;
201 if (rule.HasAttributePattern() &&
HasDuplicate(&rule,patterns,rule.GetAttributePattern())) nDuplicates++;
213 if (0 != nDuplicates){
215 "Duplicates in rules were found.\n");
228 if ((nAttrsPattern != 1 || nAttrsName !=1) &&
237 auto implies = 0 == fnmatch(pattern,
name, FNM_PATHNAME);
240 static const auto msg =
"The pattern rule %s matches the name rule %s. "
241 "Since the name rule has compatible attributes, "
242 "it will be removed: the pattern rule will match the necessary classes if needed.\n";
261 if (rule.HasAttributeName()) {
262 for (
auto&& intRule : selectionRules){
263 if (intRule.HasAttributePattern() &&
Implies(intRule, rule)) {
284 std::string patternString;
287 if (classRuleIt->HasAttributeWithName(
"pattern") &&
288 classRuleIt->GetAttributeValue(
"pattern",patternString)){
290 if (patternString.find_last_of(
"*")!=patternString.size()-1){
297 if (classRuleIt->HasAttributeWithName(
"name") &&
298 classRuleIt->GetAttributeValue(
"name",patternString)){
309 std::string qual_name;
316 std::string qual_name;
323 std::string qual_name;
340#if defined(R__MUST_REVISIT)
341# if R__MUST_REVISIT(6,4)
342 "Can become no-op once PCMs are available."
346 std::string str_name;
347 std::string qual_name;
370 std::string qual_name;
385 std::string str_name;
386 std::string qual_name;
396 std::string qual_name;
410 clang::Decl::Kind declkind = D->getKind();
413 case clang::Decl::CXXRecord:
414 case clang::Decl::ClassTemplateSpecialization:
415 case clang::Decl::ClassTemplatePartialSpecialization:
418 case clang::Decl::Namespace:
420 case clang::Decl::Enum:
425#if ROOTCLING_NEEDS_FUNCTIONS_SELECTION
428 case clang::Decl::CXXMethod:
429 case clang::Decl::CXXConstructor:
430 case clang::Decl::CXXDestructor: {
436 std::string str_name;
437 std::string qual_name;
445 case clang::Decl::Field:
461 const clang::NamedDecl*
N = llvm::dyn_cast<clang::NamedDecl> (D);
467 if (
N->getIdentifier()) {
468 name =
N->getNameAsString();
470 else if (
N->isCXXClassMember()) {
471 name =
N->getNameAsString();
473 llvm::raw_string_ostream stream(qual_name);
474 N->getNameForDiagnostic(stream,
N->getASTContext().getPrintingPolicy(),
true);
479 const clang::NamedDecl*
N =
static_cast<const clang::NamedDecl*
> (D);
480 llvm::raw_string_ostream stream(qual_name);
481 N->getNameForDiagnostic(stream,
N->getASTContext().getPrintingPolicy(),
true);
490 const std::vector<std::string> quals={
"*",
"&"};
495 for (
auto I =
F->param_begin(),
E =
F->param_end();
I !=
E; ++
I) {
497 clang::ParmVarDecl*
P = *
I;
505 ROOT::TMetaUtils::ReplaceAll(
type,
"class ",
"");
507 ROOT::TMetaUtils::ReplaceAll(
type,
"restrict",
"");
511 for (
auto& qual : quals){
512 auto pos =
type.find(
" "+qual);
513 if (pos != std::string::npos)
514 type.replace( pos, 2, qual );
524 prototype =
"(" + prototype +
")";
533 if (
const clang::TagDecl*
T
534 = llvm::dyn_cast<clang::TagDecl>(D->getDeclContext()))
535 return T->isClass() ||
T->isStruct();
542 if (
const clang::TagDecl* parent
543 = llvm::dyn_cast<clang::TagDecl>(D->getDeclContext())) {
544 if (parent->isClass()|| parent->isStruct()) {
545 GetDeclName(parent, parent_name, parent_qual_name);
554 if (
const clang::RecordDecl* parent
555 = llvm::dyn_cast<clang::RecordDecl>(D->getDeclContext())) {
556 GetDeclName(parent, parent_name, parent_qual_name);
602 const clang::NamespaceDecl*
N = llvm::dyn_cast<clang::NamespaceDecl> (D);
604 std::cout<<
"\n\tCouldn't cast Decl to NamespaceDecl";
617 std::string name_value;
618 std::string pattern_value;
631 explicit_selector = &(*it);
634 if (it->GetAttributeValue(
"pattern", pattern_value) &&
635 pattern_value !=
"*" && pattern_value !=
"*::*") specific_pattern_selector = &(*it);
644#ifdef SELECTION_DEBUG
645 std::cout<<
"\tNo returned"<<std::endl;
653 if (it->GetAttributeValue(
"pattern", pattern_value) &&
654 (pattern_value ==
"*" || pattern_value ==
"*::*")) ++fImplNo;
663#ifdef SELECTION_DEBUG
664 std::cout<<
"Empty dontC returned = No"<<std::endl;
674#ifdef SELECTION_DEBUG
675 std::cout<<
"\n\tfYes = "<<fYes<<
", fImplNo = "<<fImplNo<<std::endl;
678 if (explicit_selector)
return explicit_selector;
679 else if (specific_pattern_selector)
return specific_pattern_selector;
680 else if (fImplNo > 0)
return 0;
681 else return selector;
686#ifdef SELECTION_DEBUG
687 std::cout<<
"\n\tfYes = "<<fYes<<
", fFileNo = "<<fFileNo<<std::endl;
701 const clang::TagDecl* tagDecl = llvm::dyn_cast<clang::TagDecl> (D);
702 const clang::TypedefNameDecl* typeDefNameDecl = llvm::dyn_cast<clang::TypedefNameDecl> (D);
704 if (!tagDecl && !typeDefNameDecl) {
706 "Cannot cast Decl to TagDecl and Decl is not a typedef.\n");
710 if (!tagDecl && typeDefNameDecl){
711 clang::RecordDecl* recordDecl = ROOT::TMetaUtils::GetUnderlyingRecordDecl(typeDefNameDecl->getUnderlyingType());
714 "Cannot get RecordDecl behind TypedefDecl.\n");
717 tagDecl = recordDecl;
722 if (!( isLinkDefFile || tagDecl->isClass() || tagDecl->isStruct() ))
732 bool earlyReturn=
false;
734 const clang::NamedDecl* nDecl(llvm::dyn_cast<clang::NamedDecl>(D));
739 if (
const clang::ClassTemplateSpecializationDecl* ctsd =
740 llvm::dyn_cast_or_null<clang::ClassTemplateSpecializationDecl>(D))
741 if(
const clang::ClassTemplateDecl* ctd = ctsd->getSpecializedTemplate()){
742 const std::string& nArgsToKeep = rule.GetAttributeNArgsToKeep();
743 if (!nArgsToKeep.empty()){
744 fNormCtxt.AddTemplAndNargsToKeep(ctd->getCanonicalDecl(),
745 std::atoi(nArgsToKeep.c_str()));
749 if (earlyReturn)
continue;
758 explicit_selector = &(rule);
762 if (!pattern_value.empty() &&
763 pattern_value !=
"*" &&
764 pattern_value !=
"*::*") specific_pattern_selector = &(rule);
769 if (!isLinkDefFile) {
780 if (!pattern_value.empty() &&
781 (pattern_value ==
"*" || pattern_value ==
"*::*")) ++fImplNo;
794 if (earlyReturn)
return retval;
798 if (explicit_selector)
return explicit_selector;
799 else if (specific_pattern_selector)
return specific_pattern_selector;
800 else if (fImplNo > 0)
return 0;
801 else return selector;
820 for(; it != it_end; ++it) {
838 D->getPrimaryTemplate() !=
nullptr ||
839 llvm::isa<clang::CXXMethodDecl>(D))
return nullptr;
841 std::string prototype;
843 prototype = qual_name + prototype;
892 std::string name_value;
893 std::string pattern_value;
896 = selRule.
Match(llvm::dyn_cast<clang::NamedDecl>(D), qual_name,
"",
false);
902 explicit_selector = &selRule;
904 if (selRule.GetAttributeValue(
"pattern", pattern_value)) {
905 explicit_selector=&selRule;
915 if (selRule.GetAttributeValue(
"pattern", pattern_value)) {
916 if (pattern_value ==
"*" || pattern_value ==
"*::*") ++fImplNo;
929#ifdef SELECTION_DEBUG
930 std::cout<<
"\n\tfYes = "<<fYes<<
", fImplNo = "<<fImplNo<<std::endl;
933 if (explicit_selector)
return explicit_selector;
934 else if (fImplNo > 0)
return 0;
935 else return selector;
946 D->getPrimaryTemplate() !=
nullptr ||
947 llvm::isa<clang::CXXMethodDecl>(D))
return nullptr;
949 std::string prototype;
952 prototype = qual_name + prototype;
958 std::string pattern_value;
961 = selRule.
Match(llvm::dyn_cast<clang::NamedDecl>(D), qual_name, prototype,
false);
967 explicit_selector = &selRule;
969 if (selRule.GetAttributeValue(
"pattern", pattern_value)) {
970 explicit_selector = &selRule;
980 if (selRule.GetAttributeValue(
"pattern", pattern_value)) {
981 if (pattern_value ==
"*" || pattern_value ==
"*::*") ++fImplNo;
993 if (explicit_selector)
return explicit_selector;
994 else if (fImplNo > 0)
return 0;
995 else return selector;
1004 std::list<VariableSelectionRule>::const_iterator it;
1005 std::list<VariableSelectionRule>::const_iterator it_end;
1014 std::string name_value;
1015 std::string pattern_value;
1016 for(; it != it_end; ++it) {
1018 it->
Match(llvm::dyn_cast<clang::NamedDecl>(D), qual_name,
"",
false);
1024 explicit_selector = &(*it);
1026 it->GetAttributeValue(
"pattern", pattern_value)) {
1028 if (pattern_value !=
"*" && pattern_value !=
"*::*") explicit_selector = &(*it);
1035 if (it->GetAttributeValue(
"pattern", pattern_value)) {
1036 if (pattern_value ==
"*" || pattern_value ==
"*::*") ++fImplNo;
1049#ifdef SELECTION_DEBUG
1050 std::cout<<
"\n\tfYes = "<<fYes<<
", fImplNo = "<<fImplNo<<std::endl;
1053 if (explicit_selector)
return explicit_selector;
1054 else if (fImplNo > 0)
return 0;
1055 else return selector;
1079 std::string prototype;
1081 if (
const clang::FunctionDecl*
F = llvm::dyn_cast<clang::FunctionDecl> (D))
1083 prototype = qual_name + prototype;
1085#ifdef SELECTION_DEBUG
1086 std::cout<<
"\tFunction prototype = "<<prototype<<std::endl;
1089 int expl_Yes = 0, impl_r_Yes = 0, impl_rr_Yes = 0;
1090 int impl_r_No = 0, impl_rr_No = 0;
1095 if (D->getKind() == clang::Decl::CXXMethod){
1097 std::string pat_value;
1098 for(; it != it_end; ++it) {
1100 = it->
Match(llvm::dyn_cast<clang::NamedDecl>(D), qual_name, prototype,
false);
1105 explicit_r = &(*it);
1109#ifdef SELECTION_DEBUG
1110 std::cout<<
"\tExplicit rule BaseSelectionRule::kNo found"<<std::endl;
1118 if (it->GetAttributeValue(
"pattern", pat_value)) {
1119 if (pat_value ==
"*")
continue;
1121 std::string par_name, par_qual_name;
1123 std::string par_pat = par_qual_name +
"::*";
1125 if (pat_value == par_pat) {
1126 implicit_rr = &(*it);
1129#ifdef SELECTION_DEBUG
1130 std::cout<<
"Implicit_rr rule ("<<pat_value<<
"), selected = "<<selected<<std::endl;
1137#ifdef SELECTION_DEBUG
1138 std::cout<<
"Implicit_rr rule ("<<pat_value<<
"), selected = "<<selected<<std::endl;
1145 implicit_r = &(*it);
1148#ifdef SELECTION_DEBUG
1149 std::cout<<
"Implicit_r rule ("<<pat_value<<
"), selected = "<<selected<<std::endl;
1156#ifdef SELECTION_DEBUG
1157 std::cout<<
"Implicit_r rule ("<<pat_value<<
"), selected = "<<selected<<std::endl;
1169#ifdef SELECTION_DEBUG
1170 std::cout<<
"\tExplicit rule BaseSelectionRule::BaseSelectionRule::kYes found"<<std::endl;
1175 else if (implicit_rr) {
1176 if (impl_rr_No > 0) {
1178#ifdef SELECTION_DEBUG
1179 std::cout<<
"\tImplicit_rr rule BaseSelectionRule::kNo found"<<std::endl;
1186#ifdef SELECTION_DEBUG
1187 std::cout<<
"\tImplicit_rr rule BaseSelectionRule::kYes found"<<std::endl;
1193 else if (implicit_r) {
1194 if (impl_r_No > 0) {
1196#ifdef SELECTION_DEBUG
1197 std::cout<<
"\tImplicit_r rule BaseSelectionRule::kNo found"<<std::endl;
1204#ifdef SELECTION_DEBUG
1205 std::cout<<
"\tImplicit_r rule BaseSelectionRule::kYes found"<<std::endl;
1213#ifdef SELECTION_DEBUG
1214 std::cout<<
"\tChecking parent class rules"<<std::endl;
1219 std::string parent_name, parent_qual_name;
1220 if (!
GetParentName(D, parent_name, parent_qual_name))
return 0;
1230 std::string name_value;
1231 std::string pattern_value;
1234 = it->Match(llvm::dyn_cast<clang::NamedDecl>(D), parent_qual_name,
"",
true);
1241 explicit_selector = &(*it);
1243 if (it->GetAttributeValue(
"pattern", pattern_value)) {
1245 if (pattern_value !=
"*" && pattern_value !=
"*::*") explicit_selector = &(*it);
1251 if (it->GetAttributeValue(
"pattern", pattern_value)) {
1252 if (pattern_value ==
"*" || pattern_value ==
"*::*") ++fImplNo;
1262#ifdef SELECTION_DEBUG
1263 std::cout<<
"\n\tfYes = "<<fYes<<
", fImplNo = "<<fImplNo<<std::endl;
1266 if (explicit_selector) {
1268#ifdef SELECTION_DEBUG
1269 std::cout<<
"\tReturning Yes"<<std::endl;
1272 return explicit_selector;
1274 else if (fImplNo > 0) {
1275#ifdef SELECTION_DEBUG
1276 std::cout<<
"\tReturning No"<<std::endl;
1283#ifdef SELECTION_DEBUG
1284 std::cout<<
"\tReturning Yes"<<std::endl;
1297 std::string parent_name;
1298 std::string parent_qual_name;
1302 if (!
GetParentName(D, parent_name, parent_qual_name))
return 0;
1311 std::string name_value;
1312 std::string pattern_value;
1315 = it->Match(llvm::dyn_cast<clang::NamedDecl>(D), parent_qual_name,
"",
false);
1322 explicit_selector = &(*it);
1324 if (it->GetAttributeValue(
"pattern", pattern_value)) {
1326 if (pattern_value !=
"*" && pattern_value !=
"*::*") explicit_selector = &(*it);
1335#ifdef SELECTION_DEBUG
1336 std::cout<<
"\tNo returned"<<std::endl;
1344 if (pattern_value ==
"*" || pattern_value ==
"*::*") ++fImplNo;
1354 if (!it->HasMethodSelectionRules() && !it->HasFieldSelectionRules()) {
1356#ifdef SELECTION_DEBUG
1357 std::cout<<
"\tNo fields and methods"<<std::endl;
1363 clang::Decl::Kind kind = D->getKind();
1364 if (kind == clang::Decl::Field || kind == clang::Decl::CXXMethod || kind == clang::Decl::CXXConstructor || kind == clang::Decl::CXXDestructor){
1365 std::list<VariableSelectionRule> members;
1366 std::list<VariableSelectionRule>::iterator mem_it;
1367 std::list<VariableSelectionRule>::iterator mem_it_end;
1368 std::string prototype;
1370 if (kind == clang::Decl::Field) {
1371 members = it->GetFieldSelectionRules();
1374 if (
const clang::FunctionDecl*
F = llvm::dyn_cast<clang::FunctionDecl> (D)){
1376 prototype = str_name + prototype;
1381 members = it->GetMethodSelectionRules();
1383 mem_it = members.begin();
1384 mem_it_end = members.end();
1385 for (; mem_it != mem_it_end; ++mem_it) {
1398#ifdef SELECTION_DEBUG
1399 std::cout<<
"\n\tfYes = "<<fYes<<
", fImplNo = "<<fImplNo<<std::endl;
1402 if (explicit_selector) {
1403#ifdef SELECTION_DEBUG
1404 std::cout<<
"\tReturning Yes"<<std::endl;
1407 return explicit_selector;
1409 else if (fImplNo > 0) {
1411#ifdef SELECTION_DEBUG
1412 std::cout<<
"\tReturning No"<<std::endl;
1419#ifdef SELECTION_DEBUG
1420 std::cout<<
"\tReturning Yes"<<std::endl;
1440 if (rule.GetAttributeValue(
"pattern",
name)) {
1442 }
else if (rule.GetAttributeValue(
"name",
name)) {
1447 std::string file_name_value;
1448 if (!rule.GetAttributeValue(
"file_name", file_name_value)) file_name_value.clear();
1450 if (!file_name_value.empty()) {
1455 const char* attrName =
nullptr;
1456 const char* attrVal =
nullptr;
1457 if (!file_name_value.empty()) {
1458 attrName =
"file name";
1459 attrVal = file_name_value.c_str();
1462 if (!
name.empty()) attrVal =
name.c_str();
1471 if (rule.GetAttributeValue(
"pattern",
name)) {
1473 }
else if (rule.GetAttributeValue(
"name",
name)) {
1480 rule.PrintAttributes(std::cout,3);
1485#if defined(R__MUST_REVISIT)
1486#if R__MUST_REVISIT(6,2)
1488"Warnings concerning non matching selection rules are suppressed. An action is to be taken.\n");
1522#if Enums_rules_becomes_useful_for_rootcling
1526 if (rule.GetAttributeValue(
"pattern",
name)) {
1528 }
else if (rule.GetAttributeValue(
"name",
name)) {
1537 rule.PrintAttributes(std::cout,3);
1552 if (it->HasAttributeWithName(
"name")) {
1553 std::string name_value;
1554 it->GetAttributeValue(
"name", name_value);
1557 const clang::CXXRecordDecl *target
1558 = ROOT::TMetaUtils::ScopeSearch(name_value.c_str(), interp,
1561 it->SetCXXRecordDecl(target,typeptr);
const clang::CXXRecordDecl * R__ScopeSearch(const char *name, const clang::Type **resultType=0)
static bool Implies(const ClassSelectionRule &patternRule, const ClassSelectionRule &nameRule)
static bool HasDuplicate(RULE *rule, std::unordered_map< std::string, RULE * > &storedRules, const std::string &attrName)
static int CheckDuplicatesImp(RULESCOLLECTION &rules)
void Info(const char *location, const char *msgfmt,...)
void Error(const char *location, const char *msgfmt,...)
void Warning(const char *location, const char *msgfmt,...)
Double_t(* Function)(Double_t)
void SetAttributeValue(const std::string &attributeName, const std::string &attributeValue)
const std::string & GetAttributePattern() const
bool HasInterpreter() const
void SetSelected(ESelect sel)
EMatchType Match(const clang::NamedDecl *decl, const std::string &name, const std::string &prototype, bool isLinkdef) const
const std::string & GetAttributeName() const
const AttributesMap_t & GetAttributes() const
ESelect GetSelected() const
bool fIsDeep
if –deep option passed from command line, this should be set to true
const ClassSelectionRule * IsDeclSelected(const clang::RecordDecl *D) const
const BaseSelectionRule * IsLinkdefVarSelected(const clang::VarDecl *D, const std::string &qual_name) const
void GetDeclQualName(const clang::Decl *D, std::string &qual_name) const
const BaseSelectionRule * IsVarSelected(const clang::VarDecl *D, const std::string &qual_name) const
const BaseSelectionRule * IsFunSelected(const clang::FunctionDecl *D, const std::string &qual_name) const
void AddVariableSelectionRule(const VariableSelectionRule &varSel)
void AddClassSelectionRule(const ClassSelectionRule &classSel)
std::list< VariableSelectionRule > fVariableSelectionRules
List of the global variables selection rules.
bool AreAllSelectionRulesUsed() const
bool GetFunctionPrototype(const clang::FunctionDecl *F, std::string &prototype) const
bool SearchNames(cling::Interpreter &interp)
bool GetParentName(const clang::Decl *D, std::string &parent_name, std::string &parent_qual_name) const
std::list< FunctionSelectionRule > fFunctionSelectionRules
List of the global functions selection rules.
const BaseSelectionRule * IsLinkdefFunSelected(const clang::FunctionDecl *D, const std::string &qual_name) const
std::list< EnumSelectionRule > fEnumSelectionRules
List of the enums selection rules.
void PrintSelectionRules() const
bool GetHasFileNameRule() const
ROOT::TMetaUtils::TNormalizedCtxt & fNormCtxt
bool IsLinkdefFile() const
bool GetDeclName(const clang::Decl *D, std::string &name, std::string &qual_name) const
void AddEnumSelectionRule(const EnumSelectionRule &enumSel)
const BaseSelectionRule * IsMemberSelected(const clang::Decl *D, const std::string &str_name) const
bool IsSelectionXMLFile() const
void ClearSelectionRules()
bool IsParentClass(const clang::Decl *D) const
const BaseSelectionRule * IsLinkdefEnumSelected(const clang::EnumDecl *D, const std::string &qual_name) const
void AddFunctionSelectionRule(const FunctionSelectionRule &funcSel)
const ClassSelectionRule * IsClassSelected(const clang::Decl *D, const std::string &qual_name) const
const BaseSelectionRule * IsEnumSelected(const clang::EnumDecl *D, const std::string &qual_name) const
const ClassSelectionRule * IsNamespaceSelected(const clang::Decl *D, const std::string &qual_name) const
std::list< ClassSelectionRule > fClassSelectionRules
List of the class selection rules.
cling::Interpreter & fInterp
const BaseSelectionRule * IsLinkdefMethodSelected(const clang::Decl *D, const std::string &qual_name) const
Type
enumeration specifying the integration types.
double Var(const RVec< T > &v)
Get the variance of the elements of an RVec.
bool areEqual(const RULE *r1, const RULE *r2, bool moduloNameOrPattern=false)
void GetNormalizedName(std::string &norm_name, std::string_view name)
Return the normalized name.
constexpr Double_t E()
Base of natural log: