src: fixed some clang tidy warnings

* implemented CxxDeclName constructors that just move the members
* removed empty destructors because they disable default move constructors
* removed some unnecessary code
* replaced ".size() == 0" with ".empty()" because it's more explicit
This commit is contained in:
mlangkabel
2017-12-27 18:46:56 +01:00
parent 8b21d57750
commit 4686ce7e91
42 changed files with 377 additions and 214 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ JavaParser::JavaParser(std::shared_ptr<ParserClient> client, std::shared_ptr<Fil
, m_id(s_nextParserId++)
{
const std::string errorString = utility::prepareJavaEnvironment();
if (errorString.size() > 0)
if (!errorString.empty())
{
LOG_ERROR(errorString);
}