Skip to content

Commit 079c360

Browse files
committed
Merge branch 'master' of github.com:doxygen/doxygen
2 parents 1335337 + 252b1a7 commit 079c360

File tree

11 files changed

+16
-15
lines changed

11 files changed

+16
-15
lines changed

cmake/CompilerWarnings.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ function(set_project_warnings project_name)
9696
-Wdouble-promotion # warn if float is implicit promoted to double
9797
-Wformat=2 # warn on security issues around functions that format output
9898
# (ie printf)
99+
$<$<COMPILE_LANGUAGE:CXX>:-Wextra-semi>
99100

100101
# turn off warning caused by generated code (flex)
101102
-Wno-unused-parameter

src/configimpl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class ConfigList : public ConfigOption
137137
WidgetType widgetType() const { return m_widgetType; }
138138
StringVector *valueRef() { return &m_value; }
139139
StringVector getDefault() { return m_defaultValue; }
140-
void emptyValueToDefault() override { if (m_value.empty() && !m_defaultValue.empty()) m_value=m_defaultValue; };
140+
void emptyValueToDefault() override { if (m_value.empty() && !m_defaultValue.empty()) m_value=m_defaultValue; }
141141
void writeTemplate(TextStream &t,bool sl,bool) override;
142142
void compareDoxyfile(TextStream &t,Config::CompareMode compareMode) override;
143143
void writeXMLDoxyfile(TextStream &t) override;
@@ -205,7 +205,7 @@ class ConfigString : public ConfigOption
205205
void writeXSDDoxyfile(TextStream &t) override;
206206
void substEnvVars() override;
207207
void init() override { m_value = m_defValue; }
208-
void emptyValueToDefault() override { if (m_value.isEmpty()) m_value=m_defValue; };
208+
void emptyValueToDefault() override { if (m_value.isEmpty()) m_value=m_defValue; }
209209
bool isDefault() override { return m_value.stripWhiteSpace() == m_defValue.stripWhiteSpace(); }
210210

211211
private:

src/definition.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@ class FilterCache
688688
assert(startLineOffset <= endLineOffset);
689689
const size_t fragmentSize = endLineOffset-startLineOffset;
690690
return std::tie(startLineOffset,fragmentSize);
691-
};
691+
}
692692

693693
//! Shrinks buffer \a str which should hold the contents of \a fileName to the
694694
//! fragment starting a line \a startLine and ending at line \a endLine

src/docgroup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Entry;
2424
class DocGroup
2525
{
2626
public:
27-
DocGroup() {};
27+
DocGroup() {}
2828

2929
public:
3030
void enterFile(const QCString &fileName,int);

src/growvector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ class GrowVector
6969
Iterator operator++(int) { Iterator tmp = *this; ++(*this); return tmp; }
7070
Iterator& operator--() { m_pos--; return *this; }
7171
Iterator operator--(int) { Iterator tmp = *this; --(*this); return tmp; }
72-
friend bool operator== (const Iterator& a, const Iterator& b) { return a.m_pos == b.m_pos; };
73-
friend bool operator!= (const Iterator& a, const Iterator& b) { return a.m_pos != b.m_pos; };
72+
friend bool operator== (const Iterator& a, const Iterator& b) { return a.m_pos == b.m_pos; }
73+
friend bool operator!= (const Iterator& a, const Iterator& b) { return a.m_pos != b.m_pos; }
7474

7575
private:
7676
C *m_vec;

src/htmlgen.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,9 +355,9 @@ class HtmlGenerator : public OutputGenerator, public OutputGenIntf
355355
int indent = 0;
356356
int maxLevel = 0;
357357
BoolVector inLi;
358-
void writeIndent(TextStream &t) { for (int i=0;i<indent*2;i++) t << " "; };
359-
void incIndent(TextStream &t,const QCString &text) { writeIndent(t); t << text << "\n"; indent++; };
360-
void decIndent(TextStream &t,const QCString &text) { indent--; writeIndent(t); t << text << "\n"; };
358+
void writeIndent(TextStream &t) { for (int i=0;i<indent*2;i++) t << " "; }
359+
void incIndent(TextStream &t,const QCString &text) { writeIndent(t); t << text << "\n"; indent++; }
360+
void decIndent(TextStream &t,const QCString &text) { indent--; writeIndent(t); t << text << "\n"; }
361361
};
362362
TocState m_tocState;
363363
};

src/lexscanner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LexOutlineParser : public OutlineParserInterface
3434
const char *fileBuf,
3535
const std::shared_ptr<Entry> &root,
3636
ClangTUParser *clangParser) override;
37-
bool needsPreprocessing(const QCString &/* extension */) const override { return TRUE; };
37+
bool needsPreprocessing(const QCString &/* extension */) const override { return TRUE; }
3838
void parsePrototype(const QCString &/* text */) override {}
3939

4040
private:

src/mangen.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ class ManGenerator : public OutputGenerator, public OutputGenIntf
222222
void endDescTableTitle() override { endBoldEmphasis(); }
223223
void startDescTableRow() override {}
224224
void endDescTableRow() override {}
225-
void startDescTableInit() override {};
226-
void endDescTableInit() override {};
225+
void startDescTableInit() override {}
226+
void endDescTableInit() override {}
227227
void startDescTableData() override { m_t << "\n"; m_firstCol=TRUE; }
228228
void endDescTableData() override {}
229229

src/rtfgen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class RTFGenerator : public OutputGenerator, public OutputGenIntf
186186
void endDoxyAnchor(const QCString &,const QCString &) override;
187187
void addLabel(const QCString &,const QCString &) override;
188188
void writeChar(char c) override;
189-
void writeLatexSpacing() override {};//{ m_t << "\\hspace{0.3cm}"; }
189+
void writeLatexSpacing() override {}//{ m_t << "\\hspace{0.3cm}"; }
190190
void writeStartAnnoItem(const QCString &type,const QCString &file,
191191
const QCString &path,const QCString &name) override;
192192
void startCenter() override { m_t << "{\\qc\n"; }

src/vhdldocgen.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ struct VhdlConfNode
5252
compSpec=cs;
5353
isInlineConf=false; // primary configuration?
5454
isLeaf=leaf;
55-
};
55+
}
5656

5757
QCString confVhdl;
5858
QCString arch;

0 commit comments

Comments
 (0)