clang: clang::APNumericStorage Class Reference (original) (raw)

Used by IntegerLiteral/FloatingLiteral/EnumConstantDecl to store the numeric without leaking memory. More...

Used by IntegerLiteral/FloatingLiteral/EnumConstantDecl to store the numeric without leaking memory.

For large floats/integers, APFloat/APInt will allocate memory from the heap to represent these numbers. Unfortunately, when we use a BumpPtrAllocator to allocate IntegerLiteral/FloatingLiteral nodes the memory associated with the APFloat/APInt values will never get freed. APNumericStorage uses ASTContext's allocator for memory allocation.

Definition at line 26 of file APNumericStorage.h.