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

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to