c-ada-spec.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* Interface for -fdump-ada-spec capability.
  2. Copyright (C) 2010-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 C_ADA_SPEC_H
  16. #define C_ADA_SPEC_H
  17. #include "pretty-print.h"
  18. /* In c-ada-spec.c */
  19. typedef enum {
  20. IS_ABSTRACT,
  21. IS_CONSTRUCTOR,
  22. IS_DESTRUCTOR,
  23. IS_COPY_CONSTRUCTOR,
  24. IS_TEMPLATE,
  25. IS_TRIVIAL
  26. } cpp_operation;
  27. extern location_t decl_sloc (const_tree, bool);
  28. extern void collect_ada_nodes (tree, const char *);
  29. extern void collect_source_ref (const char *);
  30. extern void dump_ada_specs (void (*)(const char *),
  31. int (*)(tree, cpp_operation));
  32. #endif /* ! C_ADA_SPEC_H */