Ignore some diagnostics, even when we declare.

This commit is contained in:
Vassil Vassilev 2013-05-21 16:15:22 +02:00 committed by sftnight
parent b36efaa548
commit 312a24266e

View File

@ -679,6 +679,9 @@ namespace cling {
Interpreter::DeclareInternal(const std::string& input,
const CompilationOptions& CO,
const clang::Decl** D /* = 0 */) {
// Disable warnings which doesn't make sense when using the prompt
// This gets reset with the clang::Diagnostics().Reset()
ignoreFakeDiagnostics();
const Transaction* lastT = m_IncrParser->Compile(input, CO);
if (lastT->getIssuedDiags() != Transaction::kErrors) {