llvm-project/clang/unittests
Artem Dergachev f301096f51 [analyzer] NFC: CallDescription: Implement describing C library functions.
When matching C standard library functions in the checker, it's easy to forget
that they are often implemented as macros that are expanded to builtins.

Such builtins would have a different name, so matching the callee identifier
would fail, or may sometimes have more arguments than expected, so matching
the exact number of arguments would fail, but this is fine as long as we have
all the arguments that we need in their respective places.

This patch adds a set of flags to the CallDescription class so that to handle
various special matching rules, and adds the first flag into this set,
which enables a more fuzzy matching for functions that
may be implemented as compiler builtins.

Differential Revision: https://reviews.llvm.org/D62556

llvm-svn: 364867
2019-07-01 23:02:07 +00:00
..
AST [ASTImporter] Mark erroneous nodes in shared st 2019-07-01 15:37:07 +00:00
ASTMatchers [clang] Adapt ASTMatcher to explicit(bool) specifier 2019-06-19 18:27:56 +00:00
Analysis [analyzer] Treat functions without run-time branches as "small". 2019-04-30 03:01:02 +00:00
Basic [FileSystemStatCache] Update test for new FileSystemStatCache API 2019-04-16 18:00:43 +00:00
CodeGen Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CrossTU Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Driver [Driver] Support priority for multilibs 2019-04-27 00:25:11 +00:00
Format clang-format: better handle namespace macros 2019-06-06 20:06:23 +00:00
Frontend [test] Reinstate the assignment to the diagnostic log in the unittest 2019-06-12 20:35:44 +00:00
Index [clang][Index] Fix msan failure 2019-03-08 10:18:40 +00:00
Lex Fix for r42230, MSVC test failure in DependencyDirectivesSourceMinimizerTest.cpp 2019-06-11 14:58:26 +00:00
Rename Rename clangToolingRefactor to clangToolingRefactoring for consistency with its directory 2019-05-25 00:27:19 +00:00
Rewrite Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Sema [CodeComplete] Set preferred type for qualified-id 2019-05-28 15:21:03 +00:00
Serialization Stop relying on allocator behaviour in modules unit test 2019-03-09 20:15:01 +00:00
StaticAnalyzer [analyzer] NFC: CallDescription: Implement describing C library functions. 2019-07-01 23:02:07 +00:00
Tooling [clang][Tooling] Fix windows build-bots after rL364386 2019-06-26 08:39:42 +00:00
libclang Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Modules: Rename MemoryBufferCache to InMemoryModuleCache 2019-03-09 17:33:56 +00:00