2409 Commits

Author SHA1 Message Date
Axel Naumann
8c3e5b2e2b Reset error count when hitting ext_return_has_expr. 2017-01-10 15:59:34 +01:00
Axel Naumann
4b78d08dfa Use a filtering diagclient for prompt input.
Before, cling was thrashing the location specific diag map making any diag emission really slow.
2017-01-10 15:59:34 +01:00
Axel Naumann
2c0cad5b49 Whitespace. 2016-12-20 14:14:04 +01:00
Frederich Munch
dbb5aa6186 Remove ForceSymbolsAsUsed from Interpreter.h. 2016-12-20 14:14:04 +01:00
Frederich Munch
f846990f8d Windows: Fix InterpreterException not being caught and terminating. 2016-12-20 12:59:08 +01:00
Frederich Munch
4d41bd315f Make InterpreterException::diagnose virtual and return a boolean. Refactor inheritance chain for InterpreterException. 2016-12-20 12:59:08 +01:00
Frederich Munch
d68ef916ac Use LLVM stream wrappers to reduce complexity and line counts. 2016-12-20 12:29:06 +01:00
Axel Naumann
c1e79e499d From Roman Zulak: Flush stdout less (textinput part). 2016-12-19 15:04:23 +01:00
Axel Naumann
43fe0be0a0 From Roman Zulak: Flush stdout less (cling). 2016-12-19 13:59:11 +01:00
Frederich Munch
1aabc2dbe0 Add simple wrappers for buffered LLVM streams. Use them to control Value printing format. 2016-12-19 13:59:11 +01:00
Frederich Munch
075f4ffa83 Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
Bertrand Bellenot
ddca7a12a2 Speling. 2016-12-19 12:14:26 +01:00
Vassil Vassilev
06704a97fb Tabs. 2016-12-17 21:14:25 +01:00
Frederich Munch
2897531390 Windows: Fix crash on aliased globals 2016-12-15 14:29:09 +01:00
Frederich Munch
7ee942f14e Windows: Avoid mangling Dtor_Comdat 2016-12-15 14:29:09 +01:00
Frederich Munch
8644c890f4 Windows: Fix crash on unloading of Dtor_Comdat destructors. 2016-12-15 14:29:09 +01:00
Axel Naumann
b6114f10e1 Fix logic precedence, as in sort of: if not assert-test then message. 2016-12-14 18:29:07 +01:00
Danilo Piparo
7d9d012893 Remove warning 2016-12-14 17:14:21 +01:00
Frederich Munch
4427d1a5c2 Have .> cmd expand env-vars. Fixes OutputRedirect test on Windows. 2016-12-14 09:29:10 +01:00
Frederich Munch
1bf0e16d7f Redirect to file properly when no space between > and filename. 2016-12-14 09:29:10 +01:00
Frederich Munch
e0ddb56b20 Fixes for output redirection.
Decouple redirection state from MetaProcessor and MaybeRedirectOutputRAII.
Only suspend redirection when writing to the prompt.
Allow user to redirect to files named 1, 2, &1, &2.
Allow stderr and stdout to be redirected to one another.
Don't create _IO_2_1_stdout_ file.
2016-12-14 09:29:10 +01:00
Frederich Munch
0fce2df9ed Only initialize redirection state if used. 2016-12-14 09:29:10 +01:00
Frederich Munch
bedf4302e4 Avoid unnecessary string allocations. 2016-12-14 09:29:10 +01:00
Frederich Munch
f7e4bb2615 Add default for MetaProcessor::process Value argument. 2016-12-14 09:29:10 +01:00
Frederich Munch
d4aed2527d Add CLING_EXPORT macro. 2016-12-12 12:44:09 +01:00
Frederich Munch
73b7f6d911 MetaProcessor::process requires single line input. 2016-12-12 12:29:38 +01:00
Frederich Munch
9becb2a25c Remove unused members of MetaProcessor in Release. 2016-12-12 12:29:38 +01:00
Frederich Munch
b7bdd91739 Add error handling to MetaProcessor::readInputFromFile. 2016-12-12 12:29:38 +01:00
Frederich Munch
178c33e251 Optimize InputValidator to avoid unnecessary copy when retrieving the input directly before a reset, and to release memory when reset. 2016-12-12 12:29:38 +01:00
Frederich Munch
91c925632c Add template keyword support to InputValidator. 2016-12-12 12:29:38 +01:00
Frederich Munch
723bed09d5 Add preprocessor #if conditional support to InputValidator. 2016-12-12 12:29:38 +01:00
Frederich Munch
72c3eac1e1 Add block comment support to InputValidator. 2016-12-12 12:29:38 +01:00
Frederich Munch
a2fd30a8d5 Don't reallocate MetaLexer on the heap for every line. Its a waste of time for 24 bytes that will be needed for every line anyway. Remove bufferEnd field as it was entirely unused. 2016-12-12 12:29:38 +01:00
Axel Naumann
c54f88ce6a Silence unused param warning, if this is what this should do? 2016-12-08 12:14:16 +01:00
Axel Naumann
763b36c042 HandleResizeSignal() needs fOutputID; initialize it first. 2016-12-08 12:14:16 +01:00
Frederich Munch
9edf676001 Remove call to fsync. 2016-12-08 12:14:01 +01:00
Frederich Munch
feedccb427 Fix tty/console output prompt when piping to a file. 2016-12-08 12:14:01 +01:00
Frederich Munch
d82d144e43 Windows: Fix tty/console when input is piped in. 2016-12-08 12:14:01 +01:00
Frederich Munch
354b080f0f Windows: Fix undefined symbols introduced in 0d50cea. clang::LangOptions::setStackProtector(SSPStrong) requires bufferoverflowu.lib. 2016-12-08 10:29:09 +01:00
Frederich Munch
72c78e65e7 Make ClangInternalState more const correct. 2016-12-02 14:14:06 +01:00
Frederich Munch
94b62b2220 Add verbosity argument to ClangInternalState::compare. 2016-12-02 14:14:06 +01:00
Frederich Munch
020b83c452 Fix using llvm::StringRef data as c-string. 2016-12-02 14:14:06 +01:00
Axel Naumann
4b5f2c6b15 Silence warnings. 2016-12-01 17:29:08 +01:00
Bertrand Bellenot
f67fbca15b Revert previous change ("extern" was not the problem) 2016-12-01 17:14:05 +01:00
Bertrand Bellenot
43c8a82180 Remove extra "extern" qualifier
Fix cling.exp : error LNK2001: unresolved external symbol "char const * const cling::valuePrinterInternal::kEmptyCollection"
2016-12-01 11:59:05 +01:00
Bertrand Bellenot
5d0e1af50c Filter out non-Windows include 2016-12-01 10:24:47 +01:00
Bertrand Bellenot
a855e3b679 Call ASCII Windows functions. 2016-12-01 10:24:47 +01:00
Bertrand Bellenot
0d50cea5ca Sync clang and cling options on Windows. 2016-11-30 10:14:14 +01:00
Bertrand Bellenot
23d3c1669d Use simple LoadLibrary() function 2016-11-30 10:14:13 +01:00
Bertrand Bellenot
aa5b7fe2ce Do not force non-unicode. 2016-11-30 10:14:12 +01:00