From 6c347a12c66793db50bb180b3a0ad2ea8c38f6f9 Mon Sep 17 00:00:00 2001 From: Roberto Raggi Date: Mon, 7 Sep 2009 13:39:46 +0200 Subject: Introduced LiteralTable::findLiteral() and Control::findIdentifier() --- src/shared/cplusplus/Control.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/cplusplus/Control.cpp') diff --git a/src/shared/cplusplus/Control.cpp b/src/shared/cplusplus/Control.cpp index fce76e32ad..fda1c3b32b 100644 --- a/src/shared/cplusplus/Control.cpp +++ b/src/shared/cplusplus/Control.cpp @@ -582,6 +582,9 @@ DiagnosticClient *Control::diagnosticClient() const void Control::setDiagnosticClient(DiagnosticClient *diagnosticClient) { d->diagnosticClient = diagnosticClient; } +Identifier *Control::findIdentifier(const char *chars, unsigned size) const +{ return d->identifiers.findLiteral(chars, size); } + Identifier *Control::findOrInsertIdentifier(const char *chars, unsigned size) { return d->identifiers.findOrInsertLiteral(chars, size); } -- cgit v1.2.1