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 c,h -- 
clang/lib/Basic/Targets/OSTargets.h clang/test/Preprocessor/init.c 
llvm/include/llvm/TargetParser/Triple.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/clang/lib/Basic/Targets/OSTargets.h 
b/clang/lib/Basic/Targets/OSTargets.h
index c1ffb4700..eeb88370c 100644
--- a/clang/lib/Basic/Targets/OSTargets.h
+++ b/clang/lib/Basic/Targets/OSTargets.h
@@ -394,9 +394,9 @@ protected:
         Builder.defineMacro("__ANDROID_API__", "__ANDROID_MIN_SDK_VERSION__");
       }
     } else if (Triple.isMlibc()) {
-        Builder.defineMacro("__mlibc__");
+      Builder.defineMacro("__mlibc__");
     } else {
-        Builder.defineMacro("__gnu_linux__");
+      Builder.defineMacro("__gnu_linux__");
     }
     if (Opts.POSIXThreads)
       Builder.defineMacro("_REENTRANT");
diff --git a/llvm/include/llvm/TargetParser/Triple.h 
b/llvm/include/llvm/TargetParser/Triple.h
index 83b391298..3dddfc7b6 100644
--- a/llvm/include/llvm/TargetParser/Triple.h
+++ b/llvm/include/llvm/TargetParser/Triple.h
@@ -922,9 +922,7 @@ public:
   }
 
   /// Tests whether the environment is mlibc.
-  bool isMlibc() const {
-    return getEnvironment() == Triple::Mlibc;
-  }
+  bool isMlibc() const { return getEnvironment() == Triple::Mlibc; }
 
   /// Tests whether the environment is musl-libc
   bool isMusl() const {

``````````

</details>


https://github.com/llvm/llvm-project/pull/225654
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to