Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
447cdad7
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
447cdad7
编写于
7月 19, 2017
作者:
S
siyangy
提交者:
Dong Li
7月 19, 2017
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add missing cpplint to common
上级
43197579
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
49 addition
and
16 deletion
+49
-16
modules/common/BUILD
modules/common/BUILD
+4
-0
modules/common/adapters/BUILD
modules/common/adapters/BUILD
+4
-0
modules/common/adapters/adapter.h
modules/common/adapters/adapter.h
+15
-6
modules/common/adapters/adapter_manager.h
modules/common/adapters/adapter_manager.h
+2
-0
modules/common/macro.h
modules/common/macro.h
+0
-1
modules/common/time/BUILD
modules/common/time/BUILD
+4
-0
modules/common/time/time.h
modules/common/time/time.h
+1
-1
modules/common/time/time_test.cc
modules/common/time/time_test.cc
+3
-4
modules/common/util/BUILD
modules/common/util/BUILD
+4
-0
modules/common/util/factory.h
modules/common/util/factory.h
+2
-0
modules/common/util/file.h
modules/common/util/file.h
+2
-2
modules/common/util/file_test.cc
modules/common/util/file_test.cc
+1
-1
modules/common/util/string_tokenizer.h
modules/common/util/string_tokenizer.h
+2
-1
modules/hmi/ros_node/BUILD
modules/hmi/ros_node/BUILD
+4
-0
modules/hmi/ros_node/ros_node_service.cc
modules/hmi/ros_node/ros_node_service.cc
+1
-0
未找到文件。
modules/common/BUILD
浏览文件 @
447cdad7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
...
...
@@ -42,3 +44,5 @@ cc_library(
"@ros//:ros_common"
,
],
)
cpplint
()
modules/common/adapters/BUILD
浏览文件 @
447cdad7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
...
...
@@ -86,3 +88,5 @@ cc_library(
"@glog//:glog"
,
],
)
cpplint
()
modules/common/adapters/adapter.h
浏览文件 @
447cdad7
...
...
@@ -28,9 +28,10 @@
#include <string>
#include <type_traits>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/message.h>
#include "glog/logging.h"
#include "google/protobuf/descriptor.h"
#include "google/protobuf/message.h"
#include "modules/common/adapters/adapter_gflags.h"
#include "modules/common/proto/header.pb.h"
#include "modules/common/time/time.h"
...
...
@@ -111,7 +112,9 @@ class Adapter {
/**
* @brief returns the topic name that this adapter listens to.
*/
const
std
::
string
&
topic_name
()
const
{
return
topic_name_
;
}
const
std
::
string
&
topic_name
()
const
{
return
topic_name_
;
}
/**
* @brief reads the proto message from the file, and push it into
...
...
@@ -201,14 +204,18 @@ class Adapter {
* queue. The caller can use it to iterate over the observed data
* from the head. The API also supports range based for loop.
*/
Iterator
begin
()
const
{
return
observed_queue_
.
begin
();
}
Iterator
begin
()
const
{
return
observed_queue_
.
begin
();
}
/**
* @brief returns an iterator representing the tail of the observing
* queue. The caller can use it to iterate over the observed data
* from the head. The API also supports range based for loop.
*/
Iterator
end
()
const
{
return
observed_queue_
.
end
();
}
Iterator
end
()
const
{
return
observed_queue_
.
end
();
}
/**
* @brief registers the provided callback function to the adapter,
...
...
@@ -216,7 +223,9 @@ class Adapter {
* message hits the adapter.
* @param callback the callback with signature void(const D &).
*/
void
SetCallback
(
Callback
callback
)
{
receive_callback_
=
callback
;
}
void
SetCallback
(
Callback
callback
)
{
receive_callback_
=
callback
;
}
/**
* @brief fills the fields module_name, timestamp_sec and
...
...
modules/common/adapters/adapter_manager.h
浏览文件 @
447cdad7
...
...
@@ -23,7 +23,9 @@
#include <functional>
#include <memory>
#include <string>
#include <type_traits>
#include <vector>
#include "modules/common/adapters/adapter.h"
#include "modules/common/adapters/message_adapters.h"
...
...
modules/common/macro.h
浏览文件 @
447cdad7
...
...
@@ -39,5 +39,4 @@
} \
DISALLOW_IMPLICIT_CONSTRUCTORS(classname) \
private:
#endif // MODULES_COMMON_MACRO_H_
modules/common/time/BUILD
浏览文件 @
447cdad7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
...
...
@@ -21,3 +23,5 @@ cc_test(
"@gtest//:main"
,
],
)
cpplint
()
modules/common/time/time.h
浏览文件 @
447cdad7
...
...
@@ -186,7 +186,7 @@ class Clock {
* @brief constructs the \class Clock instance
* @param is_system_clock See UseSystemClock.
*/
Clock
(
bool
is_system_clock
)
explicit
Clock
(
bool
is_system_clock
)
:
is_system_clock_
(
is_system_clock
),
mock_now_
(
Timestamp
())
{}
/**
...
...
modules/common/time/time_test.cc
浏览文件 @
447cdad7
...
...
@@ -53,7 +53,6 @@ TEST(TimeTest, TimestampFromAndToDouble) {
EXPECT_FLOAT_EQ
(
1234567.889923456
,
ToSecond
(
timestamp
));
}
TEST
(
TimeTest
,
MockTime
)
{
EXPECT_TRUE
(
Clock
::
IsSystemClock
());
Clock
::
UseSystemClock
(
false
);
...
...
@@ -65,6 +64,6 @@ TEST(TimeTest, MockTime) {
EXPECT_EQ
(
123
,
AsInt64
<
micros
>
(
Clock
::
Now
()));
}
}
// namespace time
}
// namespace common
}
// namespace apollo
}
// namespace time
}
// namespace common
}
// namespace apollo
modules/common/util/BUILD
浏览文件 @
447cdad7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
...
...
@@ -81,3 +83,5 @@ cc_test(
"@gtest//:main"
,
],
)
cpplint
()
modules/common/util/factory.h
浏览文件 @
447cdad7
...
...
@@ -24,6 +24,8 @@
#include <map>
#include <memory>
#include <utility>
#include "modules/common/log.h"
#include "modules/common/macro.h"
...
...
modules/common/util/file.h
浏览文件 @
447cdad7
...
...
@@ -29,8 +29,8 @@
#include <fstream>
#include <string>
#include
<google/protobuf/io/zero_copy_stream_impl.h>
#include
<google/protobuf/text_format.h>
#include
"google/protobuf/io/zero_copy_stream_impl.h"
#include
"google/protobuf/text_format.h"
#include "modules/common/log.h"
#include "modules/common/util/util.h"
...
...
modules/common/util/file_test.cc
浏览文件 @
447cdad7
...
...
@@ -77,6 +77,6 @@ TEST_F(FileTest, RemoveAllFiles) {
EXPECT_FALSE
(
GetProtoFromASCIIFile
(
path2
,
&
message
));
}
}
// namespace
file
}
// namespace
util
}
// namespace common
}
// namespace apollo
modules/common/util/string_tokenizer.h
浏览文件 @
447cdad7
...
...
@@ -44,7 +44,8 @@ class StringTokenizer {
* @param s String to be split
* @param delims Delimiters where the string should be split
*/
StringTokenizer
(
const
std
::
string
&
s
,
const
std
::
string
&
delims
=
" "
);
explicit
StringTokenizer
(
const
std
::
string
&
s
,
const
std
::
string
&
delims
=
" "
);
/**
* Destructor
...
...
modules/hmi/ros_node/BUILD
浏览文件 @
447cdad7
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_binary
(
...
...
@@ -17,3 +19,5 @@ cc_binary(
"@ros//:ros_common"
,
],
)
cpplint
()
modules/hmi/ros_node/ros_node_service.cc
浏览文件 @
447cdad7
...
...
@@ -17,6 +17,7 @@
#include "modules/hmi/ros_node/ros_node_service.h"
#include <chrono>
#include <memory>
#include <thread>
#include "gflags/gflags.h"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录