[compiler-rt] [ctx_profile] Integration test (PR #92456)
via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 14:08:39 PDT 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 d311a62e2f1ae34a0329c3812f2969cedac93561 bfbf3a647d8c4852cbf303f1ab2b0462fd3df773 -- compiler-rt/test/ctx_profile/TestCases/generate-context.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/test/ctx_profile/TestCases/generate-context.cpp b/compiler-rt/test/ctx_profile/TestCases/generate-context.cpp
index 42497b83c8..a6796df851 100644
--- a/compiler-rt/test/ctx_profile/TestCases/generate-context.cpp
+++ b/compiler-rt/test/ctx_profile/TestCases/generate-context.cpp
@@ -10,13 +10,14 @@
// Run the binary, and observe the profile fetch handler's output.
// RUN: %t.bin | FileCheck %s
+#include "CtxInstrContextNode.h"
#include <cstdio>
#include <iostream>
-#include "CtxInstrContextNode.h"
using namespace llvm::ctx_profile;
extern "C" bool __llvm_ctx_profile_fetch(void *Data,
- bool (*Writer)(void *, const ContextNode &));
+ bool (*Writer)(void *,
+ const ContextNode &));
extern "C" {
__attribute__((noinline)) void someFunction() { printf("check 2\n"); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/92456
More information about the llvm-commits
mailing list