Skip to content

Conversation

@marsupial
Copy link
Contributor

& remove outdated comments.

Copy link
Member

@Axel-Naumann Axel-Naumann left a comment

Choose a reason for hiding this comment

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

Very nice, good idea! Thanks for your PR - could you address the tiny comments of mine?

void Parse(int argc, const char* const argv[],
std::vector<std::string>* Inputs = nullptr);

///\brief Whether the options given will not override anything for the
Copy link
Member

Choose a reason for hiding this comment

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

The options given where? Who will override? What's "for the Interpreter's default language options"? What does "false" mean given "whether... will not"? I.e. could you expand yet simplify this doc a bit? :-)

PPOpts.addMacroDef("__CLING__CXX11");
}
if (CI->getLangOpts().CPlusPlus14 == 1)
PPOpts.addMacroDef("__CLING__CXX14");
Copy link
Member

Choose a reason for hiding this comment

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

..and why not 17?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

One day, I didn't think wise to mark __CLING__CXX17 until C++17 was ratified.

//------------------------------------------------------------------------------

// RUN: cat %s | %cling -D__STRICT_ANSI__ -std=gnu++11 -Xclang -verify 2>&1 | FileCheck %s
// RUN: cat %s | %cling -std=gnu99 -x c -Xclang -verify 2>&1 | FileCheck %s
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a test for -std=c++1z? Reason is that cling cannot be compiled with both 1z and 11, so this will check that we don't override the -std by whatever cling detects at build time. (Yes, one could argue gnu99 could play that role, but that has a language change included; I'd prefer to test these two items separately.)

@marsupial
Copy link
Contributor Author

Done excluding __CLING__CXX17.

There are uses that are valid even if the host compiled with _GLIBCXX_USE_FLOAT128.
@Axel-Naumann
Copy link
Member

Thanks, merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants