diff --git a/clang/lib/ExtractAPI/ExtractAPIVisitor.cpp b/clang/lib/ExtractAPI/ExtractAPIVisitor.cpp --- a/clang/lib/ExtractAPI/ExtractAPIVisitor.cpp +++ b/clang/lib/ExtractAPI/ExtractAPIVisitor.cpp @@ -49,7 +49,7 @@ } template -void modifyRecord(const T &Records, const llvm::StringRef &name) { +static void modifyRecord(const T &Records, const llvm::StringRef &name) { for (const auto &Record : Records) { if (name == Record.second.get()->Name) { Record.second.get()->Declaration.removeLast();