(几乎)构建中的空源文件

发布于 2025-02-07 19:05:58 字数 357 浏览 1 评论 0原文

我有一个proxy.h包含一个抽象类,该类带有proxy.cpp。例如,通过实现类也包括该标头。但是,proxy.cpp仅包含以下内容:

#include "proxy.h"
namespace myNamespace {} // where the implementation of class proxy is inside this namespace, in the header

删除此文件不会破坏构建,因此我只能想象它提供了一些加速,缓存或类似的方法(使用bazel) ?谁能猜测/解释此源文件的目的?

I have a proxy.h containing an abstract class, which has a proxy.cpp alongside it. This header is also included elsewhere for example by implementing classes. However, proxy.cpp merely contains the following:

#include "proxy.h"
namespace myNamespace {} // where the implementation of class proxy is inside this namespace, in the header

Removing this file does not break the build, so I can only imagine it provides some speedup, caching or similar (using bazel)? Can anyone guess/explain the purpose of this source file?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文