llvm-project/clang/lib
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
..
ARCMigrate [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
AST Attempt to fix non-MSVC build 2014-02-28 01:12:55 +00:00
ASTMatchers [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Analysis [-Wunreachable-code] always treat 'case:' and 'default:' cases as reachable. 2014-02-27 21:56:47 +00:00
Basic Add 'remark' diagnostic type in 'clang' 2014-02-28 09:11:08 +00:00
CodeGen Add 'remark' diagnostic type in 'clang' 2014-02-28 09:11:08 +00:00
Driver Add support for OpenBSD SPARC assembler. 2014-02-28 01:55:21 +00:00
Edit [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Format [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Frontend Add 'remark' diagnostic type in 'clang' 2014-02-28 09:11:08 +00:00
FrontendTool [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Headers [_mm_prefetch] Returning previously deleted comment. 2014-02-22 00:47:24 +00:00
Index [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Lex Revert "Honour 'use-external-names' in FileManager" 2014-02-27 23:48:03 +00:00
Parse [OPENMP] First changes for Parsing and Sema for 'omp simd' directive support 2014-02-27 08:29:12 +00:00
Rewrite [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
Sema Fix crash with enable_if on constructors. 2014-02-28 05:26:13 +00:00
Serialization [OPENMP] First changes for Parsing and Sema for 'omp simd' directive support 2014-02-27 08:29:12 +00:00
StaticAnalyzer [analyzer] check for now possibly null predecessor edge. 2014-02-27 21:56:41 +00:00
Tooling [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
CMakeLists.txt Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00
Makefile Fix dependencies now that the ARC migrator depends on the static analyzer. 2013-08-22 15:50:02 +00:00