[PATCH] D103750: [analyzer][WIP] Handle std::make_unique for SmartPtrModeling
Raphael Isemann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 11 01:23:04 PDT 2021
teemperor added a comment.
In D103750#2812613 <https://reviews.llvm.org/D103750#2812613>, @RedDocMD wrote:
> How do I set the C++ standard while running a test?
If I understand your language correctly, then see my inline comment.
================
Comment at: clang/test/Analysis/smart-ptr-text-output.cpp:4
// RUN: -analyzer-config cplusplus.SmartPtrModeling:ModelSmartPtrDereference=true\
// RUN: -analyzer-output=text -std=c++11 %s -verify=expected
----------------
You set the standard here via the `-std` arg. If you want different standards you need to have multiple `RUN:` lines that all pass a different standard.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103750/new/
https://reviews.llvm.org/D103750
More information about the cfe-commits
mailing list