[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 26 07:42:45 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 5f05d5ec8f9bb15c0ac29fce843a2c73165ac414 c01c61535b0d1629ab363bc60c742ba4ab307cbf --extensions h,cpp -- clang/lib/CodeGen/BackendUtil.cpp llvm/include/llvm/IR/DebugLoc.h llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp llvm/lib/IR/DebugInfo.cpp llvm/lib/IR/DebugLoc.cpp llvm/lib/Transforms/Utils/Debugify.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/IR/DebugLoc.cpp b/llvm/lib/IR/DebugLoc.cpp
index 87d14a05718..5cb86dfb2ef 100644
--- a/llvm/lib/IR/DebugLoc.cpp
+++ b/llvm/lib/IR/DebugLoc.cpp
@@ -18,7 +18,9 @@ DILocAndCoverageTracking::DILocAndCoverageTracking(const DILocation *L)
DebugLoc DebugLoc::getTemporary() { return DebugLoc(DebugLocKind::Temporary); }
DebugLoc DebugLoc::getUnknown() { return DebugLoc(DebugLocKind::Unknown); }
-DebugLoc DebugLoc::getCompilerGenerated() { return DebugLoc(DebugLocKind::CompilerGenerated); }
+DebugLoc DebugLoc::getCompilerGenerated() {
+ return DebugLoc(DebugLocKind::CompilerGenerated);
+}
DebugLoc DebugLoc::getDropped() { return DebugLoc(DebugLocKind::Dropped); }
#else
DebugLoc DebugLoc::getTemporary() { return DebugLoc(); }
``````````
</details>
https://github.com/llvm/llvm-project/pull/107279
More information about the cfe-commits
mailing list