Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.4 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.4 KB

Compiler Output Parser

Parses compiler output and populates error, warning and messages in a structured manner.

Description

Compiler Output Parser is a header only library, which provides an API to parse compiler output a single line at a time.

Getting Started

Dependencies

Getting the source

git clone https://github.com/josephch/compiler-output-parser.git

Compiler Output Parser depends on compile-time-regular-expressions libraries. Please make sure that it is installed. It is present also as a submodule, can be fetched via

git submodule init
git submodule update

Using the library

  • Sample code
#include "compiler_output_parser.hpp"
void fn()
{
   std::string testLine = "/home/test/file/path/test.cpp:3:10: fatal error: test.h: No such file or directory";
   CompilerOutputLineInfo info = GetCompilerOutputLineInfo(testLine);
}

Authors

Contributors names and contact info

Christo Joseph twitter

License

This project is licensed under the GPL V3 License - see the LICENSE.md file for details

Acknowledgments

Inspiration, code snippets, etc.