CppParser
Loading...
Searching...
No Matches
cppconst.h File Reference
#include <cstdint>
Include dependency graph for cppconst.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  TriStateBool : std::int8_t { Unknown = -1 , False = 0 , True = 1 }
 
enum class  CppObjType : std::uint8_t {
  kUnknown = 0x0000 , kDocComment , kCPreProcessorTypeStarts , kHashIf ,
  kHashInclude , kHashImport , kHashDefine , kHashUndef ,
  kHashPragma , kHashError , kHashWarning , kUnRecogPrePro ,
  kCPreProcessorTypeEnds , kCppStatementObjectTypeStarts , kVarType , kVar ,
  kVarList , kTypedefName , kTypedefNameList , kNamespaceAlias ,
  kUsingNamespaceDecl , kUsingDecl , kEnum , kCompound ,
  kFwdClsDecl , kFunction , kLambda , kConstructor ,
  kDestructor , kTypeConverter , kFunctionPtr , kExpression ,
  kExpressionList , kMacroCall , kAsmBlock , kBlob ,
  kLabel , kCppStatementObjectTypeEnds , kCppControlStatementStarts , kIfBlock ,
  kForBlock , kRangeForBlock , kWhileBlock , kDoWhileBlock ,
  kSwitchBlock , kTryBlock , kCppControlStatementEnds
}
 
enum  CppCompoundType : std::uint8_t {
  kUnknownCompound = 0x00 , kNoCompound = 0x00 , kCppFile = 0x01 , kNamespace = 0x02 ,
  kClass = 0x04 | kNamespace , kStruct = 0x08 | kClass , kUnion = 0x10 | kClass , kBlock = 0x20 ,
  kExternCBlock = 0x40
}
 
enum class  CppAccessType : std::uint8_t { kUnknown , kPublic , kPrivate , kProtected }
 
enum  CppOperator : std::uint8_t {
  kNone , kUnariPrefixOperatorStart , kUnaryMinus , kBitToggle ,
  kLogNot , kDerefer , kRefer , kPreIncrement ,
  kPreDecrement , kUnariSufixOperatorStart , kPostIncrement , kPostDecrement ,
  kBinaryOperatorStart , kPlus , kMinus , kMul ,
  kDiv , kPercent , kAnd , kOr ,
  kBitAnd , kBitOr , kXor , kEqual ,
  kLess , kGreater , kPlusEqual , kMinusEqual ,
  kMulEqual , kDivEqual , kPerEqual , kXorEqual ,
  kAndEqual , kOrEqual , kLeftShift , kInsertion = kLeftShift ,
  kRightShift , kExtraction = kRightShift , kLShiftEqual , kRShiftEqual ,
  kCmpEqual , kNotEqual , kLessEqual , kGreaterEqual ,
  k3WayCmp , kComma , kBinaryOperatorEnd , kDerefOperatorStart ,
  kDot , kArrow , kArrowStar , kSpecialOperations = 100 ,
  kFunctionCall , kUniformInitCall , kArrayElem , kCStyleCast ,
  kFunctionStyleCast , kConstCast , kStaticCast , kDynamicCast ,
  kReinterpretCast , kPlacementNew , kTertiaryOperator
}
 
enum  CppIdentifierAttrib : std::uint32_t {
  kFuncParam = 0x000001 , kConst = 0x000002 , kStatic = 0x000004 , kExtern = 0x000008 ,
  kInline = 0x000010 , kVirtual = 0x000020 , kPureVirtual = 0x000040 | kVirtual , kOverride = 0x000080 | kVirtual ,
  kExplicit = 0x000100 , kFriend = 0x000200 , kTypedef = 0x000400 , kConstExpr = 0x001000 ,
  kVolatile = 0x002000 , kFinal = 0x004000 | kVirtual , kDefault = 0x008000 , kDelete = 0x010000 ,
  kNoExcept = 0x020000 , kExternC = 0x040000 , kTrailingRet = 0x080000 , kMutable = 0x100000 ,
  kNoExceptFalse = 0x200000
}
 State of variable or function. More...
 
enum class  CppRefType : std::uint8_t { kNoRef , kByRef , kRValRef }
 Type of references a variable can have in a C++ program. More...
 
enum class  AssignType { kNone , kUsingEqual , kUsingBracket , kUsingBraces }
 

Enumeration Type Documentation

◆ AssignType

enum class AssignType
strong
Enumerator
kNone 
kUsingEqual 
kUsingBracket 
kUsingBraces 

Definition at line 221 of file cppconst.h.

◆ CppAccessType

enum class CppAccessType : std::uint8_t
strong
Enumerator
kUnknown 
kPublic 
kPrivate 
kProtected 

Definition at line 102 of file cppconst.h.

◆ CppCompoundType

enum CppCompoundType : std::uint8_t
Enumerator
kUnknownCompound 
kNoCompound 
kCppFile 
kNamespace 
kClass 
kStruct 
kUnion 
kBlock 
kExternCBlock 

Definition at line 89 of file cppconst.h.

◆ CppIdentifierAttrib

enum CppIdentifierAttrib : std::uint32_t

State of variable or function.

Enumerator
kFuncParam 
kConst 
kStatic 
kExtern 
kInline 
kVirtual 
kPureVirtual 
kOverride 
kExplicit 
kFriend 
kTypedef 
kConstExpr 
kVolatile 
kFinal 
kDefault 
kDelete 
kNoExcept 
kExternC 
kTrailingRet 
kMutable 
kNoExceptFalse 

Definition at line 186 of file cppconst.h.

◆ CppObjType

enum class CppObjType : std::uint8_t
strong
Enumerator
kUnknown 
kDocComment 
kCPreProcessorTypeStarts 
kHashIf 
kHashInclude 
kHashImport 
kHashDefine 
kHashUndef 
kHashPragma 
kHashError 
kHashWarning 
kUnRecogPrePro 
kCPreProcessorTypeEnds 
kCppStatementObjectTypeStarts 
kVarType 
kVar 
kVarList 
kTypedefName 
kTypedefNameList 
kNamespaceAlias 
kUsingNamespaceDecl 
kUsingDecl 
kEnum 
kCompound 
kFwdClsDecl 
kFunction 
kLambda 
kConstructor 
kDestructor 
kTypeConverter 
kFunctionPtr 
kExpression 
kExpressionList 
kMacroCall 
kAsmBlock 
kBlob 
kLabel 
kCppStatementObjectTypeEnds 
kCppControlStatementStarts 
kIfBlock 
kForBlock 
kRangeForBlock 
kWhileBlock 
kDoWhileBlock 
kSwitchBlock 
kTryBlock 
kCppControlStatementEnds 

Definition at line 35 of file cppconst.h.

◆ CppOperator

enum CppOperator : std::uint8_t
Enumerator
kNone 
kUnariPrefixOperatorStart 
kUnaryMinus 
kBitToggle 
kLogNot 
kDerefer 
kRefer 
kPreIncrement 
kPreDecrement 
kUnariSufixOperatorStart 
kPostIncrement 
kPostDecrement 
kBinaryOperatorStart 
kPlus 
kMinus 
kMul 
kDiv 
kPercent 
kAnd 
kOr 
kBitAnd 
kBitOr 
kXor 
kEqual 
kLess 
kGreater 
kPlusEqual 
kMinusEqual 
kMulEqual 
kDivEqual 
kPerEqual 
kXorEqual 
kAndEqual 
kOrEqual 
kLeftShift 
kInsertion 
kRightShift 
kExtraction 
kLShiftEqual 
kRShiftEqual 
kCmpEqual 
kNotEqual 
kLessEqual 
kGreaterEqual 
k3WayCmp 
kComma 
kBinaryOperatorEnd 
kDerefOperatorStart 
kDot 
kArrow 
kArrowStar 
kSpecialOperations 
kFunctionCall 
kUniformInitCall 
kArrayElem 
kCStyleCast 
kFunctionStyleCast 
kConstCast 
kStaticCast 
kDynamicCast 
kReinterpretCast 
kPlacementNew 
kTertiaryOperator 

Definition at line 110 of file cppconst.h.

◆ CppRefType

enum class CppRefType : std::uint8_t
strong

Type of references a variable can have in a C++ program.

Enumerator
kNoRef 
kByRef 
kRValRef 

Definition at line 214 of file cppconst.h.

◆ TriStateBool

enum class TriStateBool : std::int8_t
strong
Enumerator
Unknown 
False 
True 

Definition at line 28 of file cppconst.h.