From f2e7183867a56103f1f7b624f5762d29bf8b146f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Jul 2011 13:22:48 +0200 Subject: Store location along with pragma value in semantic graph context --- odb/parser.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odb/parser.cxx b/odb/parser.cxx index 09ee490..fda4579 100644 --- a/odb/parser.cxx +++ b/odb/parser.cxx @@ -1886,6 +1886,7 @@ process_pragmas (tree t, tmp[j] = '-'; node.set (tmp, i->value); + node.set (tmp + "-loc", i->loc); } } @@ -1916,6 +1917,7 @@ process_named_pragmas (tree t, node& node) tmp[j] = '-'; node.set (tmp, i->value); + node.set (tmp + "-loc", i->loc); } } -- cgit v1.1