]> granicus.if.org Git - clang/commit
[analyzer] Allow suppressing diagnostics reported within the 'std' namespace
authorJordan Rose <jordan_rose@apple.com>
Tue, 2 Apr 2013 00:26:15 +0000 (00:26 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 2 Apr 2013 00:26:15 +0000 (00:26 +0000)
commita12643622ad3b85972dfdd80fe9006a3e8d8fb80
tree27a231ef368ee15f32966304f5c43742f520f293
parentf12a25b55bee5ac1802c595b3014db091bbe635b
[analyzer] Allow suppressing diagnostics reported within the 'std' namespace

This is controlled by the 'suppress-c++-stdlib' analyzer-config flag.
It is currently off by default.

This is more suppression than we'd like to do, since obviously there can
be user-caused issues within 'std', but it gives us the option to wield
a large hammer to suppress false positives the user likely can't work
around.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178513 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/AnalyzerOptions.h
lib/StaticAnalyzer/Core/AnalyzerOptions.cpp
lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
test/Analysis/Inputs/system-header-simulator-cxx.h
test/Analysis/diagnostics/explicit-suppression.cpp [new file with mode: 0644]