Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions -top.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
static int top_dash() { return 1; }

Check warning on line 1 in -top.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'top_dash' declared 'static', move to anonymous namespace instead

Check warning on line 1 in -top.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'top_dash' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'top_dash' declared 'static', move to anonymous namespace instead

1 change: 1 addition & 0 deletions cap/many.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ int many(int x) {
total += 14;
return total;
}
// touched
2 changes: 2 additions & 0 deletions incdemo/use2.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#include "missing_lib.h"

Check failure on line 1 in incdemo/use2.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

clang-diagnostic-error

'missing_lib.h' file not found

Check failure on line 1 in incdemo/use2.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

clang-diagnostic-error

'missing_lib.h' file not found

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✖ Error: clang-diagnostic-error

'missing_lib.h' file not found

static int use_two() { return lib_value(); }

Check warning on line 2 in incdemo/use2.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'use_two' declared 'static', move to anonymous namespace instead

Check warning on line 2 in incdemo/use2.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'use_two' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'use_two' declared 'static', move to anonymous namespace instead

12 changes: 12 additions & 0 deletions src/fixits.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
static int fixits(int x, const int const* p)

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

readability-identifier-length

parameter name 'p' is too short, expected at least 3 characters

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

readability-identifier-length

parameter name 'x' is too short, expected at least 3 characters

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'fixits' declared 'static', move to anonymous namespace instead

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

readability-identifier-length

parameter name 'p' is too short, expected at least 3 characters

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

readability-identifier-length

parameter name 'x' is too short, expected at least 3 characters

Check warning on line 1 in src/fixits.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'fixits' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'fixits' declared 'static', move to anonymous namespace instead

⚠ Warning: readability-identifier-length

parameter name 'x' is too short, expected at least 3 characters

⚠ Warning: readability-identifier-length

parameter name 'p' is too short, expected at least 3 characters

{
if (p == 0) {
return 0;
}
if (x > 1) {
return 1;
}
{
return 2;
}
}
File renamed without changes.
7 changes: 7 additions & 0 deletions src/no_final_newline.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#include <cstdio>
static int added()

Check warning on line 2 in src/no_final_newline.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'added' declared 'static', move to anonymous namespace instead

Check warning on line 2 in src/no_final_newline.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'added' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'added' declared 'static', move to anonymous namespace instead

{
int const x = 1;

Check warning on line 4 in src/no_final_newline.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

readability-identifier-length

variable name 'x' is too short, expected at least 3 characters

Check warning on line 4 in src/no_final_newline.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

readability-identifier-length

variable name 'x' is too short, expected at least 3 characters

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: readability-identifier-length

variable name 'x' is too short, expected at least 3 characters

printf("%d", x);
return x;
}
1 change: 1 addition & 0 deletions stress/latin1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
int main(){
char* p = NULL;
printf("%d\n",f(3)); return 0;}
static int edited_latin1() { return 3; }

Check warning on line 7 in stress/latin1.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'edited_latin1' declared 'static', move to anonymous namespace instead

Check warning on line 7 in stress/latin1.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'edited_latin1' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'edited_latin1' declared 'static', move to anonymous namespace instead

1 change: 1 addition & 0 deletions stress/with space.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
int main(){
char* p = NULL;
printf("%d\n",f(3)); return 0;}
static int edited_space() { return 1; }

Check warning on line 6 in stress/with space.cpp

View workflow job for this annotation

GitHub Actions / pr-lint (ubuntu-latest)

misc-use-anonymous-namespace

function 'edited_space' declared 'static', move to anonymous namespace instead

Check warning on line 6 in stress/with space.cpp

View workflow job for this annotation

GitHub Actions / pr-auto-fix

misc-use-anonymous-namespace

function 'edited_space' declared 'static', move to anonymous namespace instead

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠ Warning: misc-use-anonymous-namespace

function 'edited_space' declared 'static', move to anonymous namespace instead

Loading