llvm-project/clang/tools/diagtool
Tobias Grosser 741602461d Add 'remark' diagnostic type in 'clang'
A 'remark' is information that is not an error or a warning, but rather some
additional information provided to the user. In contrast to a 'note' a 'remark'
is an independent diagnostic, whereas a 'note' always depends on another
diagnostic.

A typical use case for remark nodes is information provided to the user, e.g.
information provided by the vectorizer about loops that have been vectorized.

This patch provides the initial implementation of 'remarks'. It includes the
actual definiton of the remark nodes, their printing as well as basic parameter
handling. We are reusing the existing diagnostic parameters which means a remark
can be enabled with normal '-Wdiagnostic-name' flags and can be upgraded to
an error using '-Werror=diagnostic-name'. '-Werror' alone does not upgrade
remarks.

This patch is by intention minimal in terms of parameter handling. More
experience and more discussions will most likely lead to further enhancements
in the parameter handling.

llvm-svn: 202475
2014-02-28 09:11:08 +00:00
..
CMakeLists.txt [CMake] Get rid of explicit dependencies to include/clang/*.inc and introduce CLANG_TABLEGEN_TARGETS. 2014-02-21 07:59:59 +00:00
DiagTool.cpp Sort #include lines for tools/... 2012-12-04 09:25:21 +00:00
DiagTool.h Sort #include lines for tools/... 2012-12-04 09:25:21 +00:00
DiagnosticNames.cpp Rather than duplicating extension diagnostics to allow them to cause a 2013-11-12 02:41:45 +00:00
DiagnosticNames.h Move individual group name strings from the OptionTable into one big char array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. 2013-08-29 05:18:04 +00:00
ListWarnings.cpp Sort #include lines for tools/... 2012-12-04 09:25:21 +00:00
Makefile [Driver] Refactor clang driver to use LLVM's Option library 2013-06-14 17:17:23 +00:00
ShowEnabledWarnings.cpp Add 'remark' diagnostic type in 'clang' 2014-02-28 09:11:08 +00:00
TreeView.cpp Move individual group name strings from the OptionTable into one big char array. Then only store offsets into it in the OptionTable. Saves about 4K from the clang binary and removes 400 relocation entries from DiagnosticIDs.o. 2013-08-29 05:18:04 +00:00
diagtool_main.cpp [diagtool] Write to llvm::outs() by default instead of llvm::errs() 2012-06-22 00:33:20 +00:00