[clang] [clang-tools-extra] Remove ^^ as a token in OpenCL (PR #108224)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 11 06:46:02 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 b9c2e2e3e910f8283f52c574fd8b6a7981d6cb0d 81c7e305213deaa55131d044f17029a62e185025 --extensions cpp -- clang-tools-extra/clang-tidy/readability/AvoidUnconditionalPreprocessorIfCheck.cpp clang/lib/Basic/OperatorPrecedence.cpp clang/lib/Lex/Lexer.cpp clang/lib/Parse/ParseExpr.cpp clang/lib/Sema/SemaCodeComplete.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Basic/OperatorPrecedence.cpp b/clang/lib/Basic/OperatorPrecedence.cpp
index c4e8fe96cd..1db5775844 100644
--- a/clang/lib/Basic/OperatorPrecedence.cpp
+++ b/clang/lib/Basic/OperatorPrecedence.cpp
@@ -51,7 +51,8 @@ prec::Level getBinOpPrecedence(tok::TokenKind Kind, bool GreaterThanIsOperator,
case tok::caretequal:
case tok::pipeequal: return prec::Assignment;
case tok::question: return prec::Conditional;
- case tok::pipepipe: return prec::LogicalOr;
+ case tok::pipepipe:
+ return prec::LogicalOr;
case tok::ampamp: return prec::LogicalAnd;
case tok::pipe: return prec::InclusiveOr;
case tok::caret: return prec::ExclusiveOr;
``````````
</details>
https://github.com/llvm/llvm-project/pull/108224
More information about the cfe-commits
mailing list