summaryrefslogtreecommitdiffstats
path: root/clang/test/Analysis/templates.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [analyzer] Don't crash if a block doesn't have a type signature.Jordan Rose2013-05-221-0/+22
| | | | | | | | | | | Currently, blocks instantiated in templates lose their "signature as written"; it's not clear if this is intentional. Change the analyzer's use of BlockDecl::getSignatureAsWritten to check whether or not the signature is actually there. <rdar://problem/13954714> llvm-svn: 182497
* [analyzer] For now, don't inline C++ standard library functions.Jordan Rose2012-09-101-1/+7
| | | | | | | | | | | | | | | | This is a (heavy-handed) solution to PR13724 -- until we know we can do a good job inlining the STL, it's best to be consistent and not generate more false positives than we did before. We can selectively whitelist certain parts of the 'std' namespace that are known to be safe. This is controlled by analyzer config option 'c++-stdlib-inlining', which can be set to "true" or "false". This commit also adds control for whether or not to inline any templated functions (member or non-member), under the config option 'c++-template-inlining'. This option is currently on by default. llvm-svn: 163548
* [analyzer] Look through SubstNonTypeTemplateParmExprs.Jordan Rose2012-07-271-1/+16
| | | | | | | | | | | We were treating this like a CXXDefaultArgExpr, but SubstNonTypeTemplateParmExpr actually appears when a template is instantiated, i.e. we have all the information necessary to evaluate it. This allows us to inline functions like llvm::array_lengthof. <rdar://problem/11949235> llvm-svn: 160846
* [analyzer] Fix a crash in templated code which uses blocks.Anna Zaks2012-05-141-0/+29
We should investigate why signature info is not set in this case. llvm-svn: 156784
OpenPOWER on IntegriCloud