[clang] [llvm] [SanitizerCoverage] Add gated tracing callbacks support to trace-cmp (PR #113227)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 24 19:33:25 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff e26af0938c7a272cf0de11c92aa069485868e130 7c771b793b36e5c8d0d8d4963d0356123054e9e4 --extensions c,cpp -- clang/test/CodeGen/sanitize-coverage-gated-callbacks.c llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
index 9afe1d0589..22acf59c78 100644
--- a/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
+++ b/llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
@@ -246,8 +246,7 @@ private:
ArrayRef<Instruction *> SwitchTraceTargets,
Value *&FunctionGateCmp);
bool InjectCoverage(Function &F, ArrayRef<BasicBlock *> AllBlocks,
- Value *&FunctionGateCmp,
- bool IsLeafFunc);
+ Value *&FunctionGateCmp, bool IsLeafFunc);
GlobalVariable *CreateFunctionLocalArrayInSection(size_t NumElements,
Function &F, Type *Ty,
const char *Section);
``````````
</details>
https://github.com/llvm/llvm-project/pull/113227
More information about the llvm-commits
mailing list