Skip to main content

The defargs.h File Reference

Included Headers

#include "types.h" #include <memory>

Functions Index

std::unique_ptr< ArgumentList >stringToArgumentList (SrcLangExt lang, const QCString &argsString, QCString *extraTypeChars=nullptr)

Functions

stringToArgumentList()

std::unique_ptr< ArgumentList > stringToArgumentList (SrcLangExt lang, const QCString & argsString, QCString * extraTypeChars=nullptr)

Converts an argument string into an ArgumentList.

Parameters
[in] lang

language of the current argument list

[in] argsString

the list of Arguments.

[out] extraTypeChars

point to string to which trailing characters for complex types are written to

Declaration at line 27 of file defargs.h, definition at line 814 of file defargs.l.

814std::unique_ptr<ArgumentList> stringToArgumentList(SrcLangExt lang, const QCString &argsString,QCString *extraTypeChars)
815{
816 std::unique_ptr<ArgumentList> al = std::make_unique<ArgumentList>();
817 if (argsString.isEmpty()) return al;
818
819 yyscan_t yyscanner;
820 defargsYY_state extra(argsString.data(),al,lang);
821 defargsYYlex_init_extra(&extra,&yyscanner);
822#ifdef FLEX_DEBUG
823 defargsYYset_debug(Debug::isFlagSet(Debug::Lex_defargs)?1:0,yyscanner);
824#endif
825 struct yyguts_t *yyg = (struct yyguts_t*)yyscanner;
826 DebugLex debugLex(Debug::Lex_defargs, __FILE__, nullptr);
827
828 defargsYYrestart( nullptr, yyscanner );
829 BEGIN( Start );
830 defargsYYlex(yyscanner);
831 if (yyextra->argList->empty())
832 {
833 yyextra->argList->setNoParameters(TRUE);
834 }
835 if (extraTypeChars) *extraTypeChars=yyextra->extraTypeChars;
836 //printf("stringToArgumentList(%s) result=%s\n",argsString,qPrint(argListToString(*al)));
837 defargsYYlex_destroy(yyscanner);
838 return al;
839}

References QCString::data, QCString::isEmpty, Debug::isFlagSet, Debug::Lex_defargs and TRUE.

Referenced by addClassToContext, ClassDefImpl::addMemberToTemplateInstance, buildDefineList, buildFunctionList, anonymous{tagreader.cpp}::TagFileParser::buildMemberList, combineDeclarationAndDefinition, computeTemplateClassRelations, findMembersWithSpecificName, findTemplateInstanceRelation, generateDEFForMember, getDefsOld, SymbolResolver::Private::getResolvedSymbol, SymbolResolver::Private::getResolvedSymbolRec, SymbolResolver::Private::getResolvedTypeRec, MemberDefImpl::init, ClassDefImpl::insertTemplateInstance and matchCanonicalTypes.


Generated via doxygen2docusaurus by Doxygen 1.14.0.