llvm-project/clang/lib
Jordan Rose d65f1c8d6e [analyzer] RetainCountChecker: don't assume all functions have names.
Fixes a hard-to-reach crash when calling a non-member overloaded operator
with arguments that may be callbacks.

Future-proofing: don't make the same assumption in MallocSizeofChecker.
Aside from possibly respecting attributes in the future, it might be
possible to call 'malloc' through a function pointer.

I audited all other uses of FunctionDecl::getIdentifier() in the analyzer;
they all now correctly test to see if the identifier is present before
using it.

llvm-svn: 163012
2012-08-31 18:19:18 +00:00
..
ARCMigrate Fixed invalid iterators. Since the iterator is invalidated after the erase() call, we need to replace it with the new one returned. This was triggering an assert under MSVC 2012 and making all the ARCMT/ tests fail. 2012-08-31 17:28:09 +00:00
AST Remove the useless CommentOptions class. 2012-08-31 10:35:30 +00:00
ASTMatchers Fixes a bug for binding memoized match results. 2012-08-30 19:41:06 +00:00
Analysis Teach CFG that 'if (x & 0)' and 'if (x * 0)' is an unfeasible branch. 2012-08-24 07:42:09 +00:00
Basic Define __mips64 / __mips64__ macros for MIPS 64-bit targets. 2012-08-29 20:50:11 +00:00
CodeGen Change the representation of builtin functions in the AST 2012-08-31 00:14:07 +00:00
Driver Reland r160052: Default to -std=c++11 on Windows. 2012-08-30 02:08:31 +00:00
Edit Change the representation of builtin functions in the AST 2012-08-31 00:14:07 +00:00
Frontend Make AnalyzerOptions a shared object between CompilerInvocation and 2012-08-31 04:36:05 +00:00
FrontendTool Make AnalyzerOptions a shared object between CompilerInvocation and 2012-08-31 04:36:05 +00:00
Headers Add _rdrand{16,32,64}_step intrinsics to immintrin.h 2012-07-12 09:33:03 +00:00
Lex Make a bunch of methods on Lexer private. 2012-08-31 02:29:37 +00:00
Parse Extend the "__is_pod" hack, which demotes various type trait keywords 2012-08-30 20:04:43 +00:00
Rewrite Push ArrayRef through the Expr hierarchy. 2012-08-24 11:54:20 +00:00
Sema objective-C: underline name of the missing method 2012-08-31 17:03:18 +00:00
Serialization Change the representation of builtin functions in the AST 2012-08-31 00:14:07 +00:00
StaticAnalyzer [analyzer] RetainCountChecker: don't assume all functions have names. 2012-08-31 18:19:18 +00:00
Tooling Tooling: Add a runToolOnCodeWithArgs() function that allows 2012-08-30 02:02:19 +00:00
CMakeLists.txt Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00
Makefile Adds the AST Matcher library, which provides a in-C++ DSL to express 2012-07-06 05:48:52 +00:00