Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions core/base/inc/RtypesImp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,13 @@ inline void operator delete(void*, ROOT::Internal::TOperatorNewHelper*) { }

// The STL GenerateInitInstance are not unique and hence are declared static
// (not accessible outside the dictionary and not linker error for duplicate)
#if defined(__CINT__)
#define RootStlStreamer(name,STREAMER)
#else
#define RootStlStreamer(name,STREAMER) \
namespace ROOT { \
static TGenericClassInfo *GenerateInitInstance(const name*); \
static Short_t _R__UNIQUE_(R__dummyStreamer) = \
GenerateInitInstance((name*)0x0)->SetStreamer(STREAMER); \
R__UseDummy(_R__UNIQUE_(R__dummyStreamer)); \
}
#endif


#if defined(__cplusplus)
/* Helper class to avoid compiler warning about casting function pointer
Expand Down
8 changes: 4 additions & 4 deletions core/base/src/TApplication.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1809,12 +1809,12 @@ Longptr_t TApplication::ExecuteFile(const char *file, Int_t *error, Bool_t keep)
while (s && (*s == ' ' || *s == '\t')) s++; // strip-off leading blanks

// very simple minded pre-processor parsing, only works in case macro file
// starts with "#ifndef __CINT__". In that case everything till next
// "#else" or "#endif" will be skipped.
// starts with "#ifndef __CLING__" (__CINT__ for backward compatibility).
// In that case everything till next "#else" or "#endif" will be skipped.
if (*s == '#') {
char *cs = Compress(currentline);
if (strstr(cs, "#ifndef__CINT__") ||
strstr(cs, "#if!defined(__CINT__)"))
if (strstr(cs, "#ifndef__CLING__") || strstr(cs, "#ifndef__CINT__") ||
strstr(cs, "#if!defined(__CLING__)") || strstr(cs, "#if!defined(__CINT__)"))
ifndefc = 1;
else if (ifndefc && (strstr(cs, "#ifdef") || strstr(cs, "#ifndef") ||
strstr(cs, "#ifdefined") || strstr(cs, "#if!defined")))
Expand Down
2 changes: 1 addition & 1 deletion core/base/src/TSystem.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3455,7 +3455,7 @@ int TSystem::CompileMacro(const char *filename, Option_t *opt,
linkdefFile << "// File Automatically generated by the ROOT Script Compiler "
<< std::endl;
linkdefFile << std::endl;
linkdefFile << "#ifdef __CINT__" << std::endl;
linkdefFile << "#ifdef __CLING__" << std::endl;
linkdefFile << std::endl;
linkdefFile << "#pragma link C++ nestedclasses;" << std::endl;
linkdefFile << "#pragma link C++ nestedtypedefs;" << std::endl;
Expand Down
7 changes: 0 additions & 7 deletions core/clingutils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ foreach(dict ${stldicts})
LINKDEF src/${dict}Linkdef.h
DICTIONARY_OPTIONS --noIncludePaths
DEPENDENCIES Core)
target_include_directories(${dict}Dict PRIVATE ${CMAKE_SOURCE_DIR}/interpreter/cling/include/cling/cint)
endforeach()

set(CLANG_RESOURCE_DIR_STEM)
Expand Down Expand Up @@ -185,12 +184,6 @@ foreach(file ${custom_modulemaps}
install(FILES ${CMAKE_BINARY_DIR}/etc/cling/${dest_file} DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cling/${path})
endforeach()

foreach(file multimap multiset)
list(APPEND copy_commands COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/interpreter/cling/include/cling/cint/${file} ${CMAKE_BINARY_DIR}/etc/cling/cint/${file})
list(APPEND files_to_copy ${CMAKE_SOURCE_DIR}/interpreter/cling/include/cling/cint/${file})
install(FILES ${CMAKE_SOURCE_DIR}/interpreter/cling/include/cling/cint/${file} DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cling/cint)
endforeach()

set(stamp_file ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/LLVMRES.stamp)
if(MSVC)
add_custom_command(OUTPUT ${stamp_file}
Expand Down
13 changes: 6 additions & 7 deletions core/dictgen/src/rootcling_impl.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@ void CallWriteStreamer(const ROOT::TMetaUtils::AnnotatedRecordDecl &cl,
void GenerateLinkdef(llvm::cl::list<std::string> &InputFiles,
std::string &code_for_parser)
{
code_for_parser += "#ifdef __CINT__\n\n";
code_for_parser += "#ifdef __CLING__\n\n";
code_for_parser += "#pragma link off all globals;\n";
code_for_parser += "#pragma link off all classes;\n";
code_for_parser += "#pragma link off all functions;\n\n";
Expand Down Expand Up @@ -4274,8 +4274,8 @@ int RootClingMain(int argc,
// Data is in 'outputFile', therefore in the same scope.
llvm::StringRef moduleName;
std::string vfsArg;
// Adding -fmodules to the args will break lexing with __CINT__ defined,
// and we actually do lex with __CINT__ and reuse this variable later,
// Adding -fmodules to the args will break lexing with __CLING__ defined,
// and we actually do lex with __CLING__ and reuse this variable later,
// we have to copy it now.
auto clingArgsInterpreter = clingArgs;

Expand Down Expand Up @@ -4486,8 +4486,8 @@ int RootClingMain(int argc,
TClassEdit::Init(&helper);

// flags used only for the pragma parser:
clingArgs.push_back("-D__CINT__");
clingArgs.push_back("-D__MAKECINT__");
clingArgs.push_back("-D__CINT__"); // backward compatibility. Now __CLING__ should be used instead
clingArgs.push_back("-D__MAKECINT__"); // backward compatibility. Now __ROOTCLING__ should used instead

AddPlatformDefines(clingArgs);

Expand Down Expand Up @@ -4750,8 +4750,7 @@ int RootClingMain(int argc,
// interpPragmaSource and we still need to process it.

LinkdefReader ldefr(interp, constructorTypes);
clingArgs.push_back("-Ietc/cling/cint"); // For multiset and multimap


if (!ldefr.Parse(selectionRules, interpPragmaSource, clingArgs,
llvmResourceDir.c_str())) {
ROOT::TMetaUtils::Error(nullptr, "Parsing #pragma failed %s\n", linkdefFilename.c_str());
Expand Down
3 changes: 0 additions & 3 deletions gui/gui/inc/TGTextViewStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
#include <streambuf>
#include <iostream>

#if defined (R__WIN32) && defined (__MAKECINT__)
typedef basic_streambuf<char, char_traits<char> > streambuf;
#endif

class TGTextViewStreamBuf : public std::streambuf
{
Expand Down
5 changes: 0 additions & 5 deletions interpreter/cling/include/cling/cint/multimap

This file was deleted.

5 changes: 0 additions & 5 deletions interpreter/cling/include/cling/cint/multiset

This file was deleted.

2 changes: 1 addition & 1 deletion io/io/src/TFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3050,7 +3050,7 @@ void TFile::MakeProject(const char *dirname, const char * /*classes*/,
fprintf(fp,"<lcgdict>\n");
fprintf(fp,"\n");
} else {
fprintf(fp,"#ifdef __CINT__\n");
fprintf(fp,"#ifdef __CLING__\n");
fprintf(fp,"\n");
}

Expand Down
6 changes: 3 additions & 3 deletions io/io/src/TMakeProject.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ UInt_t TMakeProject::GenerateClassPrefix(FILE *fp, const char *clname, Bool_t to
if (implementEmptyClass==1) {
if (strchr(fullname, ':') == 0) {
// yes this is too aggressive, this needs to be fixed properly by moving the #pragma out of band.
fprintf(fp, "#ifdef __MAKECINT__\n#pragma link C++ class %s+;\n#endif\n", fullname);
fprintf(fp, "#ifdef __ROOTCLING__\n#pragma link C++ class %s+;\n#endif\n", fullname);
}
fprintf(fp, "#endif\n");
}
Expand Down Expand Up @@ -588,7 +588,7 @@ UInt_t TMakeProject::GenerateIncludeForTemplate(FILE *fp, const char *clname, ch
TClass *paircl = TClass::GetClass(what.Data());
if (paircl == 0 || !paircl->HasInterpreterInfo()) {
AddUniqueStatement(
fp, TString::Format("#ifdef __MAKECINT__\n#pragma link C++ class %s+;\n#endif\n", what.Data()),
fp, TString::Format("#ifdef __ROOTCLING__\n#pragma link C++ class %s+;\n#endif\n", what.Data()),
inclist);
}
}
Expand Down Expand Up @@ -634,7 +634,7 @@ void TMakeProject::GeneratePostDeclaration(FILE *fp, const TVirtualStreamerInfo
// Only ask for it if needed.
TClass *paircl = TClass::GetClass(what.Data());
if (paircl == 0 || !paircl->HasInterpreterInfo()) {
AddUniqueStatement(fp, TString::Format("#ifdef __MAKECINT__\n#pragma link C++ class %s+;\n#endif\n",what.Data()), inclist);
AddUniqueStatement(fp, TString::Format("#ifdef __ROOTCLING__\n#pragma link C++ class %s+;\n#endif\n",what.Data()), inclist);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions math/genvector/inc/Math/GenVector/Cartesian2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand All @@ -200,7 +200,7 @@ public :
} // end namespace ROOT


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
// need to put here setter methods to resolve nasty cyclical dependencies
// I need to include other coordinate systems only when Cartesian is already defined
// since they depend on it
Expand Down
4 changes: 2 additions & 2 deletions math/genvector/inc/Math/GenVector/Cartesian3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -232,7 +232,7 @@ public :
} // end namespace ROOT


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
// need to put here setter methods to resolve nasty cyclical dependencies
// I need to include other coordinate systems only when Cartesian is already defined
// since they depend on it
Expand Down
6 changes: 3 additions & 3 deletions math/genvector/inc/Math/GenVector/Cylindrical3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public :

// (none)

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -231,7 +231,7 @@ public :

#include "Math/GenVector/Cartesian3D.h"

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
#include "Math/GenVector/GenVector_exception.h"
#include "Math/GenVector/CylindricalEta3D.h"
#include "Math/GenVector/Polar3D.h"
Expand All @@ -246,7 +246,7 @@ void Cylindrical3D<T>::SetXYZ(Scalar xx, Scalar yy, Scalar zz) {
*this = Cartesian3D<Scalar>(xx, yy, zz);
}

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)


// ====== Set member functions for coordinates in other systems =======
Expand Down
6 changes: 3 additions & 3 deletions math/genvector/inc/Math/GenVector/CylindricalEta3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public :

// (none)

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -269,7 +269,7 @@ public :

#include "Math/GenVector/Cartesian3D.h"

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
#include "Math/GenVector/GenVector_exception.h"
#include "Math/GenVector/Polar3D.h"
#endif
Expand All @@ -283,7 +283,7 @@ void CylindricalEta3D<T>::SetXYZ(Scalar xx, Scalar yy, Scalar zz) {
*this = Cartesian3D<Scalar>(xx, yy, zz);
}

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)


// ====== Set member functions for coordinates in other systems =======
Expand Down
6 changes: 3 additions & 3 deletions math/genvector/inc/Math/GenVector/Polar2D.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ public :

// (none)

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand All @@ -208,7 +208,7 @@ public :

#include "Math/GenVector/Cartesian2D.h"

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
#include "Math/GenVector/GenVector_exception.h"
#endif

Expand All @@ -222,7 +222,7 @@ void Polar2D<T>::SetXY(Scalar a, Scalar b) {
}


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)


// ====== Set member functions for coordinates in other systems =======
Expand Down
6 changes: 3 additions & 3 deletions math/genvector/inc/Math/GenVector/Polar3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public :

// (none)

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -233,7 +233,7 @@ public :

#include "Math/GenVector/Cartesian3D.h"

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
#include "Math/GenVector/GenVector_exception.h"
#include "Math/GenVector/CylindricalEta3D.h"
#endif
Expand All @@ -248,7 +248,7 @@ void Polar3D<T>::SetXYZ(Scalar xx, Scalar yy, Scalar zz) {
*this = Cartesian3D<Scalar>(xx, yy, zz);
}

#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down
6 changes: 3 additions & 3 deletions math/genvector/inc/Math/GenVector/PtEtaPhiE4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -356,7 +356,7 @@ public :

// move implementations here to avoid circle dependencies
#include "Math/GenVector/PxPyPzE4D.h"
#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
#include "Math/GenVector/PtEtaPhiM4D.h"
#endif

Expand All @@ -370,7 +370,7 @@ inline void PtEtaPhiE4D<ScalarType>::SetPxPyPzE(Scalar px, Scalar py, Scalar pz,
}


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down
4 changes: 2 additions & 2 deletions math/genvector/inc/Math/GenVector/PtEtaPhiM4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ public :
Scalar t() const { return E(); }


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -389,7 +389,7 @@ inline void PtEtaPhiM4D<ScalarType>::SetPxPyPzE(Scalar px, Scalar py, Scalar pz,
}


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down
4 changes: 2 additions & 2 deletions math/genvector/inc/Math/GenVector/PxPyPzE4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -333,7 +333,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)
// move implementations here to avoid circle dependencies

#include "Math/GenVector/PtEtaPhiE4D.h"
Expand Down
4 changes: 2 additions & 2 deletions math/genvector/inc/Math/GenVector/PxPyPzM4D.h
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public :



#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down Expand Up @@ -376,7 +376,7 @@ inline void PxPyPzM4D<ScalarType>::SetPxPyPzE(Scalar px, Scalar py, Scalar pz, S
}


#if defined(__MAKECINT__) || defined(G__DICTIONARY)
#if defined(__ROOTCLING__) || defined(G__DICTIONARY)

// ====== Set member functions for coordinates in other systems =======

Expand Down
3 changes: 0 additions & 3 deletions math/genvector/inc/Math/GenVector/Transform3D.h
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,6 @@ class Transform3D {
*/
explicit constexpr Transform3D(const Translation3D<T> &t) { AssignFrom(t.Vect()); }

//#if !defined(__MAKECINT__) && !defined(G__DICTIONARY) // this is ambiguous with double * , double *


#ifdef OLD_VERSION
/**
Construct from a translation (using any type of DisplacementVector )
Expand Down
Loading
Loading