forked from qt-creator/qt-creator
CPlusPlus: Inline SymbolVisitor functions
Change-Id: I46221428f2c883103839e57c8fc433f05302addd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
34
src/libs/3rdparty/cplusplus/SymbolVisitor.cpp
vendored
34
src/libs/3rdparty/cplusplus/SymbolVisitor.cpp
vendored
@@ -1,34 +0,0 @@
|
|||||||
// 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); }
|
|
||||||
|
|
8
src/libs/3rdparty/cplusplus/SymbolVisitor.h
vendored
8
src/libs/3rdparty/cplusplus/SymbolVisitor.h
vendored
@@ -21,7 +21,7 @@
|
|||||||
#ifndef SYMBOLVISITOR_H
|
#ifndef SYMBOLVISITOR_H
|
||||||
#define SYMBOLVISITOR_H
|
#define SYMBOLVISITOR_H
|
||||||
|
|
||||||
#include "CPlusPlusForwardDeclarations.h"
|
#include "Symbol.h"
|
||||||
|
|
||||||
|
|
||||||
namespace CPlusPlus {
|
namespace CPlusPlus {
|
||||||
@@ -32,10 +32,10 @@ class CPLUSPLUS_EXPORT SymbolVisitor
|
|||||||
void operator =(const SymbolVisitor &other);
|
void operator =(const SymbolVisitor &other);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SymbolVisitor();
|
SymbolVisitor() { }
|
||||||
virtual ~SymbolVisitor();
|
virtual ~SymbolVisitor() { }
|
||||||
|
|
||||||
void accept(Symbol *symbol);
|
void accept(Symbol *symbol) { Symbol::visitSymbol(symbol, this); }
|
||||||
|
|
||||||
virtual bool preVisit(Symbol *) { return true; }
|
virtual bool preVisit(Symbol *) { return true; }
|
||||||
virtual void postVisit(Symbol *) {}
|
virtual void postVisit(Symbol *) {}
|
||||||
|
1
src/libs/3rdparty/cplusplus/cplusplus.pri
vendored
1
src/libs/3rdparty/cplusplus/cplusplus.pri
vendored
@@ -61,7 +61,6 @@ SOURCES += \
|
|||||||
$$PWD/Bind.cpp \
|
$$PWD/Bind.cpp \
|
||||||
$$PWD/Symbol.cpp \
|
$$PWD/Symbol.cpp \
|
||||||
$$PWD/Symbols.cpp \
|
$$PWD/Symbols.cpp \
|
||||||
$$PWD/SymbolVisitor.cpp \
|
|
||||||
$$PWD/Token.cpp \
|
$$PWD/Token.cpp \
|
||||||
$$PWD/TranslationUnit.cpp \
|
$$PWD/TranslationUnit.cpp \
|
||||||
$$PWD/Type.cpp \
|
$$PWD/Type.cpp \
|
||||||
|
@@ -69,7 +69,6 @@ QtcLibrary {
|
|||||||
"Scope.h",
|
"Scope.h",
|
||||||
"Symbol.cpp",
|
"Symbol.cpp",
|
||||||
"Symbol.h",
|
"Symbol.h",
|
||||||
"SymbolVisitor.cpp",
|
|
||||||
"SymbolVisitor.h",
|
"SymbolVisitor.h",
|
||||||
"Symbols.cpp",
|
"Symbols.cpp",
|
||||||
"Symbols.h",
|
"Symbols.h",
|
||||||
|
Reference in New Issue
Block a user