]> granicus.if.org Git - clang/commit
Allow adding a value to a flag in diagnostics.
authorDiego Novillo <dnovillo@google.com>
Mon, 21 Apr 2014 23:16:03 +0000 (23:16 +0000)
committerDiego Novillo <dnovillo@google.com>
Mon, 21 Apr 2014 23:16:03 +0000 (23:16 +0000)
commit0da1b7016a9d5e5d25153fa3798351967fce1903
tree2a3d3ee3685d8c07e97b37c9a27d731d892a1f3e
parente2f48e941c2faecd1154ee8dec9458377b99aa4f
Allow adding a value to a flag in diagnostics.

Summary:
This allows callers of Diags.Report() to append a value to the name of
the flag associated with the diagnostic. This is useful in cases like
the -Rpass flag, where we want the diagnostic to show the name of the
pass that matched the pattern. Instead of showing "... [-Rpass]", this
allows us to show "... [-Rpass=passname]".

Reviewers: rsmith

CC: cfe-commits
Differential Revision: http://reviews.llvm.org/D3441

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206826 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h
lib/CodeGen/CodeGenAction.cpp
lib/Frontend/TextDiagnosticPrinter.cpp
test/Frontend/optimization-remark.c