llvm-project/clang/unittests
Rainer Orth 09d890d728 Move LangStandard*, InputKind::Language to Basic
This patch is a prerequisite for using LangStandard from Driver in
https://reviews.llvm.org/D64793.

It moves LangStandard* and InputKind::Language to Basic.  It is mostly
mechanical, with only a few changes of note:

- enum Language has been changed into enum class Language : uint8_t to
  avoid a clash between OpenCL in enum Language and OpenCL in enum
  LangFeatures and not to increase the size of class InputKind.

- Now that getLangStandardForName, which is currently unused, also checks
  both canonical and alias names, I've introduced a helper getLangKind
  which factors out a code pattern already used 3 times.

The patch has been tested on x86_64-pc-solaris2.11, sparcv9-sun-solaris2.11,
and x86_64-pc-linux-gnu.

There's a companion patch for lldb which uses LangStandard.h
(https://reviews.llvm.org/D65717).

While polly includes isl which in turn uses InputKind::C, that part of the
code isn't even built inside the llvm tree.  I've posted a patch to allow
for both InputKind::C and Language::C upstream
(https://groups.google.com/forum/#!topic/isl-development/6oEvNWOSQFE).

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

llvm-svn: 367864
2019-08-05 13:59:26 +00:00
..
AST [ASTImporter] Reorder fields after structure import is finished 2019-07-25 09:07:17 +00:00
ASTMatchers [clang] Remove IsDerivedFromDeathTest.DiesOnEmptyBaseName test. 2019-07-25 15:09:37 +00:00
Analysis Removed the test case added in D63538 due to windows buildbot failures 2019-07-05 14:22:10 +00:00
Basic Fix Windows branch of FileManagerTest changes 2019-08-01 21:58:56 +00:00
CodeGen cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
CrossTU [CrossTU] Add a function to retrieve original source location. 2019-07-24 10:16:37 +00:00
DirectoryWatcher [DirectoryWatcher] Relax assumption to prevent test flakiness 2019-08-01 23:24:30 +00:00
Driver cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
Format [clang-format] Fix a bug that doesn't break braces before unions for Allman 2019-08-02 04:30:42 +00:00
Frontend Move LangStandard*, InputKind::Language to Basic 2019-08-05 13:59:26 +00:00
Index cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
Lex [clang] Adopt new FileManager error-returning APIs 2019-08-01 21:31:56 +00:00
Rename cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
Rewrite [Rewrite] Try to fix buildbot link fail left by r365263 2019-07-06 16:28:32 +00:00
Sema cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
Serialization cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
StaticAnalyzer cmake: Add CLANG_LINK_CLANG_DYLIB option 2019-07-03 22:45:55 +00:00
Tooling [AST] Fix RecursiveASTVisitor visiting implicit constructor initializers. 2019-08-05 12:20:43 +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 Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00