[llvm] [llvm] terminate namespace with closing comment (PR #94917)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 9 15:16:14 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 e0b9cce4c72508eebd489aa46fa8f613167dbcd9 0db673bc506faabfd9a5fe5dfcaa5146187eb5d4 -- llvm/lib/Analysis/CallGraphSCCPass.cpp llvm/lib/Analysis/CallPrinter.cpp llvm/lib/Analysis/CaptureTracking.cpp llvm/lib/Analysis/CycleAnalysis.cpp llvm/lib/Analysis/FunctionPropertiesAnalysis.cpp llvm/lib/Analysis/ImportedFunctionsInliningStatistics.cpp llvm/lib/Analysis/InlineAdvisor.cpp llvm/lib/Analysis/LazyValueInfo.cpp llvm/lib/Analysis/LoopAnalysisManager.cpp llvm/lib/Analysis/LoopPass.cpp llvm/lib/Analysis/ScalarEvolution.cpp llvm/lib/Analysis/ScalarEvolutionDivision.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Analysis/CaptureTracking.cpp b/llvm/lib/Analysis/CaptureTracking.cpp
index 0c042ebc20..a866d97272 100644
--- a/llvm/lib/Analysis/CaptureTracking.cpp
+++ b/llvm/lib/Analysis/CaptureTracking.cpp
@@ -192,7 +192,7 @@ namespace {
Function &F;
};
-} // namespace
+ } // namespace
/// PointerMayBeCaptured - Return true if this pointer value may be captured
/// by the enclosing function (which is required to exist). This routine can
diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp
index 2d0b11660c..aa09cd9862 100644
--- a/llvm/lib/Analysis/LazyValueInfo.cpp
+++ b/llvm/lib/Analysis/LazyValueInfo.cpp
@@ -61,7 +61,7 @@ INITIALIZE_PASS_END(LazyValueInfoWrapperPass, "lazy-value-info",
namespace llvm {
FunctionPass *createLazyValueInfoPass() { return new LazyValueInfoWrapperPass(); }
-} // namespace llvm
+ } // namespace llvm
AnalysisKey LazyValueAnalysis::Key;
@@ -258,7 +258,7 @@ namespace {
/// flushes elements from the cache and does not add any.
void threadEdgeImpl(BasicBlock *OldSucc,BasicBlock *NewSucc);
};
-} // namespace
+ } // namespace
void LazyValueInfoCache::eraseValue(Value *V) {
for (auto &Pair : BlockCache) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/94917
More information about the llvm-commits
mailing list