Skip to content

gccfilter is a perl filter to colorize and simplify (or expand) gcc diagnostic messages. gccfilter is particularly aimed at g++ (i.e. dealinging with C++) messages which can contain lot of template-related errors or warnings difficult to sort out.

Notifications You must be signed in to change notification settings

licheng/gccfilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

gccfilter

Introduction

This version of gccfilter is a derived work from Emmanuel Le Trong's gccfilter project.

Description

Here follows the original description from Emmanuel Le Trong [email protected].

gccfilter is a perl filter to colorize and simplify (or expand) gcc diagnostic messages.

gccfilter is particularly aimed at g++ (i.e. dealinging with C++) messages which can contain lot of template-related errors or warnings difficult to sort out.

Features:

  • coloring of diagnostic messages (with customizable colors),
  • simplification of templated programs output: removal of "with" clauses, template arguments,
  • inline replacement of template arguments by their values,
  • removal of namespaces,
  • removal of instantiation chains.

There exists a somewhat similar tool colorgcc. However it seems to be unmaintained for years now and does only coloring.

Note that the script relies on several perl modules, namely:

  • Term::ANSIColor(3perl)
  • Getopt::ArgvFile(3pm)
  • Getopt::Long(3perl)
  • Regexp::Common(3pm)

So far it also requires perl version 5.9.4 or above (for the "state" keyword). If it's really a problem, let me know, i'll use a closure instead.

Author

Emmanuel Le Trong, [email protected]

Usage

Clone repo, grab gccfilter script and put it somewhere in your $PATH.

The man page is integrated in the file (type gccfilter -m). An original man page is available in HTML, but it is slightly outdated.

About

gccfilter is a perl filter to colorize and simplify (or expand) gcc diagnostic messages. gccfilter is particularly aimed at g++ (i.e. dealinging with C++) messages which can contain lot of template-related errors or warnings difficult to sort out.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages