[clang] 7e18ee5 - [NFC][analyzer] Get rid of imaginary friends (of classes) (#180188)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 10 03:49:50 PST 2026
Author: DonĂ¡t Nagy
Date: 2026-02-10T12:49:45+01:00
New Revision: 7e18ee576f215e3f0de0ea6b5daeb842af84833f
URL: https://github.com/llvm/llvm-project/commit/7e18ee576f215e3f0de0ea6b5daeb842af84833f
DIFF: https://github.com/llvm/llvm-project/commit/7e18ee576f215e3f0de0ea6b5daeb842af84833f.diff
LOG: [NFC][analyzer] Get rid of imaginary friends (of classes) (#180188)
These NodeBuilder classes were deleted from the codebase in 2011
(fifteen years ago!) by 3eae33412d18c4a4a4a8592898b3e65ad5946a89 so
don't declare them as friends.
Added:
Modified:
clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
Removed:
################################################################################
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
index 75a24827d3e03..96ddd12b286a6 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
@@ -48,8 +48,6 @@ class ExprEngine;
/// CoreEngine - Implements the core logic of the graph-reachability analysis.
/// It traverses the CFG and generates the ExplodedGraph.
class CoreEngine {
- friend class CommonNodeBuilder;
- friend class EndOfFunctionNodeBuilder;
friend class ExprEngine;
friend class IndirectGotoNodeBuilder;
friend class NodeBuilder;
diff --git a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
index bd11e0d40cfa9..29c252472b93d 100644
--- a/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
+++ b/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h
@@ -66,7 +66,6 @@ class ExplodedGraph;
class ExplodedNode : public llvm::FoldingSetNode {
friend class BranchNodeBuilder;
friend class CoreEngine;
- friend class EndOfFunctionNodeBuilder;
friend class ExplodedGraph;
friend class IndirectGotoNodeBuilder;
friend class NodeBuilder;
More information about the cfe-commits
mailing list