MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / Function

Class Function

addons/cppcheckdata.py:627–698  ·  view source on GitHub ↗

Information about a function C++ class: https://cppcheck.sourceforge.io/devinfo/doxyoutput/classFunction.html Attributes argument Argument list (dict of argument number and variable) token Token in function implementation tok

Source from the content-addressed store, hash-verified

625
626
627class Function:
628 """
629 Information about a function
630 C++ class:
631 https://cppcheck.sourceforge.io/devinfo/doxyoutput/classFunction.html
632
633 Attributes
634 argument Argument list (dict of argument number and variable)
635 token Token in function implementation
636 tokenDef Token in function definition
637 name
638 type Constructor/CopyConstructor/MoveConstructor/OperatorEqual/Destructor/Function/Lambda/Unknown
639 hasVirtualSpecifier Is this function is virtual
640 isImplicitlyVirtual Is this function is virtual this in the base classes
641 access Public/Protected/Private
642 isInlineKeyword Is inline keyword used
643 isStatic Is this function static
644 isAttributeNoreturn
645 overriddenFunction
646 """
647 #symboldatabase.cpp/SymbolDatabase::printXml
648
649 Id = None
650 argument = None
651 argumentId = None
652 token = None
653 tokenId = None
654 tokenDef = None
655 tokenDefId = None
656 name = None
657 type = None
658 access = None
659 isImplicitlyVirtual = None
660 hasVirtualSpecifier = None
661 isInlineKeyword = None
662 isStatic = None
663 isAttributeNoreturn = None
664 overriddenFunction = None
665 nestedIn = None
666
667 def __init__(self, element, nestedIn):
668 self.Id = element.get('id')
669 self.tokenId = element.get('token')
670 self.tokenDefId = element.get('tokenDef')
671 self.name = element.get('name')
672 self.type = element.get('type')
673 self.hasVirtualSpecifier = element.get('hasVirtualSpecifier', 'false') == 'true'
674 self.isImplicitlyVirtual = element.get('isImplicitlyVirtual', 'false') == 'true'
675 self.access = element.get('access')
676 self.isInlineKeyword = element.get('isInlineKeyword', 'false') == 'true'
677 self.isStatic = element.get('isStatic', 'false') == 'true'
678 self.isAttributeNoreturn = element.get('isAttributeNoreturn', 'false') == 'true'
679 self.overriddenFunction = element.get('overriddenFunction', 'false') == 'true'
680 self.nestedIn = nestedIn
681
682 self.argument = {}
683 self.argumentId = {}
684

Callers 1

iterconfigurationsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected