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 cpp,h -- 
clang/include/clang/Basic/CharInfo.h clang/lib/Lex/Lexer.cpp 
--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/include/clang/Basic/CharInfo.h 
b/clang/include/clang/Basic/CharInfo.h
index 1ede03289..f4cb5968a 100644
--- a/clang/include/clang/Basic/CharInfo.h
+++ b/clang/include/clang/Basic/CharInfo.h
@@ -90,7 +90,7 @@ LLVM_READONLY inline bool isAsciiIdentifierContinue(unsigned 
char c,
 /// Note that this returns false for '\\0'.
 LLVM_READONLY inline bool isHorizontalWhitespace(unsigned char c) {
   using namespace charinfo;
-  return c == ' ' || (InfoTable[c] & (CHAR_HORZ_WS|CHAR_SPACE)) != 0;
+  return c == ' ' || (InfoTable[c] & (CHAR_HORZ_WS | CHAR_SPACE)) != 0;
 }
 
 /// Returns true if this character is vertical ASCII whitespace: '\\n', '\\r'.

``````````

</details>


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

Reply via email to