| 29 | } |
| 30 | |
| 31 | QValidator::State IdentifierValidator::validate(QString& input, int&) const |
| 32 | { |
| 33 | //I can't figure out why it wouldn't compile when I tried to use Identifier identifier(); |
| 34 | Identifier identifier = Identifier(IndexedString(input)); |
| 35 | |
| 36 | if (identifier.isUnique()) |
| 37 | return Acceptable; |
| 38 | |
| 39 | DUChainReadLocker lock(DUChain::lock(), 10); |
| 40 | return m_context->findLocalDeclarations(identifier, CursorInRevision::invalid(), nullptr, |
| 41 | AbstractType::Ptr(), DUContext::NoFiltering).empty() ? Acceptable : Invalid; |
| 42 | } |
| 43 | |
| 44 | IndexedString fetchImplementationFileForClass(const Declaration& targetClass) |
| 45 | { |
nothing calls this directly
no test coverage detected