Skip to content

josephch/compiler-output-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2b835ae · Aug 11, 2024

History

5 Commits
Jun 12, 2024
Jun 12, 2024
Jun 12, 2024
Jun 12, 2024
Aug 11, 2024
Jun 12, 2024
Jun 12, 2024
Jul 21, 2024
Aug 11, 2024
Jul 21, 2024
Aug 11, 2024

Repository files navigation

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.