https://github.com/PiotrZSL created
https://github.com/llvm/llvm-project/pull/72050
- Fixed issue with invalid code being generated when static_cast is put into
fix, and no space were added before it.
- Fixed issue with duplicate parentheses being added when double implicit cast
is used.
Clos
llvmbot wrote:
@llvm/pr-subscribers-clang-tidy
Author: Piotr Zegar (PiotrZSL)
Changes
- Fixed issue with invalid code being generated when static_cast is put into
fix, and no space were added before it.
- Fixed issue with duplicate parentheses being added when double implicit cast
is use
https://github.com/HerrCai0907 approved this pull request.
https://github.com/llvm/llvm-project/pull/72050
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/PiotrZSL updated
https://github.com/llvm/llvm-project/pull/72050
>From f77e3fce830166cdc9ffce42db6599c407147ba3 Mon Sep 17 00:00:00 2001
From: Piotr Zegar
Date: Sun, 12 Nov 2023 11:31:21 +
Subject: [PATCH] [clang-tidy] Fixes to readability-implicit-bool-conversion
- Fixe
https://github.com/PiotrZSL closed
https://github.com/llvm/llvm-project/pull/72050
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -173,16 +173,30 @@ StringRef getEquivalentBoolLiteralForExpr(const Expr
*Expression,
return {};
}
+bool needsSpacePrefix(SourceLocation Loc, ASTContext &Context) {
+ SourceRange PrefixRange(Loc.getLocWithOffset(-1), Loc);
+ StringRef SpaceBeforeStmtStr = Lexer::getSour
https://github.com/PiotrZSL updated
https://github.com/llvm/llvm-project/pull/72050
>From 09bc9ecebe2e9d49a690c9864aa09d5b8c4403e4 Mon Sep 17 00:00:00 2001
From: Piotr Zegar
Date: Sun, 12 Nov 2023 11:31:21 +
Subject: [PATCH 1/3] [clang-tidy] Fixes to
readability-implicit-bool-conversion
-