Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

75x Fireworks: open 3D region from context menu #10488

Merged
merged 2 commits into from Jul 31, 2015

Conversation

alja
Copy link
Contributor

@alja alja commented Jul 30, 2015

This is forward port of #10487.

@alja
Copy link
Contributor Author

alja commented Jul 30, 2015

+1

@cmsbuild cmsbuild added this to the Next CMSSW_7_5_X milestone Jul 30, 2015
@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_7_5_X IBs once checked with relvals in the development release cycle of CMSSW or unless it breaks tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @Degano, @smuzaffar

davidlange6 added a commit that referenced this pull request Jul 31, 2015
75x Fireworks: open 3D region from context menu
@davidlange6 davidlange6 merged commit 833842a into cms-sw:CMSSW_7_5_X Jul 31, 2015
reco::parser::Grammar grammar(tmpPtr,type);
edm::ObjectWithDict o(type, (void*)id.item()->modelData(id.index()));
try {
parse("theta()", grammar.use_parser<1>() >> end_p, space_p).full;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really work?
According to the Clang 664 and 666 line expressions are not used:

Fireworks/Core/src/FWGUIManager.cc:664:70: error: expression result unused [-Werror,-Wunused-value]
Fireworks/Core/src/FWGUIManager.cc:666:68: error: expression result unused [-Werror,-Wunused-value]

This is crashing CLANG IBs.

I guess you need if-statement around parse() to at least calm down the Clang, e.g.

111    if(m_type != edm::TypeWithDict() && iExpression.size())
112    {
113       using namespace fireworks::expression;
114
115       //Backwards compatibility with old format
116       std::string temp = oldToNewFormat(iExpression);
117
118       //now setup the parser
119       try
120       {
121          if(parse(temp.c_str(), grammar.use_parser<1>() >> end_p, space_p).full)
122          {
123             m_entries.push_back(Entry(tmpPtr, iExpression, iUnit, iTitle.empty() ? iExpression :iTitle , iPrec));
124             m_titleWidth = TMath::Max(m_titleWidth, (int) m_entries.back().m_title.size());
125             return true;
126          }
127       }
128       catch(const reco::parser::BaseException& e)
129       {
130          // std::cout <<"failed to parse "<<iExpression<<" because "<<reco::parser::baseExceptionWhat(e)<<std::endl;
131       }
132    }
133    return false;

@alja alja deleted the clip-75x branch May 11, 2017 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants