Skip to content

Commit ead3f28

Browse files
committed
Small enhancements for doxygen
1 parent 9c74d91 commit ead3f28

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

lib/errorlogger.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class CPPCHECKLIB ErrorLogger {
187187
void setfile(const std::string &file);
188188

189189
/**
190-
* Returns the location as a string. Format: [file:line]
190+
* @return the location as a string. Format: [file:line]
191191
*/
192192
std::string stringify() const;
193193

@@ -216,7 +216,8 @@ class CPPCHECKLIB ErrorLogger {
216216
* @param verbose use verbose message
217217
* @param outputFormat Empty string to use default output format
218218
* or template to be used. E.g. "{file}:{line},{severity},{id},{message}"
219-
*/
219+
* @return formatted string
220+
*/
220221
std::string toString(bool verbose, const std::string &outputFormat = "") const;
221222

222223
std::string serialize() const;

lib/path.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class CPPCHECKLIB Path {
108108
* @brief Check if the file extension indicates that it's a C/C++ source file.
109109
* Check if the file has source file extension: *.c;*.cpp;*.cxx;*.c++;*.cc;*.txx
110110
* @param filename filename to check. path info is optional
111-
* @return returns true if the file extension indicates it should be checked
111+
* @return true if the file extension indicates it should be checked
112112
*/
113113
static bool acceptFile(const std::string &filename) {
114114
const std::set<std::string> extra;
@@ -120,7 +120,7 @@ class CPPCHECKLIB Path {
120120
* Check if the file has source file extension: *.c;*.cpp;*.cxx;*.c++;*.cc;*.txx
121121
* @param filename filename to check. path info is optional
122122
* @param extra extra file extensions
123-
* @return returns true if the file extension indicates it should be checked
123+
* @return true if the file extension indicates it should be checked
124124
*/
125125
static bool acceptFile(const std::string &filename, const std::set<std::string> &extra);
126126

lib/symboldatabase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ class CPPCHECKLIB Scope {
723723
/**
724724
* @brief get the number of nested scopes that are not functions
725725
*
726-
* This returns the number of user defined types (class, struct, union)
726+
* @return the number of user defined types (class, struct, union)
727727
* that are defined in this user defined type or namespace.
728728
*/
729729
unsigned int getNestedNonFunctions() const;

lib/tokenize.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class CPPCHECKLIB Tokenizer {
4848
m_timerResults = tr;
4949
}
5050

51-
/** Returns the source file path. e.g. "file.cpp" */
51+
/** @return the source file path. e.g. "file.cpp" */
5252
const std::string& getSourceFilePath() const;
5353

5454
/** Is the code C. Used for bailouts */
@@ -494,7 +494,7 @@ class CPPCHECKLIB Tokenizer {
494494

495495
/**
496496
* Simplify e.g. 'atol("0")' into '0'
497-
* @return returns true if simplifcations performed and false otherwise.
497+
* @return true if simplifcations performed and false otherwise.
498498
*/
499499
bool simplifyMathFunctions();
500500

0 commit comments

Comments
 (0)