[compiler-rt] [compiler-rt] Define `__STDC_FORMAT_MACROS` to ensure `PRId64` is available (PR #102980)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 14:24:13 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 b368404dee8c341dc022a9e9a868f5a268e92033 13aa24c226a5aca1367353ec28f4e174d2ec6af2 --extensions h -- compiler-rt/lib/scudo/standalone/timing.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/compiler-rt/lib/scudo/standalone/timing.h b/compiler-rt/lib/scudo/standalone/timing.h
index e125d6bdf5..1f11678951 100644
--- a/compiler-rt/lib/scudo/standalone/timing.h
+++ b/compiler-rt/lib/scudo/standalone/timing.h
@@ -14,7 +14,7 @@
#include "string_utils.h"
#include "thread_annotations.h"
-// Ensure PRId64 macro is available
+// Ensure PRId64 macro is available
#define __STDC_FORMAT_MACROS 1
#include <inttypes.h>
#include <string.h>
``````````
</details>
https://github.com/llvm/llvm-project/pull/102980
More information about the llvm-commits
mailing list