llvm-project/clang/lib/Basic
Pavel Labath d8c6290ba4 Move VersionTuple from clang/Basic to llvm/Support
Summary:
This kind of functionality is useful to other project apart from clang.
LLDB works with version numbers a lot, but it does not have a convenient
abstraction for this. Moving this class to a lower level library allows
it to be freely used within LLDB.

Since this class is used in a lot of places in clang, and it used to be
in the clang namespace, it seemed appropriate to add it to the list of
adopted classes in LLVM.h to avoid prefixing all uses with "llvm::".

Also, I didn't find any tests specific for this class, so I wrote a
couple of quick ones for the more interesting bits of functionality.

Reviewers: zturner, erik.pilkington

Subscribers: mgorny, cfe-commits, llvm-commits

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

llvm-svn: 334399
2018-06-11 10:28:04 +00:00
..
Targets Revert r333791 "Cap "voluntary" vector alignment at 16 for all Darwin platforms." 2018-06-04 21:39:20 +00:00
Attributes.cpp Add #pragma clang attribute 2017-04-18 14:33:39 +00:00
Builtins.cpp Limit types of builtins that can be redeclared. 2018-04-16 21:30:08 +00:00
CMakeLists.txt Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
CharInfo.cpp
Cuda.cpp [CUDA] Enable CUDA compilation with CUDA-9.2 2018-04-24 18:23:19 +00:00
Diagnostic.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
DiagnosticIDs.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
DiagnosticOptions.cpp [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-02-16 23:40:07 +00:00
FileManager.cpp [Frontend] Honor UserFilesAreVolatile flag getting file buffer in ASTUnit 2018-06-06 07:17:26 +00:00
FileSystemStatCache.cpp [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-28 22:09:09 +00:00
IdentifierTable.cpp Add dump method for selectors 2018-05-31 14:45:32 +00:00
LangOptions.cpp [OpenCL] Factor out language version printing 2018-05-08 13:47:43 +00:00
MemoryBufferCache.cpp Reapply "Modules: Cache PCMs in memory and avoid a use-after-free" 2017-03-20 17:58:26 +00:00
Module.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
ObjCRuntime.cpp Move VersionTuple from clang/Basic to llvm/Support 2018-06-11 10:28:04 +00:00
OpenMPKinds.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
OperatorPrecedence.cpp Remove \brief commands from doxygen comments. 2018-05-09 01:00:01 +00:00
SanitizerBlacklist.cpp Allow specifying sanitizers in blacklists 2017-09-25 22:11:12 +00:00
SanitizerSpecialCaseList.cpp Update SanitizerSpecialCaseList to use renamed functions in base class. 2017-11-07 21:16:37 +00:00
Sanitizers.cpp [Basic] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2018-03-28 22:09:09 +00:00
SourceLocation.cpp PR37189 Fix incorrect end source location and spelling for a split '>>' token. 2018-04-30 05:25:48 +00:00
SourceManager.cpp Add SourceManagerForFile helper which sets up SourceManager and dependencies for a single file with code snippet 2018-05-09 21:35:52 +00:00
TargetInfo.cpp This diff includes changes for supporting the following types. 2018-06-04 16:07:52 +00:00
Targets.cpp [TargetInfo] Sort target features before passing them to the backend 2018-04-25 19:14:05 +00:00
Targets.h [CUDA] Revert defining __CUDA_ARCH__ for amdgcn targets 2018-04-09 15:43:01 +00:00
TokenKinds.cpp
Version.cpp
VirtualFileSystem.cpp [FileSystem] Split up the OpenFlags enumeration. 2018-06-07 19:58:58 +00:00
Warnings.cpp
XRayInstr.cpp [XRay] Add clang builtin for xray typed events. 2018-04-17 21:32:43 +00:00
XRayLists.cpp [XRay][llvm+clang] Consolidate attribute list files 2018-04-09 04:02:09 +00:00