Skip to content

Clang#1

Open
jsarzy wants to merge 2 commits intomasterfrom
clang
Open

Clang#1
jsarzy wants to merge 2 commits intomasterfrom
clang

Conversation

@jsarzy
Copy link
Owner

@jsarzy jsarzy commented Aug 16, 2022

No description provided.

a.c
Comment on lines +1 to +2
int main() {
return 0;

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
int main() {
return 0;
int main()
{
return 0;

Comment on lines +185 to +190
void f() {
char* a = "aaaaaa";
char* b = "bbb";

strcpy(b, a);
return 0;

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
void f() {
char* a = "aaaaaa";
char* b = "bbb";
strcpy(b, a);
return 0;
void f()
{
char *a = "aaaaaa";
char *b = "bbb";
strcpy(b, a);
return 0;

Comment on lines +195 to +197
int c;
char *s = "Hello world!";
printf(s);

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
int c;
char *s = "Hello world!";
printf(s);
int c;
char *s = "Hello world!";
printf(s);


UnityMain(argc, (const char **)argv, runner);

f();

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
f();
f();

a.c Outdated
Comment on lines +1 to +3
int main() {
return 0;
return 0;

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
int main() {
return 0;
return 0;
int main()
{
return 0;
return 0;

a.c Outdated
Comment on lines +1 to +4
int main() {
return 0;
return 0;
return 0;

Choose a reason for hiding this comment

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

[clang-format-pr] reported by reviewdog 🐶
suggested fix

Suggested change
int main() {
return 0;
return 0;
return 0;
int main()
{
return 0;
return 0;
return 0;

@jsarzy jsarzy force-pushed the clang branch 3 times, most recently from a5fbcac to edccb34 Compare August 22, 2022 15:35
char* a = "aaaaaa";
char* b = "bbb";

strcpy(b, a);

Choose a reason for hiding this comment

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

⚠️ [clang-tidy] reported by reviewdog 🐶
riscv64-generic-spike,riscv64-generic-qemu
implicit declaration of function 'strcpy' is invalid in C99

char* b = "bbb";

strcpy(b, a);
return 0;

Choose a reason for hiding this comment

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

⚠️ [clang-tidy] reported by reviewdog 🐶
void function 'f' should not return a value


int main(int argc, char *argv[])
{
int c;

Choose a reason for hiding this comment

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

⚠️ [clang-tidy] reported by reviewdog 🐶
unused variable 'c'

char* a = "aaaaaa";
char* b = "bbb";

strcpy(b, a);

Choose a reason for hiding this comment

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

⚠️ [clang-tidy] reported by reviewdog 🐶
implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)'

{
int c;
char *s = "Hello world!";
printf(s);

Choose a reason for hiding this comment

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

⚠️ [clang-tidy] reported by reviewdog 🐶
format string is not a string literal (potentially insecure)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant