summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-04-02 00:26:15 +0000
committerJordan Rose <jordan_rose@apple.com>2013-04-02 00:26:15 +0000
commitd11ef1aaf784bdb1830ecfb8808937cc17cef32c (patch)
treede5ad496db91ce654eab4296f56352cef3e708cb /clang/test/Analysis/Inputs/system-header-simulator-cxx.h
parent24eea5d003e73e46e2259b8630e8105b8d67c901 (diff)
downloadbcm5719-llvm-d11ef1aaf784bdb1830ecfb8808937cc17cef32c.tar.gz
bcm5719-llvm-d11ef1aaf784bdb1830ecfb8808937cc17cef32c.zip
[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. llvm-svn: 178513
Diffstat (limited to 'clang/test/Analysis/Inputs/system-header-simulator-cxx.h')
-rw-r--r--clang/test/Analysis/Inputs/system-header-simulator-cxx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Analysis/Inputs/system-header-simulator-cxx.h b/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
index 03de527a02d..eee0e31a6f8 100644
--- a/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
+++ b/clang/test/Analysis/Inputs/system-header-simulator-cxx.h
@@ -73,6 +73,13 @@ namespace std {
struct nothrow_t {};
extern const nothrow_t nothrow;
+
+ template<class InputIter, class OutputIter>
+ OutputIter copy(InputIter II, InputIter IE, OutputIter OI) {
+ while (II != IE)
+ *OI++ = *II++;
+ return OI;
+ }
}
void* operator new(std::size_t, const std::nothrow_t&) throw();
OpenPOWER on IntegriCloud