Defining an alias to _has_include fails
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Start by running the minimal C++ example with wave and compare its behavior with a direct __has_include() use. Then trace wave's preprocessing of macro expansion around the __has_include operator; done means the alias form processes successfully, including the googletest pattern linked in the issue.
Written by the indexing model from the issue text.
Description
Preprocessing code which creates an alias to _has_include() via #define FOO _has_include cannot be processed with wave.
A real world example for this is googletest, see here: https://github.com/google/googletest/blob/52eb8108c5bdec04579160ae17225d66034bd723/googletest/include/gtest/internal/gtest-port.h#L277-L281
A minimal test case for this is
#define HAS_INCLUDE __has_include
#if HAS_INCLUDE(<header>)
#endif
- Dominant language
- C++
- Stars
- 29
- Forks
- 55
- Avg merge
- 4d 13h
- Merged PRs (30d)
- 1
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from boostorg/wave
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
-
Switch to reusable CI flowMay be free again @jefftrull claimed this 194 days ago, and no pull request is open. Open
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
-
Is it possible? Dumping preprocessor state at end of output so that preprocessing can be resumed?Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
grumpycoders/pcsx-redux#2171 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bytedance/trae-agent#524 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
AcademySoftwareFoundation/openexr#2683 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
microsoft/onnxruntime#32881 ·
Maintainers usually reply within 1 day