Skip to content
Permalink
4bc58bfaca
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (11 sloc) 415 Bytes
#ifndef __CSE3150_TESTING_PARSER14_H
#define __CSE3150_TESTING_PARSER14_H
#include <cppast/libclang_parser.hpp>
std::unique_ptr<cppast::cpp_file> simple_parse(const std::string& path) {
cppast::libclang_compile_config config;
cppast::cpp_entity_index idx;
cppast::stderr_diagnostic_logger logger;
cppast::libclang_parser parser(type_safe::ref(logger));
return parser.parse(idx, path, config);
}
#endif