diff options
author | Sergio Martins <smartins@kde.org> | 2017-10-03 11:27:43 +0100 |
---|---|---|
committer | Sergio Martins <iamsergio@gmail.com> | 2017-10-03 11:27:43 +0100 |
commit | 1d3e06d686f80b869bc84a67a3c28fb715919aa8 (patch) | |
tree | e4e3ce19ea12fcc4ee5fd792232babbcdcf9639d /src | |
parent | d5d37320a95dcec243b11c8894e4dfac396f4f97 (diff) | |
parent | f3229edff7232b52523ca3bec34c84dfe907e45c (diff) |
Merge branch '1.2' into master
Diffstat (limited to 'src')
-rw-r--r-- | src/checks/level2/qstring-allocations.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/checks/level2/qstring-allocations.cpp b/src/checks/level2/qstring-allocations.cpp index 1ff1fcf4..42b3c22b 100644 --- a/src/checks/level2/qstring-allocations.cpp +++ b/src/checks/level2/qstring-allocations.cpp @@ -29,6 +29,7 @@ #include "StringUtils.h" #include "FixItUtils.h" #include "FunctionUtils.h" +#include "QtUtils.h" #include "checkmanager.h" #include <clang/AST/DeclCXX.h> @@ -69,6 +70,12 @@ QStringAllocations::QStringAllocations(const std::string &name, ClazyContext *co void QStringAllocations::VisitStmt(clang::Stmt *stm) { + if (QtUtils::isBootstrapping(m_preprocessorOpts)) { + // During bootstrap many QString::fromLatin1() are used instead of tr(), which causes + // much noise + return; + } + VisitCtor(stm); VisitOperatorCall(stm); VisitFromLatin1OrUtf8(stm); |