From e32817f2fdd5f6aa942c0695385e01e74048f798 Mon Sep 17 00:00:00 2001 From: Philippe Canal <pcanal@fnal.gov> Date: Fri, 30 May 2014 09:24:06 -0500 Subject: [PATCH] For backward compatiblity (for example with Proof), re-add support for .include --- interpreter/cling/lib/MetaProcessor/MetaParser.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/interpreter/cling/lib/MetaProcessor/MetaParser.cpp b/interpreter/cling/lib/MetaProcessor/MetaParser.cpp index 9a4080915e1..5754c38ff18 100644 --- a/interpreter/cling/lib/MetaProcessor/MetaParser.cpp +++ b/interpreter/cling/lib/MetaProcessor/MetaParser.cpp @@ -286,7 +286,9 @@ namespace cling { } bool MetaParser::isICommand() { - if (getCurTok().is(tok::ident) && getCurTok().getIdent().equals("I")) { + if (getCurTok().is(tok::ident) && + ( getCurTok().getIdent().equals("I") + || getCurTok().getIdent().equals("include"))) { consumeAnyStringToken(tok::eof); llvm::StringRef path; if (getCurTok().is(tok::raw_ident)) -- GitLab