CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
clangcms::EDMPluginDumper Class Reference

#include <EDMPluginDumper.h>

Inheritance diagram for clangcms::EDMPluginDumper:

Public Member Functions

void checkASTDecl (const clang::ClassTemplateDecl *TD, clang::ento::AnalysisManager &mgr, clang::ento::BugReporter &BR) const
 

Private Attributes

clang::OwningPtr
< clang::ento::BugType > 
BT
 
CmsException m_exception
 

Detailed Description

Definition at line 21 of file EDMPluginDumper.h.

Member Function Documentation

void clangcms::EDMPluginDumper::checkASTDecl ( const clang::ClassTemplateDecl *  TD,
clang::ento::AnalysisManager &  mgr,
clang::ento::BugReporter &  BR 
) const

Definition at line 14 of file EDMPluginDumper.cc.

References RefreshWebPage::dname, F(), mergeVDriftHistosByStation::file, alignmentValidation::fname, Exhume::I, NULL, and AlCaHLTBitMon_QueryRunRegistry::string.

15  {
16 
17  std::string tname = TD->getTemplatedDecl()->getQualifiedNameAsString();
18  if ( tname == "edm::WorkerMaker" ) {
19  for ( auto I = TD->spec_begin(), E = TD->spec_end(); I != E; ++I) {
20  for (unsigned J = 0, F = I->getTemplateArgs().size(); J!=F; ++J) {
21  llvm::SmallString<100> buf;
22  llvm::raw_svector_ostream os(buf);
23  I->getTemplateArgs().get(J).print(mgr.getASTContext().getPrintingPolicy(),os);
24  std::string rname = os.str();
25  const char * pPath = std::getenv("LOCALRT");
26  std::string dname("");
27  if ( pPath != NULL ) dname = std::string(pPath);
28  std::string fname("/tmp/plugins.txt.unsorted");
29  std::string tname = dname + fname;
30  std::string ostring = rname +"\n";
31  std::ofstream file(tname.c_str(),std::ios::app);
32  file<<ostring;
33  }
34  }
35  }
36 
37 } //end class
#define NULL
Definition: scimark2.h:8
const std::complex< double > I
Definition: I.h:8
string fname
main script
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281

Member Data Documentation

clang::OwningPtr< clang::ento::BugType> clangcms::EDMPluginDumper::BT
mutableprivate

Definition at line 22 of file EDMPluginDumper.h.

CmsException clangcms::EDMPluginDumper::m_exception
private

Definition at line 30 of file EDMPluginDumper.h.