From 3c92c69bc7b0b216051d10a02536e566a27dea00 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 26 Sep 2013 18:11:00 +0200 Subject: Tag: add "pure" attributes --- src/tag/Tag.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tag') diff --git a/src/tag/Tag.hxx b/src/tag/Tag.hxx index 731d7cd58..395780cde 100644 --- a/src/tag/Tag.hxx +++ b/src/tag/Tag.hxx @@ -150,6 +150,7 @@ struct Tag { * Checks whether the tag contains one or more items with * the specified type. */ + gcc_pure bool HasType(tag_type type) const; private: @@ -160,6 +161,7 @@ private: * Parse the string, and convert it into a #tag_type. Returns * #TAG_NUM_OF_ITEM_TYPES if the string could not be recognized. */ +gcc_pure enum tag_type tag_name_parse(const char *name); @@ -169,6 +171,7 @@ tag_name_parse(const char *name); * * Case does not matter. */ +gcc_pure enum tag_type tag_name_parse_i(const char *name); -- cgit v1.2.3