Commit 50a685f8 authored by hjk's avatar hjk

CPlusPlus: Inline SymbolVisitor functions

Change-Id: I46221428f2c883103839e57c8fc433f05302addd
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 62ee0736
// Copyright (c) 2008 Roberto Raggi <roberto.raggi@gmail.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// 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
// AUTHORS OR COPYRIGHT HOLDERS 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 "SymbolVisitor.h"
#include "Symbol.h"
using namespace CPlusPlus;
SymbolVisitor::SymbolVisitor()
{ }
SymbolVisitor::~SymbolVisitor()
{ }
void SymbolVisitor::accept(Symbol *symbol)
{ Symbol::visitSymbol(symbol, this); }
......@@ -21,7 +21,7 @@
#ifndef SYMBOLVISITOR_H
#define SYMBOLVISITOR_H
#include "CPlusPlusForwardDeclarations.h"
#include "Symbol.h"
namespace CPlusPlus {
......@@ -32,10 +32,10 @@ class CPLUSPLUS_EXPORT SymbolVisitor
void operator =(const SymbolVisitor &other);
public:
SymbolVisitor();
virtual ~SymbolVisitor();
SymbolVisitor() { }
virtual ~SymbolVisitor() { }
void accept(Symbol *symbol);
void accept(Symbol *symbol) { Symbol::visitSymbol(symbol, this); }
virtual bool preVisit(Symbol *) { return true; }
virtual void postVisit(Symbol *) {}
......
......@@ -61,7 +61,6 @@ SOURCES += \
$$PWD/Bind.cpp \
$$PWD/Symbol.cpp \
$$PWD/Symbols.cpp \
$$PWD/SymbolVisitor.cpp \
$$PWD/Token.cpp \
$$PWD/TranslationUnit.cpp \
$$PWD/Type.cpp \
......
......@@ -69,7 +69,6 @@ QtcLibrary {
"Scope.h",
"Symbol.cpp",
"Symbol.h",
"SymbolVisitor.cpp",
"SymbolVisitor.h",
"Symbols.cpp",
"Symbols.h",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment