Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with checks of .h files #2

Open
byhlel opened this issue Sep 12, 2024 · 0 comments
Open

Issues with checks of .h files #2

byhlel opened this issue Sep 12, 2024 · 0 comments

Comments

@byhlel
Copy link

byhlel commented Sep 12, 2024

1) Seems to be an issue with the include priority

The alphabetical order of includes doesn't seem to be properly checked.

Tested file:

#include <z.h>
#include <x.h>
#include <a.h>

Maybe it is not intended to do so but that's what I expected of:

include_priority(index, file, line_number, filename):

2) Seems to be an issue with the endif include guards

We end up entering the if check thus causing an error

#ifndef TEST_H
#define TEST_H

#include <z.h>
#include <x.h>
#include <a.h>

#endif

3) Seems to be an issue with the /* */ at end of .h file

#ifndef TEST_H
#define TEST_H

#include <z.h>
#include <x.h>
#include <a.h>

#endif /* ! TEST_H */

May be other issues as I tested those when implementing counting of functions.

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

No branches or pull requests

1 participant