Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Okular
Commits
6b80bc9f
Commit
6b80bc9f
authored
Dec 13, 2019
by
Albert Astals Cid
Browse files
Enable a CI with clang-tidy and modernize-redundant-void-arg
parent
c23acead
Pipeline
#12076
passed with stage
in 16 minutes and 47 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
6b80bc9f
...
...
@@ -16,3 +16,20 @@ build_ubuntu_18_04:
-
mkdir -p build && cd build
-
cmake -G Ninja ..
-
ninja
build_clang_tidy
:
stage
:
build
image
:
debian:unstable
only
:
-
merge_requests
before_script
:
-
echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
-
apt-get update
-
apt-get build-dep --yes --no-install-recommends okular
-
apt-get install --yes --no-install-recommends ninja-build clang clang-tidy python python-yaml libkf5crash-dev libkf5purpose-dev
script
:
-
mkdir -p build && cd build
-
CC=clang CXX=clang++ cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G Ninja ..
-
ninja
-
"
run-clang-tidy
-header-filter='.*'
-checks='-*,modernize-redundant-void-arg'
-config=
\"
{WarningsAsErrors:
'*'}
\"
"
generators/dvi/TeXFontDefinition.h
View file @
6b80bc9f
...
...
@@ -147,7 +147,7 @@ class TeXFontDefinition {
font_type
fontType
;
// Functions related to virtual fonts
void
read_VF_index
(
void
);
void
read_VF_index
();
};
#endif
generators/dvi/fontMap.h
View file @
6b80bc9f
...
...
@@ -88,7 +88,7 @@ class fontMap {
using the kpsewhich command, or if it cannot be read, or is
(partially) in an improper format, an error message is printed
to stderr using the kDebug() stream. */
fontMap
(
void
);
fontMap
();
/** find the name of a font file (e.g. 'ubkd8a.pfb') from a TeX font
name (e.g. 'rpbkd'). This method return a reference to
...
...
generators/fax/faxexpand.h
View file @
6b80bc9f
...
...
@@ -114,7 +114,7 @@ void g32expand(class pagenode *pn, drawfunc df);
void
g4expand
(
class
pagenode
*
pn
,
drawfunc
df
);
/* initialise code tables */
extern
void
fax_init_tables
(
void
);
extern
void
fax_init_tables
();
/* count lines in image */
extern
int
G3count
(
class
pagenode
*
pn
,
int
twoD
);
...
...
generators/fax/faxinit.cpp
View file @
6b80bc9f
...
...
@@ -315,7 +315,7 @@ FillTable(struct tabent *T, int Size, const struct proto *P, int State)
/* initialise the huffman code tables */
void
fax_init_tables
(
void
)
fax_init_tables
()
{
static
bool
already_initialized
=
false
;
if
(
already_initialized
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment