buildroot/package/odb/0009-Handle-namespace-aliases-when-parsing-GCC-tree.patch
Adam Duskett b2266009be package/odb: new package
ODB is an open-source, cross-platform, and cross-database
object-relational mapping (ORM) system for C++. It allows you to
persist C++ objects to a relational database without having to deal
with tables, columns, or SQL and without manually writing any mapping
code.

ODB supports MySQL, SQLite, PostgreSQL, Oracle, and Microsoft SQL
Server relational databases as well as C++98/03 and C++11 language
standards.  It also comes with optional profiles for Boost and Qt
which allow you to seamlessly use value types, containers, and smart
pointers from these libraries in your persistent C++ classes.

This package is used for auto-generating ODB specific header files
into useable code that can be linked against a seperate libodb and a
specific libodb database library.  As such, it is only needed as a
host program and is not user selectable.

Signed-off-by: Adam Duskett <aduskett@gmail.com>
[Kamel: Fix incorrect odb license]
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
[Thomas: add patch fixing gcc10 build, add references to upstream
commits]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-07-12 12:44:43 +02:00

31 lines
779 B
Diff

From 2d37e44753c1e67de4658b6fdf95760432c74ead Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Fri, 5 Oct 2018 07:20:18 +0200
Subject: [PATCH] Handle namespace aliases when parsing GCC tree
[Upstream: 3a1788234bfaa96ee093b68e9ba02cf7d5bdffe6]
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
---
odb/parser.cxx | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/odb/parser.cxx b/odb/parser.cxx
index 30e45af..03bcb01 100644
--- a/odb/parser.cxx
+++ b/odb/parser.cxx
@@ -906,6 +906,11 @@ collect (tree ns)
continue;
#endif
+ // Ignore namespace aliases.
+ //
+ if (DECL_NAMESPACE_ALIAS (decl))
+ continue;
+
if (!DECL_IS_BUILTIN (decl) || DECL_NAMESPACE_STD_P (decl))
{
if (trace)
--
2.25.0