Files
qt-creator/src/tools/clangbackend/ipcsource/translationunitparseerrorexception.h
Nikolai Kosjar ac0a852f90 Revert "Cmb: Workaround for gcc 4.7 bug"
This reverts commmit e2d60fdcc3 because we
require "g++ 4.8 or later" nowadays.

Change-Id: I1ce7b37bbf8c73ce4466a35b36fd66e680339fe9
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2016-08-18 12:20:13 +00:00

56 lines
1.8 KiB
C++

/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#pragma once
#include <utf8string.h>
#include <clang-c/Index.h>
#include <exception>
namespace ClangBackEnd {
class TranslationUnitParseErrorException : public std::exception
{
public:
TranslationUnitParseErrorException(const Utf8String &filePath,
const Utf8String &projectPartId,
CXErrorCode errorCode);
const Utf8String &filePath() const;
const Utf8String &projectPartId() const;
const char *what() const Q_DECL_NOEXCEPT override;
private:
Utf8String filePath_;
Utf8String projectPartId_;
CXErrorCode errorCode_;
mutable Utf8String what_;
};
} // namespace ClangBackEnd