forked from OSchip/llvm-project
f9f49d3594
ClangASTContext::getASTContext() currently returns a ptr but we have an assert there since a while that the ASTContext is not a nullptr. This causes that we still have a lot of code that is doing nullptr checks on the result of getASTContext() which is all unreachable code. This patch changes the return value to a reference to make it clear this can't be a nullptr and deletes all the nullptr checks. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
FormatUtil.cpp | ||
FormatUtil.h | ||
SystemInitializerTest.cpp | ||
SystemInitializerTest.h | ||
lldb-test.cpp |