[llvm] [orc-rt] Move ORC_RT_LOG_ENABLED out of config.h; catch typos. (PR #226751)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 26 21:41:17 PDT 2026
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 origin/main HEAD --extensions h -- orc-rt/include/orc-rt-c/support/LogLevel.h orc-rt/include/orc-rt-c/support/Logging.h orc-rt/include/orc-rt/bedrock/Session.h --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/orc-rt/include/orc-rt-c/support/LogLevel.h b/orc-rt/include/orc-rt-c/support/LogLevel.h
index d88c74019..e2df75557 100644
--- a/orc-rt/include/orc-rt-c/support/LogLevel.h
+++ b/orc-rt/include/orc-rt-c/support/LogLevel.h
@@ -21,7 +21,7 @@
* ORC_RT_LOG_ENABLED(Level) is 1 if log sites at Level (Error, Warning, Info or
* Debug, as for ORC_RT_LOG) are compiled in, and 0 otherwise. Usable in #if.
*/
-#define ORC_RT_LOG_ENABLED(Level) \
+#define ORC_RT_LOG_ENABLED(Level) \
(ORC_RT_LOG_BACKEND != ORC_RT_LOG_BACKEND_NONE && \
ORC_RT_LOG_ENABLED_##Level() >= ORC_RT_LOG_LEVEL)
``````````
</details>
https://github.com/llvm/llvm-project/pull/226751
More information about the llvm-commits
mailing list