|
ROOT 6.08/07 Reference Guide |
#include <algorithm>#include <iostream>#include <sstream>#include <stdlib.h>#include <stdio.h>#include <unordered_set>#include "RConfigure.h"#include "RConfig.h"#include "Rtypes.h"#include "compiledata.h"#include "RStl.h"#include "clang/AST/ASTContext.h"#include "clang/AST/Attr.h"#include "clang/AST/CXXInheritance.h"#include "clang/AST/Decl.h"#include "clang/AST/DeclTemplate.h"#include "clang/AST/Type.h"#include "clang/AST/TypeVisitor.h"#include "clang/Frontend/CompilerInstance.h"#include "clang/Lex/HeaderSearch.h"#include "clang/Lex/ModuleMap.h"#include "clang/Lex/Preprocessor.h"#include "clang/Sema/Sema.h"#include "clang/Sema/SemaDiagnostic.h"#include "cling/Interpreter/LookupHelper.h"#include "cling/Interpreter/Transaction.h"#include "cling/Interpreter/Interpreter.h"#include "cling/Utils/AST.h"#include "llvm/Support/Path.h"#include "llvm/Support/FileSystem.h"#include "../../../interpreter/llvm/src/tools/clang/lib/Sema/HackForDefaultTemplateArg.h"#include "TMetaUtils.h"Namespaces | |
| ROOT | |
| This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecutor::MapReduce. | |
| ROOT::TMetaUtils | |
Typedefs | |
| using | TNCtxtFullQual = ROOT::TMetaUtils::TNormalizedCtxtImpl |
Functions | |
| static bool | areEqualTypes (const clang::TemplateArgument &tArg, llvm::SmallVectorImpl< clang::TemplateArgument > &preceedingTArgs, const clang::NamedDecl &tPar, const cling::Interpreter &interp, const ROOT::TMetaUtils::TNormalizedCtxt &normCtxt) |
| static bool | areEqualValues (const clang::TemplateArgument &tArg, const clang::NamedDecl &tPar) |
| std::cout << "Are equal values?\n"; More... | |
| int | dumpDeclForAssert (const clang::Decl &D, const char *commentStart) |
| const clang::DeclContext * | GetEnclosingSpace (const clang::RecordDecl &cl) |
| static clang::SourceLocation | getFinalSpellingLoc (clang::SourceManager &sourceManager, clang::SourceLocation sourceLoc) |
| const clang::CXXMethodDecl * | GetMethodWithProto (const clang::Decl *cinfo, const char *method, const char *proto, const cling::Interpreter &interp, bool diagnose) |
| static bool | hasSomeTypedefSomewhere (const clang::Type *T) |
| bool | IsTemplate (const clang::Decl &cl) |
| static bool | isTypeWithDefault (const clang::NamedDecl *nDecl) |
| Check if this NamedDecl is a template parameter with a default argument. More... | |
| static void | KeepNParams (clang::QualType &normalizedType, const clang::QualType &vanillaType, const cling::Interpreter &interp, const ROOT::TMetaUtils::TNormalizedCtxt &normCtxt) |
| This function allows to manipulate the number of arguments in the type of a template specialisation. More... | |
| static bool | RecurseKeepNParams (clang::TemplateArgument &normTArg, const clang::TemplateArgument &tArg, const cling::Interpreter &interp, const ROOT::TMetaUtils::TNormalizedCtxt &normCtxt, const clang::ASTContext &astCtxt) |
| static void | replaceEnvVars (const char *varname, std::string &txt) |
| Reimplementation of TSystem::ExpandPathName() that cannot be used from TMetaUtils. More... | |
| static int | TreatSingleTemplateArg (const clang::TemplateArgument &arg, std::string &argFwdDecl, const cling::Interpreter &interpreter, bool acceptStl=false) |
| using TNCtxtFullQual = ROOT::TMetaUtils::TNormalizedCtxtImpl |
Definition at line 672 of file TMetaUtils.cxx.
|
static |
Definition at line 3422 of file TMetaUtils.cxx.
|
static |
std::cout << "Are equal values?\n";
Definition at line 3523 of file TMetaUtils.cxx.
| int dumpDeclForAssert | ( | const clang::Decl & | D, |
| const char * | commentStart | ||
| ) |
Definition at line 4071 of file TMetaUtils.cxx.
| const clang::DeclContext* GetEnclosingSpace | ( | const clang::RecordDecl & | cl | ) |
Definition at line 2117 of file TMetaUtils.cxx.
|
static |
Definition at line 3134 of file TMetaUtils.cxx.
| const clang::CXXMethodDecl* GetMethodWithProto | ( | const clang::Decl * | cinfo, |
| const char * | method, | ||
| const char * | proto, | ||
| const cling::Interpreter & | interp, | ||
| bool | diagnose | ||
| ) |
Definition at line 1030 of file TMetaUtils.cxx.
|
static |
Definition at line 4388 of file TMetaUtils.cxx.
|
inline |
Definition at line 677 of file TMetaUtils.cxx.
|
static |
Check if this NamedDecl is a template parameter with a default argument.
This is a single interface to treat both integral and type parameters. Returns true if this is the case, false otherwise
Definition at line 3552 of file TMetaUtils.cxx.
|
static |
This function allows to manipulate the number of arguments in the type of a template specialisation.
Definition at line 3620 of file TMetaUtils.cxx.
|
static |
Definition at line 3570 of file TMetaUtils.cxx.
|
static |
Reimplementation of TSystem::ExpandPathName() that cannot be used from TMetaUtils.
Definition at line 4857 of file TMetaUtils.cxx.
|
static |
Definition at line 5158 of file TMetaUtils.cxx.