Add 'remark' diagnostic type in 'clang'

Press ? to show keyboard shortcuts.
Committed
grosserFeb 28 2014, 1:11 AM
Parents
rL202474: Add 'remark' diagnostic type in LLVM
Branches
Unknown
Tags
Unknown
Subscribers
None
Description

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.

rL202475

cfe/trunk/docs/InternalsManual.rst

Loading...

cfe/trunk/docs/UsersManual.rst

Loading...

cfe/trunk/include/clang-c/Index.h

Loading...

cfe/trunk/include/clang/Basic/Diagnostic.h

Loading...

cfe/trunk/include/clang/Basic/Diagnostic.td

Loading...

cfe/trunk/include/clang/Basic/DiagnosticFrontendKinds.td

Loading...

cfe/trunk/include/clang/Basic/DiagnosticGroups.td

Loading...

cfe/trunk/include/clang/Basic/DiagnosticIDs.h

Loading...

cfe/trunk/lib/Basic/DiagnosticIDs.cpp

Loading...

cfe/trunk/lib/CodeGen/CodeGenAction.cpp

Loading...

cfe/trunk/lib/Frontend/LogDiagnosticPrinter.cpp

Loading...

cfe/trunk/lib/Frontend/PrintPreprocessedOutput.cpp

Loading...

cfe/trunk/lib/Frontend/TextDiagnostic.cpp

Loading...

cfe/trunk/tools/c-index-test/c-index-test.c

Loading...

cfe/trunk/tools/diagtool/ShowEnabledWarnings.cpp

Loading...

cfe/trunk/tools/libclang/CIndexDiagnostic.cpp

Loading...

cfe/trunk/tools/libclang/CXStoredDiagnostic.cpp

Loading...

cfe/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp

Loading...

Add Comment