/* -*- Mode: C++; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Tartan
* Copyright © 2013 Collabora Ltd.
*
* Tartan is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Tartan is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Tartan. If not, see .
*
* Authors:
* Philip Withnall
*/
#ifndef TARTAN_GASSERT_ATTRIBUTES_H
#define TARTAN_GASSERT_ATTRIBUTES_H
#include
#include
#include
namespace tartan {
using namespace clang;
class GAssertAttributesConsumer : public clang::ASTConsumer {
public:
GAssertAttributesConsumer ();
~GAssertAttributesConsumer ();
private:
void _handle_function_decl (FunctionDecl& func);
public:
virtual bool HandleTopLevelDecl (DeclGroupRef decl_group);
};
} /* namespace tartan */
#endif /* !TARTAN_GASSERT_ATTRIBUTES_H */