Skip to content

Commit 14939e5

Browse files
mbaludaCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 9f48c75 commit 14939e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
static void f(); // NON_COMPILANT - prefer to use an anonymous namespace
1+
static void f(); // NON_COMPLIANT - prefer to use an anonymous namespace
22

33
namespace {
4-
void f1(); // COMPILANT
5-
extern void f2(); // NON_COMPILANT
4+
void f1(); // COMPLIANT
5+
extern void f2(); // NON_COMPLIANT
66

7-
int i; // COMPILANT
8-
extern int i1; // NON_COMPILANT
9-
static int i2; // NON_COMPILANT - prefer to not use static as it is redundant
7+
int i; // COMPLIANT
8+
extern int i1; // NON_COMPLIANT
9+
static int i2; // NON_COMPLIANT - prefer to not use static as it is redundant
1010
} // namespace
1111

1212
namespace named {
13-
static const int i[] = {1}; // COMPILANT - exception
13+
static const int i[] = {1}; // COMPLIANT - exception
1414
}

0 commit comments

Comments
 (0)