Sha256: 3021b2c5bfa22887c1ad823ace8e3125dadd248e9fbb14d04750d31e02de34d7

Contents?: true

Size: 1.82 KB

Versions: 20

Compression:

Stored size: 1.82 KB

Contents

/*
  Copyright 2005 Harald Fernengel <harry@kdevelop.org>
  Copyright 2006 Hamish Rodda <rodda@kde.org>

  Permission to use, copy, modify, distribute, and sell this software and its
  documentation for any purpose is hereby granted without fee, provided that
  the above copyright notice appear in all copies and that both that
  copyright notice and this permission notice appear in supporting
  documentation.

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  KDEVELOP TEAM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#include "preprocessor.h"

#include <QFile>
#include <QTextStream>

#include "pp-stream.h"
#include "pp-engine.h"
#include "pp-environment.h"

using namespace rpp;

Preprocessor::~Preprocessor()
{
}

// QString Preprocessor::processString(const QString& string)
// {
//     pp proc(this);
// 
//     QString ret = QString::fromUtf8(proc.processFile("anonymous", string.toUtf8()));
// 
//     proc.environment()->cleanup();
// 
//     return ret;
// }

Stream * Preprocessor::sourceNeeded( QString & fileName, IncludeType type, int sourceLine, bool skipCurrentPath )
{
  Q_UNUSED(fileName)
  Q_UNUSED(type)
  Q_UNUSED(sourceLine)
  Q_UNUSED(skipCurrentPath)

  return 0;
}

void Preprocessor::headerSectionEnded(rpp::Stream& stream)
{
  Q_UNUSED(stream)
}

void Preprocessor::foundHeaderGuard(rpp::Stream& /*stream*/, IndexedString /*guardName*/)
{
}

Version data entries

20 entries across 20 versions & 2 rubygems

Version Path
rock-qtbindings-4.8.6.5 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.6.5 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.6.4 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.6.2 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.6.1 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.6.0 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.5.2 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.5.1 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.5.0 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.3.0-x86-mingw32 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.8.3.0 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.4-x86-mingw32 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.4 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.3 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.2-x86-mingw32 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.2 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.1 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.1-x86-mingw32 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.0 ext/generator/parser/rpp/preprocessor.cpp
qtbindings-4.6.3.0-x86-mingw32 ext/generator/parser/rpp/preprocessor.cpp