Fix buffer size extension in TBasket::LoadBasketBuffers

We need to not only resize in write mode but also
check the size in write mode (as the extra space is
counted or not in BufferSize depending on the
read/write mode).

This fixes ROOT-5616

(cherry picked from v5-34-00 patch branch
 commit ab9d222dc7759685e2520bd7ab5a782319a915e9)
fix bug in analytical integrals over RooHistPdf sub-ranges

- fixed typo: frcode |= ... instead of frcode = ...
- reactivate old behaviour that permits analytical integrations for
  interpolated RooHistPdfs, if the integration range is the full range
  of all the integration variable(s)
- fix a bug with multidimensional integrals (my code was a bit too
  clever)
RooRandom: add interface to set RNG, use TRandom::RndmArray for greater speed
Removed the need of -std=cxx11 when building with cocoa (CMake)
Now able to produce template fwd decl for the new rootmap file format

Rootcling is now able to produce the template forward declaration for the new rootmap format.
When looping on the selected classes, it is checked if they are templates.
If this is the case, the definition is found together with its containing namespaces.
Fix Coverity issue 53235 53234

The result of ctime was used directly w/o checking if the
returned pointer was null.
All the calls were replaced.
It is maybe relevant to observe that the defect was found only
now even if the code was there since a couple of months.
Replace "advanced" syntax ('operator' []).
fix compiler warning
Extend SubstTemplateTypeParmType to support non-canonical types.

Previously SubstTemplateTypeParmType could only keep the canonical
type.  Our hack to support template default replacement with non-canonical
type lead to the creation of SubstTemplateTypeParmType which had their
'canonical type' pointer pointing to non-canonical type.

This patch add a new data member to SubstTemplateTypeParmType to hold
the non-canonical type representation *in addition* to the canonical
type.

This fixes ROOT-5612.
Proper offset calculation in TCling::Execute with TMethod*

We need to calculate the offset between the actual class of the
object and the class in which the method is implemented.  This
is usually done by TClingCallFunc::SetFunc, since we bypassed
it in the Execute method that take a TMethod*, we need to do
the calculation explicitly.
resolve ambituity in names when classes live in namespaces
fix typo
Remove unused variable
Fix tear down issues [when libNet is loaded after TROOT is built].

On Ubuntu the linker strips the unused libraries.  Eventhough stressHistogram
is explicitly linked against libNet, it is not retained and thus is loaded only
as needed in the middle part of the execution.   Concretely this also means
that it is loaded *after* the construction of the TApplication object and thus
after the registration (atexit) of the EndOfProcessCleanups routine.
Consequently, after the end of main, libNet is unloaded before
EndOfProcessCleanups is called.   When EndOfProcessCleanups is executed it
indirectly needs the TClass for TSocket and its search will use resources that
have already been unloaded (technically the function static in TUnixSystem's
DynamicPath and the dictionary from libNet).

Similarly, the ordering (before this commit) was broken in the following case:

   TApplication creation (EndOfProcessCleanups registration)
   load UserLibrary
   create TFile
   Append UserObject to TFile

and after the end of main the order of execution was

   unload UserLibrary
   call EndOfProcessCleanups
      Write the TFile
        attempt to write the user object.
   ....

where what we need is to have the files closen/written before the unloading of
the library.

To solve the problem we now register an atexit function for every dictionary
thus making sure there is at least one executed before the first library tear
down after main.

If atexit is called directly within a library's code, the function will called
*either* when the library is 'dlclose'd or after then end of main (whichever
comes first).   We do *not* want the files to be closed whenever a library is
unloaded via dlclose.  To avoid this, we add the function (CallCloseFiles) from
the dictionary indirectly (via ROOT::RegisterModule).  In this case the
function will only be called either when libCore is 'dlclose'd or right after
the end of main.

This fixes ROOT-5620.
Fix spurrious issue with same name twice in branch name.

Code that was specific to TBranchSTL was applied to all
branches leading to spurrious removal of part of the branch
name if the same data member name was repeated twice in
the hierarchy.   This fixes ROOT-5628.
In CallCloseFiles do not inadvertently create the TROOT object.

This fixes the end of programs (eg. stressVector) that link against
libCore but do not use TROOT.
Add missing transaction in TClingTypedefInfo.

This fixes ROOT-5629
Some operators like #minus #plus #mp #hbar ... ignored the color defined by the operator #color.
TLatex
Misseplled oxygen tag.