]> granicus.if.org Git - clang/commit
Move VersionTuple from clang/Basic to llvm/Support
authorPavel Labath <labath@google.com>
Mon, 11 Jun 2018 10:28:04 +0000 (10:28 +0000)
committerPavel Labath <labath@google.com>
Mon, 11 Jun 2018 10:28:04 +0000 (10:28 +0000)
commitb55ee77aa74ce8eea68ce3f31165286c0b1e2b5e
tree30a9ce2334ac432730a9fd651f1c3037690f5d9b
parent31ffb93ee67c05611c1ac53063d1da76021160fe
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334399 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
include/clang/AST/Attr.h
include/clang/AST/Availability.h
include/clang/AST/DeclBase.h
include/clang/AST/ExprObjC.h
include/clang/Basic/AlignedAllocation.h
include/clang/Basic/LLVM.h
include/clang/Basic/ObjCRuntime.h
include/clang/Basic/TargetInfo.h
include/clang/Basic/VersionTuple.h [deleted file]
include/clang/Driver/ToolChain.h
include/clang/Parse/Parser.h
include/clang/Sema/AttributeList.h
include/clang/Serialization/ASTReader.h
include/clang/Serialization/ASTWriter.h
lib/AST/DeclBase.cpp
lib/Basic/CMakeLists.txt
lib/Basic/ObjCRuntime.cpp
lib/Basic/VersionTuple.cpp [deleted file]
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains/Cuda.h
lib/Frontend/CompilerInvocation.cpp
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTWriter.cpp