aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorCongcong Cai <congcongcai0907@163.com>2024-11-25 06:48:33 +0800
committerGitHub <noreply@github.com>2024-11-25 06:48:33 +0800
commitcbdd14ee9de72c277d9f89a6aa57c54a495f5458 (patch)
tree37022f90b8682967d946ec05dbb4d2a3d26741ab /clang/lib/AST/DeclBase.cpp
parent3c344f92e62ac07faf5df68d73ad765b11f465f2 (diff)
downloadllvm-cbdd14ee9de72c277d9f89a6aa57c54a495f5458.zip
llvm-cbdd14ee9de72c277d9f89a6aa57c54a495f5458.tar.gz
llvm-cbdd14ee9de72c277d9f89a6aa57c54a495f5458.tar.bz2
[clang][NFC]add static for internal linkage function (#117482)
Detected by misc-use-internal-linkage
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r--clang/lib/AST/DeclBase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp
index 96638b8..fb701f7 100644
--- a/clang/lib/AST/DeclBase.cpp
+++ b/clang/lib/AST/DeclBase.cpp
@@ -1500,7 +1500,8 @@ DeclContext *DeclContext::getPrimaryContext() {
}
template <typename T>
-void collectAllContextsImpl(T *Self, SmallVectorImpl<DeclContext *> &Contexts) {
+static void collectAllContextsImpl(T *Self,
+ SmallVectorImpl<DeclContext *> &Contexts) {
for (T *D = Self->getMostRecentDecl(); D; D = D->getPreviousDecl())
Contexts.push_back(D);