修复fix_any.h在cpplint上的报错#75438
Merged
Merged
Conversation
|
你的PR提交成功,感谢你对开源项目的贡献! |
luotao1
approved these changes
Sep 24, 2025
wanglezz
pushed a commit
to wanglezz/Paddle
that referenced
this pull request
Sep 25, 2025
* fix_any.h * test2 * test3 * test4 * test5 * test6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Category
Execute Infrastructure
PR Types
Bug fixes
Description
修复fix_any.h当前文件在cpplint上的报错,主要涉及到:
注:
// NOLINT(runtime/explicit)// TODO(name): add BOOST_TYPEID_COMPARE_BY_NAME to config.hpp中的(name)请改为实际id// NOLINT(runtime/explicit),boost::any的设计就是按值返回,按照cpplint如果修改成const会导致和下面函数定义重复,如果改成指针,会改变接口语义,调用处全都要改