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

Include guard false positive #101

Open
Timple opened this issue May 30, 2023 · 0 comments
Open

Include guard false positive #101

Timple opened this issue May 30, 2023 · 0 comments

Comments

@Timple
Copy link
Contributor

Timple commented May 30, 2023

This snippet triggers the include guard hook:

some_header.hpp

#pragma once

#ifndef PACKED
#define PACKED __attribute__((__packed__))
#endif

#include <actionlib/server/simple_action_server.h>

It creates this:

#pragma once

#ifndef ROBOT__SOME_HEADER_HPP
#define ROBOT__SOME_HEADER_HPP
#endif  // ROBOT__SOME_HEADER_HPP

#include <actionlib/server/simple_action_server.h>

However the #pragma once should disable this check I'd say.

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