llvm-project/clang/unittests
Aaron Ballman b85be665b0 Fixed HasDeclarationMatcher to properly convert all types into decls where possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolvedUsingTypenameDecl(). Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types. Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType.
While this may seem like a lot of unrelated changes, they all relate back to fixing HasDeclarationMatcher.

This now allows us to write a matcher like:

varDecl(hasType(namedDecl(hasName("Foo"))))

that matches code using typedefs, objc interfaces, template type parameters, injected class names, or unresolved using typenames.

llvm-svn: 247404
2015-09-11 11:51:24 +00:00
..
AST Revert r240270 ("Fixed/added namespace ending comments using clang-tidy"). 2015-06-22 23:07:51 +00:00
ASTMatchers Fixed HasDeclarationMatcher to properly convert all types into decls where possible. Added objcObjectPointerType(), objcInterfaceDecl(), templateTypeParmType(), injectedClassNameType(), and unresolvedUsingTypenameDecl(). Updated documentation for pointerType() to call out that it does not match ObjCObjectPointerType types. Changed pointsTo() to handle ObjCObjectPointerType as well as PointerType. 2015-09-11 11:51:24 +00:00
Basic Fix -Wextra-semi warnings. 2015-07-22 20:46:26 +00:00
CodeGen Add two missing arguments. 2015-06-30 02:34:37 +00:00
Driver Update unit test for r232916. 2015-03-22 16:05:46 +00:00
Format clang-format: Don't let a leading "template <..>" lead to wrapped initializers. 2015-08-27 11:59:31 +00:00
Frontend Add a missing dependency to unittests/Frontend. 2015-07-10 15:47:36 +00:00
Lex Fix -Wextra-semi warnings. 2015-07-22 20:46:26 +00:00
Rewrite [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00
Sema Use 'override/final' instead of 'virtual' for overridden methods 2015-04-11 02:00:23 +00:00
StaticAnalyzer [analyzer] Individual configuration options can be specified for checkers. 2015-03-04 17:59:34 +00:00
Tooling Fix performance regression when running clang tools. 2015-09-08 15:14:06 +00:00
libclang Tweak libclang's users, c-arcmt-test, c-index-test and libclangTests to satisfy LDFLAGS=-static. 2015-07-12 12:17:55 +00:00
CMakeLists.txt Document problems when trying libclang tests on Windows 7. 2015-07-05 17:53:00 +00:00
Makefile [Rewrite] Make RewriteBuffer accessible on its own, and add a unit test for it. 2015-03-08 04:00:33 +00:00