CodeModel(s): Unify name/values of accessed environment variables

Format: QTC_*=(1|0).

Now it's easier to change them in the Run Configuration of Qt Creator.

Change-Id: Ifc45cecb89b33a31942b4c3e2d03851a1d72d0bf
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Nikolai Kosjar
2014-03-06 14:42:01 -03:00
parent 311868a696
commit 0d84603c41
6 changed files with 11 additions and 7 deletions

View File

@@ -60,7 +60,7 @@
#include <QTextCursor>
#include <QTextDocument>
static const bool DebugTiming = !qgetenv("QTC_CLANG_VERBOSE").isEmpty();
static const bool DebugTiming = qgetenv("QTC_CLANG_VERBOSE") == "1";
using namespace ClangCodeModel;
using namespace ClangCodeModel::Internal;

View File

@@ -45,7 +45,7 @@ using namespace ClangCodeModel::Internal;
using namespace Core;
using namespace CppTools;
static const bool BeVerbose = !qgetenv("QTC_CLANG_VERBOSE").isEmpty();
static const bool BeVerbose = qgetenv("QTC_CLANG_VERBOSE") == "1";
namespace ClangCodeModel {
namespace Utils {

View File

@@ -41,7 +41,7 @@
#include <QDebug>
static const bool DebugTiming = !qgetenv("QTC_CLANG_VERBOSE").isEmpty();
static const bool DebugTiming = qgetenv("QTC_CLANG_VERBOSE") == "1";
using namespace ClangCodeModel;
using namespace ClangCodeModel::Internal;

View File

@@ -47,7 +47,7 @@ static QBasicAtomicInt unitDataCount = Q_BASIC_ATOMIC_INITIALIZER(0);
using namespace ClangCodeModel;
using namespace ClangCodeModel::Internal;
static const int DisplayDiagnostics = qgetenv("QTC_CLANG_VERBOSE").isEmpty() ? 0 : 1;
static const int DisplayDiagnostics = (qgetenv("QTC_CLANG_VERBOSE") == "1") ? 1 : 0;
Unit::Unit()
: m_index(0)