llvm-project/lldb/source
Davide Italiano 89419f88bc [ExpressionParser] Fix evaluation failures due to mismatch in C++ versions.
Clang recently switched to C++14 (with GNU extensions) as the default
dialect, but LLDB didn't catch up. This causes failures as LLDB still
evaluates ObjectiveC expressions as Objective C++ using C++98 as standard.

There are things not available in C++98, including, e.g. nullptr.
In some cases Objective-C `nil` is defined as `nullptr` so this causes
an evaluation failure. Switch the default to overcome this issue
(actually, currently lldb evaluates both C++11 and C++14 as C++11,
but that seems a larger change and definitely could be re-evaluated
in the future).

No test as this is currently failing on the LLDB bots after the clang
switch (so, de facto, there's a test already for it).

This is a recommit, with a thinko fixed (the code was previously
placed incorrectly).

<rdar://problem/36011995>

llvm-svn: 320778
2017-12-15 00:50:43 +00:00
..
API [SBBreakpointOptionCommon] Give this class an explicit destructor. 2017-12-07 18:06:06 +00:00
Breakpoint Move ArchSpec to the Utility module 2017-11-13 16:16:33 +00:00
Commands Remove custom TimePoint-formatting code 2017-11-27 17:06:42 +00:00
Core [Module] Throw away some more commented code. NFCI. 2017-11-18 00:52:29 +00:00
DataFormatters Use exact equality for category language matching, for all languages, except those specifically mentioned. 2017-06-06 20:40:24 +00:00
Expression Do not use default arguments of DataLayout::getPointer*. NFC 2017-12-06 01:32:06 +00:00
Host Move PseudoTerminal to the lldb_private namespace 2017-12-11 10:09:14 +00:00
Initialization Don't use llvm::EnablePrettyStackTrace on macOS. 2017-12-02 00:11:18 +00:00
Interpreter Add a StringList constructor to Args class 2017-12-11 14:22:30 +00:00
Plugins [ExpressionParser] Fix evaluation failures due to mismatch in C++ versions. 2017-12-15 00:50:43 +00:00
Symbol [ClangASTContext] Remove dead stuff found fixing something else. 2017-12-14 23:03:35 +00:00
Target Move PseudoTerminal to the lldb_private namespace 2017-12-11 10:09:14 +00:00
Utility [DataEncoder] Replace buggy versions of write functions. 2017-12-13 01:41:16 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00