aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2021-05-11 06:40:48 -0700
committerErich Keane <erich.keane@intel.com>2021-05-12 12:48:47 -0700
commit08ba9ce1ef7214623d4104e72d817c73644a0884 (patch)
tree74c8b0fa5b5c032b25ad361769a491ce3d63a09a /clang/lib/Frontend/CompilerInvocation.cpp
parent4b014352308f7244b86438fff7c61c632934a1ff (diff)
downloadllvm-08ba9ce1ef7214623d4104e72d817c73644a0884.zip
llvm-08ba9ce1ef7214623d4104e72d817c73644a0884.tar.gz
llvm-08ba9ce1ef7214623d4104e72d817c73644a0884.tar.bz2
Suppress Deferred Diagnostics in discarded statements.
It doesn't really make sense to emit language specific diagnostics in a discarded statement, and suppressing these diagnostics results in a programming pattern that many users will feel is quite useful. Basically, this makes sure we only emit errors from the 'true' side of a 'constexpr if'. It does this by making the ExprEvaluatorBase type have an opt-in option as to whether it should visit discarded cases. Differential Revision: https://reviews.llvm.org/D102251
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions