diff --git a/cppcheck.h b/cppcheck.h index c79d0164b..972b1ce37 100644 --- a/cppcheck.h +++ b/cppcheck.h @@ -83,8 +83,21 @@ class CppCheck : public ErrorLogger private: void checkFile(const std::string &code, const char FileName[]); + + /** + * Errors and warnings are directed here. + * + * @param errmsg Errors messages are normally in format + * "[filepath:line number] Message", e.g. + * "[main.cpp:4] Uninitialized member variable" + */ virtual void reportErr( const std::string &errmsg); - //void reportErr( const TOKEN *token, const std::string &errmsg); + + /** + * Information about progress is directed here. + * + * @param outmsg, E.g. "Checking main.cpp..." + */ virtual void reportOut( const std::string &outmsg); std::list _errorList; diff --git a/cppcheckexecutor.cpp b/cppcheckexecutor.cpp index 7d9a5b847..b37dfbd8d 100644 --- a/cppcheckexecutor.cpp +++ b/cppcheckexecutor.cpp @@ -1,3 +1,21 @@ +/* + * c++check - c/c++ syntax checking + * Copyright (C) 2007-2008 Daniel Marjamäki and Reijo Tomperi + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see diff --git a/cppcheckexecutor.h b/cppcheckexecutor.h index 9da0e278c..e89fac405 100644 --- a/cppcheckexecutor.h +++ b/cppcheckexecutor.h @@ -1,18 +1,71 @@ +/* + * c++check - c/c++ syntax checking + * Copyright (C) 2007-2008 Daniel Marjamäki and Reijo Tomperi + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see