[llvm] [DebugInfo] Helper method for finding the deepest inlining location (PR #161696)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 2 09:37:09 PDT 2025
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 h -- llvm/include/llvm/IR/DebugInfoMetadata.h
``````````
: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/llvm/include/llvm/IR/DebugInfoMetadata.h b/llvm/include/llvm/IR/DebugInfoMetadata.h
index d63e71d24..7fb7dda7a 100644
--- a/llvm/include/llvm/IR/DebugInfoMetadata.h
+++ b/llvm/include/llvm/IR/DebugInfoMetadata.h
@@ -2600,10 +2600,10 @@ public:
StringRef getDirectory() const { return getScope()->getDirectory(); }
std::optional<StringRef> getSource() const { return getScope()->getSource(); }
-
/// Get the location where this is inlined
///
- /// Walk through \a getInlinedAt() and return the \a DILocation where this is inlined.
+ /// Walk through \a getInlinedAt() and return the \a DILocation where this is
+ /// inlined.
DILocation *getInlinedAtLocation() const {
DILocation *Current = this, Next = nullptr;
while (Next = Current->getInlinedAt())
``````````
</details>
https://github.com/llvm/llvm-project/pull/161696
More information about the llvm-commits
mailing list