Lines Matching refs:spec

377     ConstantSpecification* spec = new ConstantSpecification(constant);  in scanConstantSpecification()  local
378 constant->addSpecification(spec); in scanConstantSpecification()
380 specFile->addConstantSpecification(spec, created); in scanConstantSpecification()
381 spec->mVersionInfo = info; in scanConstantSpecification()
384 spec->mValue = scanner->getValue(); in scanConstantSpecification()
387 spec->mType = scanner->getValue(); in scanConstantSpecification()
406 TypeSpecification* spec = new TypeSpecification(type); in scanTypeSpecification() local
407 type->addSpecification(spec); in scanTypeSpecification()
409 specFile->addTypeSpecification(spec, created); in scanTypeSpecification()
410 spec->mVersionInfo = info; in scanTypeSpecification()
413 spec->mKind = SIMPLE; in scanTypeSpecification()
414 spec->mSimpleType = scanner->getValue(); in scanTypeSpecification()
417 spec->mKind = RS_OBJECT; in scanTypeSpecification()
420 spec->mKind = STRUCT; in scanTypeSpecification()
421 spec->mStructName = scanner->getValue(); in scanTypeSpecification()
426 spec->mFields.push_back(s); in scanTypeSpecification()
427 spec->mFieldComments.push_back(comment); in scanTypeSpecification()
431 spec->mKind = ENUM; in scanTypeSpecification()
432 spec->mEnumName = scanner->getValue(); in scanTypeSpecification()
437 spec->mValues.push_back(s); in scanTypeSpecification()
438 spec->mValueComments.push_back(comment); in scanTypeSpecification()
442 spec->mAttribute = scanner->getValue(); in scanTypeSpecification()
623 FunctionSpecification* spec = new FunctionSpecification(function); in scanFunctionSpecification() local
624 function->addSpecification(spec); in scanFunctionSpecification()
626 specFile->addFunctionSpecification(spec, created); in scanFunctionSpecification()
628 spec->mUnexpandedName = unexpandedName; in scanFunctionSpecification()
629 spec->mTest = "scalar"; // default in scanFunctionSpecification()
630 spec->mVersionInfo = info; in scanFunctionSpecification()
633 spec->mInternal = (scanner->getValue() == "true"); in scanFunctionSpecification()
636 spec->mIntrinsic = (scanner->getValue() == "true"); in scanFunctionSpecification()
639 spec->mAttribute = scanner->getValue(); in scanFunctionSpecification()
655 spec->mReplaceables.push_back(t); in scanFunctionSpecification()
657 spec->mIsRSTAllowed.push_back(false); in scanFunctionSpecification()
661 spec->mReplaceables.push_back(convertToTypeVector(scanner->getValue())); in scanFunctionSpecification()
662 spec->mIsRSTAllowed.push_back(isRSTValid(spec->mReplaceables.back())); in scanFunctionSpecification()
667 spec->checkRSTPatternValidity(unexpandedName, false, scanner); in scanFunctionSpecification()
672 spec->mReturn = p; in scanFunctionSpecification()
675 spec->checkRSTPatternValidity(p->type, false, scanner); in scanFunctionSpecification()
680 spec->mParameters.push_back(p); in scanFunctionSpecification()
683 spec->checkRSTPatternValidity(p->type, false, scanner); in scanFunctionSpecification()
684 spec->checkRSTPatternValidity(p->testOption, false, scanner); in scanFunctionSpecification()
692 spec->mInline.push_back(scanner->getValue()); in scanFunctionSpecification()
695 spec->checkRSTPatternValidity(spec->mInline.back(), true, scanner); in scanFunctionSpecification()
699 spec->parseTest(scanner); in scanFunctionSpecification()
704 spec->createPermutations(function, scanner); in scanFunctionSpecification()
707 FunctionPermutation::FunctionPermutation(Function* func, FunctionSpecification* spec, in FunctionPermutation() argument
713 mName = spec->getName(replacementIndexes); in FunctionPermutation()
715 mTest = spec->getTest(); in FunctionPermutation()
716 mPrecisionLimit = spec->getPrecisionLimit(); in FunctionPermutation()
717 spec->getInlines(replacementIndexes, &mInline); in FunctionPermutation()
720 for (size_t i = 0; i < spec->getNumberOfParams(); i++) { in FunctionPermutation()
723 spec->getParam(i, replacementIndexes, &type, &name, &testOption, &lineNumber); in FunctionPermutation()
745 spec->getReturn(replacementIndexes, &retType, &lineNumber); in FunctionPermutation()
779 void SpecFile::addConstantSpecification(ConstantSpecification* spec, bool hasDocumentation) { in addConstantSpecification() argument
780 mConstantSpecificationsList.push_back(spec); in addConstantSpecification()
782 Constant* constant = spec->getConstant(); in addConstantSpecification()
787 void SpecFile::addTypeSpecification(TypeSpecification* spec, bool hasDocumentation) { in addTypeSpecification() argument
788 mTypeSpecificationsList.push_back(spec); in addTypeSpecification()
790 Type* type = spec->getType(); in addTypeSpecification()
795 void SpecFile::addFunctionSpecification(FunctionSpecification* spec, bool hasDocumentation) { in addFunctionSpecification() argument
796 mFunctionSpecificationsList.push_back(spec); in addFunctionSpecification()
798 Function* function = spec->getFunction(); in addFunctionSpecification()
898 SpecFile* spec = new SpecFile(fileName); in readSpecFile() local
899 if (!spec->readSpecFile(maxApiLevel)) { in readSpecFile()
903 mSpecFiles.push_back(spec); in readSpecFile()