forked from qt-creator/qt-creator
Cmb: Workaround for gcc 4.7 bug
The default constructor has no noexcept specifier for gcc 4.7 Change-Id: If204c19e21bc368d755c8d6508fd490f71be6f6c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
6c780c765e
commit
e2d60fdcc3
@@ -46,6 +46,12 @@ public:
|
|||||||
|
|
||||||
const char *what() const Q_DECL_NOEXCEPT override;
|
const char *what() const Q_DECL_NOEXCEPT override;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if !__GNUC_PREREQ(4,8)
|
||||||
|
~ProjectPartDoNotExistException() noexcept {}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Utf8StringVector projectPartIds_;
|
Utf8StringVector projectPartIds_;
|
||||||
mutable Utf8String what_;
|
mutable Utf8String what_;
|
||||||
|
|||||||
@@ -45,6 +45,12 @@ public:
|
|||||||
|
|
||||||
const char *what() const Q_DECL_NOEXCEPT override;
|
const char *what() const Q_DECL_NOEXCEPT override;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if !__GNUC_PREREQ(4,8)
|
||||||
|
~TranslationUnitDoesNotExistException() noexcept {}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
FileContainer fileContainer_;
|
FileContainer fileContainer_;
|
||||||
mutable Utf8String what_;
|
mutable Utf8String what_;
|
||||||
|
|||||||
@@ -46,6 +46,12 @@ public:
|
|||||||
|
|
||||||
const char *what() const Q_DECL_NOEXCEPT override;
|
const char *what() const Q_DECL_NOEXCEPT override;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if !__GNUC_PREREQ(4,8)
|
||||||
|
~TranslationUnitFileNotExitsException() noexcept {}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Utf8String filePath_;
|
Utf8String filePath_;
|
||||||
mutable Utf8String what_;
|
mutable Utf8String what_;
|
||||||
|
|||||||
@@ -41,6 +41,12 @@ class TranslationUnitIsNullException : public std::exception
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
const char *what() const Q_DECL_NOEXCEPT override;
|
const char *what() const Q_DECL_NOEXCEPT override;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if !__GNUC_PREREQ(4,8)
|
||||||
|
~TranslationUnitIsNullException() noexcept {}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace CodeModelBackEnd
|
} // namespace CodeModelBackEnd
|
||||||
|
|||||||
@@ -47,6 +47,12 @@ public:
|
|||||||
|
|
||||||
const char *what() const Q_DECL_NOEXCEPT override;
|
const char *what() const Q_DECL_NOEXCEPT override;
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
# if !__GNUC_PREREQ(4,8)
|
||||||
|
~TranslationUnitParseErrorException() noexcept {}
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Utf8String filePath_;
|
Utf8String filePath_;
|
||||||
Utf8String projectPartId_;
|
Utf8String projectPartId_;
|
||||||
|
|||||||
Reference in New Issue
Block a user