attribs.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Declarations and definitions dealing with attribute handling.
  2. Copyright (C) 2013-2015 Free Software Foundation, Inc.
  3. This file is part of GCC.
  4. GCC is free software; you can redistribute it and/or modify it under
  5. the terms of the GNU General Public License as published by the Free
  6. Software Foundation; either version 3, or (at your option) any later
  7. version.
  8. GCC is distributed in the hope that it will be useful, but WITHOUT ANY
  9. WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  11. for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with GCC; see the file COPYING3. If not see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef GCC_ATTRIBS_H
  16. #define GCC_ATTRIBS_H
  17. extern const struct attribute_spec *lookup_attribute_spec (const_tree);
  18. extern void init_attributes (void);
  19. /* Process the attributes listed in ATTRIBUTES and install them in *NODE,
  20. which is either a DECL (including a TYPE_DECL) or a TYPE. If a DECL,
  21. it should be modified in place; if a TYPE, a copy should be created
  22. unless ATTR_FLAG_TYPE_IN_PLACE is set in FLAGS. FLAGS gives further
  23. information, in the form of a bitwise OR of flags in enum attribute_flags
  24. from tree.h. Depending on these flags, some attributes may be
  25. returned to be applied at a later stage (for example, to apply
  26. a decl attribute to the declaration rather than to its type). */
  27. extern tree decl_attributes (tree *, tree, int);
  28. extern bool cxx11_attribute_p (const_tree);
  29. extern tree get_attribute_name (const_tree);
  30. extern void apply_tm_attr (tree, tree);
  31. #endif // GCC_ATTRIBS_H