data: parse typedefs
- added callbacks that will be called when clang encounters typedefs. - added tests for this feature. review id = 20 fortune cookie message = New ideas could be profitable.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "data/parser/cxx/ASTActionFactory.h"
|
||||
#include "utility/logging/logging.h"
|
||||
#include "utility/text/TextAccess.h"
|
||||
|
||||
CxxParser::CxxParser(std::shared_ptr<ParserClient> client)
|
||||
: Parser(client)
|
||||
@@ -35,3 +36,9 @@ void CxxParser::parseFiles(const std::vector<std::string>& filePaths)
|
||||
|
||||
tool.run(&actionFactory);
|
||||
}
|
||||
|
||||
void CxxParser::parseFile(std::shared_ptr<TextAccess> textAccess)
|
||||
{
|
||||
ASTActionFactory actionFactory(m_client);
|
||||
clang::tooling::runToolOnCode(actionFactory.create(), textAccess->getText());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user