Home
last modified time | relevance | path

Searched refs:ByteCount (Results 1 – 6 of 6) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines/
H A Downing-memory-legacy-functions.cpp16 void *malloc(size_t ByteCount);
66 const unsigned int ByteCount = 25 * sizeof(int); in test_resource_creators() local
69 int *IntArray1 = (int *)std::malloc(ByteCount); in test_resource_creators()
73 void *IntArray3 = std::malloc(ByteCount); in test_resource_creators()
76 int *IntArray4 = (int *)::malloc(ByteCount); in test_resource_creators()
80 void *IntArray6 = ::malloc(ByteCount); in test_resource_creators()
89 nonOwningCall((int *)malloc(ByteCount), 25); in test_resource_creators()
91 nonOwningCall((int *)::malloc(ByteCount), 25); in test_resource_creators()
94 consumesResource((int *)malloc(ByteCount), 25); // Ok in test_resource_creators()
95 consumesResource((int *)::malloc(ByteCount), 25); // Ok in test_resource_creators()
[all …]
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousMemsetUsageCheck.cpp101 const Expr *ByteCount = Call->getArg(2); in check() local
105 if (ByteCount->isValueDependent() || in check()
106 !ByteCount->EvaluateAsInt(Value2, *Result.Context) || in check()
126 StringRef RHSString = tooling::fixit::getText(*ByteCount, *Result.Context); in check()
132 << tooling::fixit::createReplacement(*ByteCount, LHSString); in check()
/llvm-project-15.0.7/llvm/lib/Support/
H A DSHA1.cpp91 InternalState.ByteCount = 0; in init()
209 ++InternalState.ByteCount; in writebyte()
214 InternalState.ByteCount += Data.size(); in update()
258 addUncounted(InternalState.ByteCount >> 29); // Shifting to multiply by 8 in pad()
259 addUncounted(InternalState.ByteCount >> in pad()
261 addUncounted(InternalState.ByteCount >> 13); // byte. in pad()
262 addUncounted(InternalState.ByteCount >> 5); in pad()
263 addUncounted(InternalState.ByteCount << 3); in pad()
H A DSHA256.cpp64 InternalState.ByteCount = 0; in init()
188 ++InternalState.ByteCount; in writebyte()
193 InternalState.ByteCount += Data.size(); in update()
233 uint64_t len = InternalState.ByteCount << 3; // bit size in pad()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DSHA1.h67 uint32_t ByteCount; member
H A DSHA256.h74 uint32_t ByteCount; member