]> granicus.if.org Git - clang/commit
Enhance Sema::DiagRuntimeBehavior() to delay some diagnostics to see if the related...
authorTed Kremenek <kremenek@apple.com>
Wed, 23 Feb 2011 01:52:04 +0000 (01:52 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 23 Feb 2011 01:52:04 +0000 (01:52 +0000)
commit351ba91eaa6d30e523587b2d7ed676a5172c6e56
treebab3939265bf7b3e8e922f978c9ac49701f7853e
parent42461eecee98fff3671b3c14ce10f1a9e18cc95c
Enhance Sema::DiagRuntimeBehavior() to delay some diagnostics to see if the related code is reachable.  This suppresses some
diagnostics that occur in unreachable code (e.g., -Warray-bound).

We only pay the cost of doing the reachability analysis when we issue one of these diagnostics.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126290 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/PartialDiagnostic.h
include/clang/Sema/ScopeInfo.h
lib/Sema/AnalysisBasedWarnings.cpp
lib/Sema/Sema.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaStmt.cpp
test/Sema/i-c-e.c
test/SemaCXX/array-bounds.cpp