diff options
Diffstat (limited to 'sources/shiboken6/ApiExtractor/clangparser/clangbuilder.h')
-rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/clangbuilder.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.h b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.h new file mode 100644 index 000000000..b2ec6d304 --- /dev/null +++ b/sources/shiboken6/ApiExtractor/clangparser/clangbuilder.h @@ -0,0 +1,37 @@ +// Copyright (C) 2017 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#ifndef CLANGBUILDER_H +#define CLANGBUILDER_H + +#include "clangparser.h" + +#include <codemodel_fwd.h> + +namespace clang { + +class BuilderPrivate; + +class Builder : public BaseVisitor { +public: + Q_DISABLE_COPY_MOVE(Builder) + + Builder(); + ~Builder(); + + void setForceProcessSystemIncludes(const QStringList &systemIncludes); + + bool visitLocation(const QString &fileName, LocationType locationType) const override; + + StartTokenResult startToken(const CXCursor &cursor) override; + bool endToken(const CXCursor &cursor) override; + + FileModelItem dom() const; + +private: + BuilderPrivate *d; +}; + +} // namespace clang + +#endif // CLANGBUILDER_H |