diff options
author | Congcong Cai <congcongcai0907@163.com> | 2024-11-25 06:48:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-25 06:48:33 +0800 |
commit | cbdd14ee9de72c277d9f89a6aa57c54a495f5458 (patch) | |
tree | 37022f90b8682967d946ec05dbb4d2a3d26741ab /clang/lib/AST/DeclBase.cpp | |
parent | 3c344f92e62ac07faf5df68d73ad765b11f465f2 (diff) | |
download | llvm-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.cpp | 3 |
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); |