Lines Matching refs:spec
376 ConstantSpecification* spec = new ConstantSpecification(constant); in scanConstantSpecification() local
377 constant->addSpecification(spec); in scanConstantSpecification()
379 specFile->addConstantSpecification(spec, created); in scanConstantSpecification()
380 spec->mVersionInfo = info; in scanConstantSpecification()
383 spec->mValue = scanner->getValue(); in scanConstantSpecification()
402 TypeSpecification* spec = new TypeSpecification(type); in scanTypeSpecification() local
403 type->addSpecification(spec); in scanTypeSpecification()
405 specFile->addTypeSpecification(spec, created); in scanTypeSpecification()
406 spec->mVersionInfo = info; in scanTypeSpecification()
409 spec->mKind = SIMPLE; in scanTypeSpecification()
410 spec->mSimpleType = scanner->getValue(); in scanTypeSpecification()
413 spec->mKind = RS_OBJECT; in scanTypeSpecification()
416 spec->mKind = STRUCT; in scanTypeSpecification()
417 spec->mStructName = scanner->getValue(); in scanTypeSpecification()
422 spec->mFields.push_back(s); in scanTypeSpecification()
423 spec->mFieldComments.push_back(comment); in scanTypeSpecification()
427 spec->mKind = ENUM; in scanTypeSpecification()
428 spec->mEnumName = scanner->getValue(); in scanTypeSpecification()
433 spec->mValues.push_back(s); in scanTypeSpecification()
434 spec->mValueComments.push_back(comment); in scanTypeSpecification()
438 spec->mAttribute = scanner->getValue(); in scanTypeSpecification()
619 FunctionSpecification* spec = new FunctionSpecification(function); in scanFunctionSpecification() local
620 function->addSpecification(spec); in scanFunctionSpecification()
622 specFile->addFunctionSpecification(spec, created); in scanFunctionSpecification()
624 spec->mUnexpandedName = unexpandedName; in scanFunctionSpecification()
625 spec->mTest = "scalar"; // default in scanFunctionSpecification()
626 spec->mVersionInfo = info; in scanFunctionSpecification()
629 spec->mInternal = (scanner->getValue() == "true"); in scanFunctionSpecification()
632 spec->mIntrinsic = (scanner->getValue() == "true"); in scanFunctionSpecification()
635 spec->mAttribute = scanner->getValue(); in scanFunctionSpecification()
651 spec->mReplaceables.push_back(t); in scanFunctionSpecification()
653 spec->mIsRSTAllowed.push_back(false); in scanFunctionSpecification()
657 spec->mReplaceables.push_back(convertToTypeVector(scanner->getValue())); in scanFunctionSpecification()
658 spec->mIsRSTAllowed.push_back(isRSTValid(spec->mReplaceables.back())); in scanFunctionSpecification()
663 spec->checkRSTPatternValidity(unexpandedName, false, scanner); in scanFunctionSpecification()
668 spec->mReturn = p; in scanFunctionSpecification()
671 spec->checkRSTPatternValidity(p->type, false, scanner); in scanFunctionSpecification()
676 spec->mParameters.push_back(p); in scanFunctionSpecification()
679 spec->checkRSTPatternValidity(p->type, false, scanner); in scanFunctionSpecification()
680 spec->checkRSTPatternValidity(p->testOption, false, scanner); in scanFunctionSpecification()
688 spec->mInline.push_back(scanner->getValue()); in scanFunctionSpecification()
691 spec->checkRSTPatternValidity(spec->mInline.back(), true, scanner); in scanFunctionSpecification()
695 spec->parseTest(scanner); in scanFunctionSpecification()
700 spec->createPermutations(function, scanner); in scanFunctionSpecification()
703 FunctionPermutation::FunctionPermutation(Function* func, FunctionSpecification* spec, in FunctionPermutation() argument
709 mName = spec->getName(replacementIndexes); in FunctionPermutation()
711 mTest = spec->getTest(); in FunctionPermutation()
712 mPrecisionLimit = spec->getPrecisionLimit(); in FunctionPermutation()
713 spec->getInlines(replacementIndexes, &mInline); in FunctionPermutation()
716 for (size_t i = 0; i < spec->getNumberOfParams(); i++) { in FunctionPermutation()
719 spec->getParam(i, replacementIndexes, &type, &name, &testOption, &lineNumber); in FunctionPermutation()
741 spec->getReturn(replacementIndexes, &retType, &lineNumber); in FunctionPermutation()
775 void SpecFile::addConstantSpecification(ConstantSpecification* spec, bool hasDocumentation) { in addConstantSpecification() argument
776 mConstantSpecificationsList.push_back(spec); in addConstantSpecification()
778 Constant* constant = spec->getConstant(); in addConstantSpecification()
783 void SpecFile::addTypeSpecification(TypeSpecification* spec, bool hasDocumentation) { in addTypeSpecification() argument
784 mTypeSpecificationsList.push_back(spec); in addTypeSpecification()
786 Type* type = spec->getType(); in addTypeSpecification()
791 void SpecFile::addFunctionSpecification(FunctionSpecification* spec, bool hasDocumentation) { in addFunctionSpecification() argument
792 mFunctionSpecificationsList.push_back(spec); in addFunctionSpecification()
794 Function* function = spec->getFunction(); in addFunctionSpecification()
894 SpecFile* spec = new SpecFile(fileName); in readSpecFile() local
895 if (!spec->readSpecFile(maxApiLevel)) { in readSpecFile()
899 mSpecFiles.push_back(spec); in readSpecFile()