[lldb][NFC] Move ClangASTContext::m_scratch_ast_source_up to the appropriate class
authorRaphael Isemann <teemperor@gmail.com>
Tue, 24 Dec 2019 08:31:45 +0000 (09:31 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 24 Dec 2019 15:32:40 +0000 (16:32 +0100)
commita12ac7009e99c6f9e72652e34019f07df9970204
treed434dc442293e888f79945776b7bb445478e6fd2
parentf58f39137c6e5a324ef684b1d72bddae244aa94d
[lldb][NFC] Move ClangASTContext::m_scratch_ast_source_up to the appropriate class

m_scratch_ast_source_up is only used by ClangASTContextForExpressions so it
should also be declared only in that class. Also make all other members of
ClangASTContext private and move the initialization code for ClangASTContextForExpressions
into the constructor.
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/source/Symbol/ClangASTContext.cpp