]> granicus.if.org Git - clang/commit
Allow diagnostics to be used in bool context, like:
authorChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 21:53:02 +0000 (21:53 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 18 Nov 2008 21:53:02 +0000 (21:53 +0000)
commit95d1ba492c3191f49392e53acbf878e39fc8ba0a
treeccba6d441ab10506741836ed83ebca79014adb84
parent204b2fed909b1eabea7aeb6caadd7cff718edee5
Allow diagnostics to be used in bool context, like:

return Diag(...);

when the function returns bool.  This always evaluates to true.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59555 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Diagnostic.h