llvm-project/lldb
Raphael Isemann 73951a11c6 [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap.
This adds a check that the ClangASTContext actually fits to the
DeclContext that we want to create a CompilerDeclContext for. If
the ClangASTContext (and its associated ASTContext) does not fit
to the DeclContext (that is, the DeclContext wasn't created by the
ASTContext), all computations using this malformed CompilerDeclContext
will yield unpredictable results.

Also fixes the only place that actually hits this assert which is the
construction of a CompilerDeclContext in ClangExpressionDeclMap
where we pass an unrelated ASTContext instead of the ASTContext
of the current expression.

I had to revert my previous change to DWARFASTParserClangTests.cpp
back to using the unsafe direct construction of CompilerDeclContext
as this assert won't work if the DeclContext we pass isn't a valid
DeclContext in the first place.
2019-12-23 11:48:02 +01:00
..
cmake build: use `find_package(Python3)` rather than `PYTHON_HOME` 2019-12-22 20:47:25 -08:00
docs [lldb/CMake] Rename LLDB_DISABLE_PYTHON to LLDB_ENABLE_PYTHON 2019-12-13 13:41:11 -08:00
examples [Examples] Move structured-data unpacking out of the loop. (NFC) 2019-11-22 15:43:39 -08:00
include/lldb [lldb][NFC] Simplify ClangASTContext::GetTranslationUnitDecl 2019-12-23 11:02:21 +01:00
packages/Python/lldbsuite [lldb/test] Skip editline tests when LLDB_ENABLE_LIBEDIT is off. 2019-12-20 21:01:23 -08:00
resources [CMake] Revised LLDB.framework builds 2019-01-04 12:46:50 +00:00
scripts [Lldb/Lua] Generate Lua Bindings 2019-12-21 11:28:41 -08:00
source [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap. 2019-12-23 11:48:02 +01:00
test [lldb/lua] Fix bindings.test for lua-5.1 2019-12-23 11:07:35 +01:00
third_party/Python/module Increase timeout in pexpect to lower chances of tests failing under ASAN. 2019-10-10 16:16:49 +00:00
tools [lldb][NFC] Return a reference from ClangASTContext::getASTContext and remove dead nullptr checks 2019-12-21 22:51:35 +01:00
unittests [lldb] Add sanity check to CreateDeclContext and fixed illformed CompilerContext in ClangExpressionDeclMap. 2019-12-23 11:48:02 +01:00
utils [lldb] Respect previously set values of LLDB_TABLEGEN_EXE 2019-12-16 14:31:42 -08:00
.arcconfig
.clang-format
.gitignore Add .noindex to the gitignore 2019-04-05 17:57:42 +00:00
CMakeLists.txt build: improve python checks for Windows 2019-12-22 13:57:46 -08:00
CODE_OWNERS.txt [lldb][NFC] Cleanup mentions and code related to lldb-mi 2019-07-19 15:55:23 +00:00
LICENSE.TXT Fix typos throughout the license files that somehow I and my reviewers 2019-01-21 09:52:34 +00:00
use_lldb_suite_root.py