[clang] [llvm] [clang][CoverageMapping] Refactor when setting MC/DC True/False (PR #78202)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 15 10:41:55 PST 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 3d6c6855c1f0b8570f280adb9a3dbb1f950b9115 8751417f4889a120193a604e2ea91627f3b064e8 -- clang/lib/CodeGen/CoverageMappingGen.cpp clang/test/CoverageMapping/mcdc-logical-stmt-ids-all.cpp llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp
index ca7b65e3f4..499e0e5d04 100644
--- a/clang/lib/CodeGen/CoverageMappingGen.cpp
+++ b/clang/lib/CodeGen/CoverageMappingGen.cpp
@@ -717,17 +717,17 @@ public:
/// Set the given condition's ID.
void setCondID(const Expr *Cond, MCDCConditionID ID) {
- CondIDs[CodeGenFunction::stripCond(Cond)] = ID;
+ CondIDs[CodeGenFunction::stripCond(Cond)] = ID;
}
/// Set the ID of the next condition when the given condition is True.
void setTrueCondID(const Expr *Cond, MCDCConditionID ID) {
- TrueCondIDs[CodeGenFunction::stripCond(Cond)] = ID;
+ TrueCondIDs[CodeGenFunction::stripCond(Cond)] = ID;
}
/// Set the ID of the next condition when the given condition is False.
void setFalseCondID(const Expr *Cond, MCDCConditionID ID) {
- FalseCondIDs[CodeGenFunction::stripCond(Cond)] = ID;
+ FalseCondIDs[CodeGenFunction::stripCond(Cond)] = ID;
}
/// Return the ID of a given condition.
``````````
</details>
https://github.com/llvm/llvm-project/pull/78202
More information about the cfe-commits
mailing list