build: lib for the parser

lib_parser is new, its use by app and test

<description>
This commit is contained in:
Andreas Stallinger
2015-12-09 14:34:14 +01:00
parent a6648cafeb
commit 59d6143fbf
35 changed files with 169 additions and 216 deletions
@@ -0,0 +1,23 @@
#ifndef COMMENT_HANDLER_H
#define COMMENT_HANDLER_H
#include "clang/Lex/Preprocessor.h"
class FileRegister;
class ParserClient;
class CommentHandler
: public clang::CommentHandler
{
public:
CommentHandler(ParserClient* client, FileRegister* fileRegister);
virtual ~CommentHandler();
virtual bool HandleComment(clang::Preprocessor& preprocessor, clang::SourceRange sourceRange);
private:
ParserClient* m_client;
FileRegister* m_fileRegister;
};
#endif // COMMENT_HANDLER_H