Skip to content
Snippets Groups Projects
Commit b088aa2a authored by Philippe Canal's avatar Philippe Canal
Browse files

CINT does not know anything about classes anymore, no point in asking :)

git-svn-id: http://root.cern.ch/svn/root/trunk@47026 27541ba8-7e3a-0410-8455-c3a389f83636
parent 698ec72d
No related branches found
No related tags found
No related merge requests found
...@@ -1686,25 +1686,16 @@ Bool_t TCintWithCling::CheckClassInfo(const char* name, Bool_t autoload /*= kTRU ...@@ -1686,25 +1686,16 @@ Bool_t TCintWithCling::CheckClassInfo(const char* name, Bool_t autoload /*= kTRU
if (!autoload) { if (!autoload) {
flag = 3; flag = 3;
} }
Int_t tagnum = G__defined_tagname(classname, flag); // This function might modify the name (to add space between >>).
if (tagnum >= 0) { TClingClassInfo tci(fInterpreter, classname);
TClingClassInfo tci(fInterpreter, classname); if (!tci.IsValid()) {
G__ClassInfo info(tagnum); delete[] classname;
// If autoloading is off then Property() == 0 for autoload entries. return kFALSE;
if (!autoload && !info.Property()) { }
return kTRUE; if (tci.Property() & (G__BIT_ISENUM | G__BIT_ISCLASS | G__BIT_ISSTRUCT | G__BIT_ISUNION | G__BIT_ISNAMESPACE)) {
} // We are now sure that the entry is not in fact an autoload entry.
if (!tci.IsValid()) { delete[] classname;
if (!(info.Property() & (G__BIT_ISENUM)) && info.Size()) // Size()==0 is an approximation of IsForwardDeclaredOrSetForAutoloading() return kTRUE;
Warning("CheckClassInfo", "class '%s' exists in CINT, but not in the AST!\n", classname);
delete[] classname;
return kFALSE;
}
if (info.Property() & (G__BIT_ISENUM | G__BIT_ISCLASS | G__BIT_ISSTRUCT | G__BIT_ISUNION | G__BIT_ISNAMESPACE)) {
// We are now sure that the entry is not in fact an autoload entry.
delete[] classname;
return kTRUE;
}
} }
// Setting up iterator part of TClingTypedefInfo is too slow. // Setting up iterator part of TClingTypedefInfo is too slow.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment