Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Harfbuzz
提交
f7a08cd4
T
Third Party Harfbuzz
项目概览
OpenHarmony
/
Third Party Harfbuzz
接近 2 年 前同步成功
通知
1
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Harfbuzz
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f7a08cd4
编写于
10月 30, 2018
作者:
E
Ebrahim Byagowi
提交者:
GitHub
10月 30, 2018
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix extra semicolon issues and test that on CI (#1330)
上级
422debb8
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
15 addition
and
15 deletion
+15
-15
.circleci/config.yml
.circleci/config.yml
+1
-1
src/hb-machinery.hh
src/hb-machinery.hh
+8
-8
src/hb-ot-layout-common.hh
src/hb-ot-layout-common.hh
+3
-3
src/hb-ot-layout-gsubgpos.hh
src/hb-ot-layout-gsubgpos.hh
+1
-1
src/hb.hh
src/hb.hh
+1
-1
util/options.hh
util/options.hh
+1
-1
未找到文件。
.circleci/config.yml
浏览文件 @
f7a08cd4
...
@@ -120,7 +120,7 @@ jobs:
...
@@ -120,7 +120,7 @@ jobs:
-
run
:
apt update ||
true
-
run
:
apt update ||
true
-
run
:
apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
-
run
:
apt install -y clang lld binutils libtool autoconf automake make pkg-config gtk-doc-tools ragel libfreetype6-dev libfontconfig1-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python python-pip
-
run
:
pip install fonttools
-
run
:
pip install fonttools
-
run
:
CFLAGS="-Weverything -Wno-reserved-id-macro -Wno-conversion -Wno-padded -Wno-sign-conversion -Wno-cast-qual -Wno-documentation -Wno-documentation-unknown-command" CXXFLAGS="-Weverything -Wno-old-style-cast -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-cast-qual -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-padded -Wno-shorten-64-to-32 -Wno-
extra-semi -Wno-
reserved-id-macro -Wno-float-conversion -Wno-format-pedantic -Wno-shadow -Wno-conversion -Wno-zero-as-null-pointer-constant -Wno-missing-field-initializers -Wno-used-but-marked-unused -Wno-unused-macros -Wno-comma -Wno-float-equal -Wno-disabled-macro-expansion -Wno-weak-vtables -Wno-unused-parameter -Wno-covered-switch-default -Wno-unreachable-code" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
-
run
:
CFLAGS="-Weverything -Wno-reserved-id-macro -Wno-conversion -Wno-padded -Wno-sign-conversion -Wno-cast-qual -Wno-documentation -Wno-documentation-unknown-command" CXXFLAGS="-Weverything -Wno-old-style-cast -Wno-documentation -Wno-documentation-unknown-command -Wno-c++98-compat -Wno-cast-qual -Wno-c++98-compat-pedantic -Wno-sign-conversion -Wno-padded -Wno-shorten-64-to-32 -Wno-reserved-id-macro -Wno-float-conversion -Wno-format-pedantic -Wno-shadow -Wno-conversion -Wno-zero-as-null-pointer-constant -Wno-missing-field-initializers -Wno-used-but-marked-unused -Wno-unused-macros -Wno-comma -Wno-float-equal -Wno-disabled-macro-expansion -Wno-weak-vtables -Wno-unused-parameter -Wno-covered-switch-default -Wno-unreachable-code" CC=clang CXX=clang++ ./autogen.sh --with-freetype --with-glib --with-cairo --with-icu --with-graphite2 --with-fontconfig
-
run
:
make -j32 CPPFLAGS="-Werror"
-
run
:
make -j32 CPPFLAGS="-Werror"
-
run
:
make check CPPFLAGS="-Werror" || .ci/fail.sh
-
run
:
make check CPPFLAGS="-Werror" || .ci/fail.sh
...
...
src/hb-machinery.hh
浏览文件 @
f7a08cd4
...
@@ -95,30 +95,30 @@ static inline Type& StructAfter(TObject &X)
...
@@ -95,30 +95,30 @@ static inline Type& StructAfter(TObject &X)
#define DEFINE_SIZE_STATIC(size) \
#define DEFINE_SIZE_STATIC(size) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)); \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size)) \
inline unsigned int get_size (void) const { return (size); } \
enum { static_size = (size) }; \
enum { static_size = (size) }; \
enum { min_size = (size) }; \
enum { min_size = (size) }
inline unsigned int get_size (void) const { return (size); }
#define DEFINE_SIZE_UNION(size, _member) \
#define DEFINE_SIZE_UNION(size, _member) \
DEFINE_INSTANCE_ASSERTION (0*sizeof(this->u._member.static_size) + sizeof(this->u._member) == (size))
;
\
DEFINE_INSTANCE_ASSERTION (0*sizeof(this->u._member.static_size) + sizeof(this->u._member) == (size)) \
static const unsigned int min_size = (size)
static const unsigned int min_size = (size)
#define DEFINE_SIZE_MIN(size) \
#define DEFINE_SIZE_MIN(size) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size))
;
\
DEFINE_INSTANCE_ASSERTION (sizeof (*this) >= (size)) \
static const unsigned int min_size = (size)
static const unsigned int min_size = (size)
#define DEFINE_SIZE_ARRAY(size, array) \
#define DEFINE_SIZE_ARRAY(size, array) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + VAR * sizeof (array[0]))
;
\
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + VAR * sizeof (array[0])) \
DEFINE_COMPILES_ASSERTION ((void) array[0].static_size) \
DEFINE_COMPILES_ASSERTION ((void) array[0].static_size) \
enum { min_size = (size) }
\
enum { min_size = (size) }
#define DEFINE_SIZE_ARRAY_SIZED(size, array) \
#define DEFINE_SIZE_ARRAY_SIZED(size, array) \
inline unsigned int get_size (void) const { return (size - array.min_size + array.get_size ()); } \
inline unsigned int get_size (void) const { return (size - array.min_size + array.get_size ()); } \
DEFINE_SIZE_ARRAY(size, array)
DEFINE_SIZE_ARRAY(size, array)
#define DEFINE_SIZE_ARRAY2(size, array1, array2) \
#define DEFINE_SIZE_ARRAY2(size, array1, array2) \
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0]))
;
\
DEFINE_INSTANCE_ASSERTION (sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0])) \
DEFINE_COMPILES_ASSERTION ((void) array1[0].static_size; (void) array2[0].static_size) \
DEFINE_COMPILES_ASSERTION ((void) array1[0].static_size; (void) array2[0].static_size) \
static const unsigned int min_size = (size)
static const unsigned int min_size = (size)
...
...
src/hb-ot-layout-common.hh
浏览文件 @
f7a08cd4
...
@@ -860,8 +860,8 @@ struct CoverageFormat1
...
@@ -860,8 +860,8 @@ struct CoverageFormat1
public:
public:
/* Older compilers need this to be public. */
/* Older compilers need this to be public. */
struct
Iter
{
struct
Iter
{
inline
void
init
(
const
struct
CoverageFormat1
&
c_
)
{
c
=
&
c_
;
i
=
0
;
}
;
inline
void
init
(
const
struct
CoverageFormat1
&
c_
)
{
c
=
&
c_
;
i
=
0
;
}
inline
void
fini
(
void
)
{}
;
inline
void
fini
(
void
)
{}
inline
bool
more
(
void
)
{
return
i
<
c
->
glyphArray
.
len
;
}
inline
bool
more
(
void
)
{
return
i
<
c
->
glyphArray
.
len
;
}
inline
void
next
(
void
)
{
i
++
;
}
inline
void
next
(
void
)
{
i
++
;
}
inline
hb_codepoint_t
get_glyph
(
void
)
{
return
c
->
glyphArray
[
i
];
}
inline
hb_codepoint_t
get_glyph
(
void
)
{
return
c
->
glyphArray
[
i
];
}
...
@@ -988,7 +988,7 @@ struct CoverageFormat2
...
@@ -988,7 +988,7 @@ struct CoverageFormat2
i
=
c
->
rangeRecord
.
len
;
i
=
c
->
rangeRecord
.
len
;
}
}
}
}
inline
void
fini
(
void
)
{}
;
inline
void
fini
(
void
)
{}
inline
bool
more
(
void
)
{
return
i
<
c
->
rangeRecord
.
len
;
}
inline
bool
more
(
void
)
{
return
i
<
c
->
rangeRecord
.
len
;
}
inline
void
next
(
void
)
inline
void
next
(
void
)
{
{
...
...
src/hb-ot-layout-gsubgpos.hh
浏览文件 @
f7a08cd4
...
@@ -271,7 +271,7 @@ struct hb_ot_apply_context_t :
...
@@ -271,7 +271,7 @@ struct hb_ot_apply_context_t :
syllable
arg1
(
0
),
syllable
arg1
(
0
),
#undef arg1
#undef arg1
match_func
(
nullptr
),
match_func
(
nullptr
),
match_data
(
nullptr
)
{}
;
match_data
(
nullptr
)
{}
typedef
bool
(
*
match_func_t
)
(
hb_codepoint_t
glyph_id
,
const
HBUINT16
&
value
,
const
void
*
data
);
typedef
bool
(
*
match_func_t
)
(
hb_codepoint_t
glyph_id
,
const
HBUINT16
&
value
,
const
void
*
data
);
...
...
src/hb.hh
浏览文件 @
f7a08cd4
...
@@ -360,7 +360,7 @@ static_assert ((sizeof (hb_var_int_t) == 4), "");
...
@@ -360,7 +360,7 @@ static_assert ((sizeof (hb_var_int_t) == 4), "");
#define HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \
#define HB_NO_CREATE_COPY_ASSIGN_TEMPLATE2(TypeName, T1, T2) \
TypeName(void); \
TypeName(void); \
TypeName(const TypeName<T1, T2>&); \
TypeName(const TypeName<T1, T2>&); \
void operator=(const TypeName<T1, T2>&)
;
void operator=(const TypeName<T1, T2>&)
#else
/* __cpluspplus >= 201103L */
#else
/* __cpluspplus >= 201103L */
...
...
util/options.hh
浏览文件 @
f7a08cd4
...
@@ -536,7 +536,7 @@ struct text_options_t : option_group_t
...
@@ -536,7 +536,7 @@ struct text_options_t : option_group_t
g_set_error
(
error
,
g_set_error
(
error
,
G_OPTION_ERROR
,
G_OPTION_ERROR_BAD_VALUE
,
G_OPTION_ERROR
,
G_OPTION_ERROR_BAD_VALUE
,
"Only one of text and text-file can be set"
);
"Only one of text and text-file can be set"
);
}
;
}
const
char
*
get_line
(
unsigned
int
*
len
);
const
char
*
get_line
(
unsigned
int
*
len
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录