Use the document in the snapshot when available.

This commit is contained in:
Roberto Raggi
2010-05-25 10:47:49 +02:00
parent 3141edd2ab
commit 2a0f901e16
3 changed files with 19 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ namespace CPlusPlus {
class CPLUSPLUS_EXPORT CheckUndefinedSymbols: protected ASTVisitor
{
public:
CheckUndefinedSymbols(Document::Ptr doc, const Snapshot &snapshot);
CheckUndefinedSymbols(TranslationUnit *unit, const LookupContext &context);
virtual ~CheckUndefinedSymbols();
QList<Document::DiagnosticMessage> operator()(AST *ast);