Defining an alias to _has_include fails
还没有人认领这个 Issue。
评估
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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
- 主要语言
- C++
- 星标
- 29
- 派生
- 56
- 平均合并
- 1 天 15 小时
- 30 天内合并 PR
- 4
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
boostorg/wave 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 3/5 1-2 天 新手友好度 65/100
-
难度 4/5 3-5 天 新手友好度 45/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 56/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
mpfaffenberger/privateer_reimagined#658 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
microsoft/onnxruntime#33018 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
AXERA-TECH/ax-llm#81 ·
-
enhancement
难度 2/5 半天 新手友好度 78/100
ros-industrial/ros2_canopen#448 ·
-
难度 1/5 1 小时以内 新手友好度 78/100
维护者通常 1 天内回复