llvm-project/clang/unittests
Richard Sandiford fa8080376e [AST][SVE] Add new Type queries for sizeless types
One of the defining features of the SVE ACLE types is that they
are "sizeless"; see the SVE ACLE spec:

    https://developer.arm.com/docs/100987/0000/arm-c-language-extensions-for-sve

or the email message:

    http://lists.llvm.org/pipermail/cfe-dev/2019-June/062523.html

for a fuller definition of what that means.

This patch adds two associated type queries:

- isSizelessBuiltinType asks specifically about types that are built
  into clang.  It is effectively an enum range check.

- isSizelessType instead tests for any type that has the "sizeless" type
  property.  At the moment it only returns true for the built-in types,
  but it seems better not to hard-code that assumption throughout
  the codebase.  (E.g. we could in principle support some form of
  user-defined sizeless types in future.  Even if that seems unlikely
  and never actually happens, the possibility at least exists.)

Differential Revision: https://reviews.llvm.org/D75570
2020-03-12 16:30:50 +00:00
..
AST [AST][SVE] Add new Type queries for sizeless types 2020-03-12 16:30:50 +00:00
ASTMatchers [clang] Prune 'IsOMPStructuredBlock' Stmt bit 2020-03-12 14:48:57 +03:00
Analysis [ASTMatchers] StringRef'ify hasName 2020-01-29 10:53:08 +01:00
Basic Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CodeGen Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
CrossTU [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
DirectoryWatcher [DirectoryWatcher] Fix misuse of FSEvents API and data race 2020-02-11 09:25:38 -08:00
Driver Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
Format Revert "[clang-format] Add option to specify explicit config file" 2020-03-11 16:14:42 -04:00
Frontend Avoid including FileManager.h from SourceManager.h 2020-03-11 13:53:12 -07:00
Index [clang][Index] Visit the default parameter arguements in libindex. 2020-02-17 16:45:04 +01:00
Lex Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Rename Make builtbot happy. 2020-02-25 17:04:38 +01:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Serialization Revert "[modules] Do not cache invalid state for modules that we attempted to load." 2020-03-10 10:59:26 -07:00
StaticAnalyzer [analyzer][NFC] Refactor the checker registration unit test file 2020-03-09 16:38:30 +01:00
Tooling Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
libclang Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
CMakeLists.txt [clang] [unittest] Import LLVMTestingSupport if necessary 2019-09-12 13:06:12 +00:00