summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astscope.cxx2
-rw-r--r--idlc/source/idlccompile.cxx2
-rw-r--r--idlc/source/parser.y12
3 files changed, 8 insertions, 8 deletions
diff --git a/idlc/source/astscope.cxx b/idlc/source/astscope.cxx
index 5fd9d5339d68..5ab066c2ec5f 100644
--- a/idlc/source/astscope.cxx
+++ b/idlc/source/astscope.cxx
@@ -24,7 +24,7 @@
#include <osl/diagnose.h>
-bool isGlobal(const OString& scopedName)
+static bool isGlobal(const OString& scopedName)
{
return scopedName.isEmpty() || scopedName.startsWith(":");
}
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index 3492e899e733..5a16c9fadc49 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -114,7 +114,7 @@ OString convertToFileUrl(const OString& fileName)
return fileName;
}
-OString makeTempName(const OString& prefix)
+static OString makeTempName(const OString& prefix)
{
OUString uTmpPath;
OString tmpPath;
diff --git a/idlc/source/parser.y b/idlc/source/parser.y
index 71b88d05c816..9cd8f4465894 100644
--- a/idlc/source/parser.y
+++ b/idlc/source/parser.y
@@ -64,9 +64,9 @@ using ::rtl::OStringToOUString;
using ::rtl::OStringBuffer;
extern int yylex(void);
-void yyerror(char const *);
+static void yyerror(char const *);
-void checkIdentifier(::rtl::OString const * id)
+static void checkIdentifier(::rtl::OString const * id)
{
static short check = 0;
if (check == 0) {
@@ -93,7 +93,7 @@ void checkIdentifier(::rtl::OString const * id)
}
}
-void reportDoubleMemberDeclarations(
+static void reportDoubleMemberDeclarations(
AstInterface::DoubleMemberDeclarations const & doubleMembers)
{
for (auto const& doubleMember : doubleMembers)
@@ -102,7 +102,7 @@ void reportDoubleMemberDeclarations(
}
}
-void addInheritedInterface(
+static void addInheritedInterface(
AstInterface * ifc, rtl::OString const & name, bool optional,
rtl::OUString const & documentation)
{
@@ -140,7 +140,7 @@ void addInheritedInterface(
}
}
-AstDeclaration const * createNamedType(
+static AstDeclaration const * createNamedType(
rtl::OString const * scopedName, DeclList const * typeArgs)
{
AstDeclaration * decl = idlc()->scopes()->topNonNull()->lookupByName(
@@ -179,7 +179,7 @@ AstDeclaration const * createNamedType(
return decl;
}
-bool includes(AstDeclaration const * type1, AstDeclaration const * type2) {
+static bool includes(AstDeclaration const * type1, AstDeclaration const * type2) {
OSL_ASSERT(type2 != nullptr);
if (type1 != nullptr) {
if (type1->getNodeType() == NT_instantiated_struct) {