llvm-project/clang/unittests/Basic
Jan Svoboda 40c261c41c [clang][cli] Generate and round-trip language options
This patch implements generation of remaining language options and tests it by performing parse-generate-parse round trip (on by default for assert builds, off otherwise).

This patch also correctly reports failures in `parseSanitizerKinds`, which is necessary for emitting diagnostics when an invalid sanitizer is passed to `-fsanitize=` during round-trip.

This patch also removes TableGen marshalling classes from two options:
* `fsanitize_blacklist` When parsing: it's first initialized via the generated code, but then also changed by manually written code, which is confusing.
* `fopenmp` When parsing: it's first initialized via generated code, but then conditionally changed by manually written code. This is also confusing. Moreover, we need to do some extra checks when generating it, which would be really cumbersome in TableGen. (Specifically, not emitting it when `-fopenmp-simd` was present.)

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D95793
2021-02-09 10:18:55 +01:00
..
CMakeLists.txt [clang][cli] Generate and round-trip language options 2021-02-09 10:18:55 +01:00
CharInfoTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DiagnosticTest.cpp [NFC] Refactor DiagnosticBuilder and PartialDiagnostic 2020-10-19 17:48:04 -04:00
FileEntryTest.cpp Silence warning: comparison of integers of different signs: 'const unsigned int' and 'const long' [-Wsign-compare] 2021-01-07 13:01:06 -05:00
FileManagerTest.cpp Reapply "FileManager: Improve the FileEntryRef API and customize its OptionalStorage" 2020-10-30 15:06:01 -04:00
LineOffsetMappingTest.cpp [clang][unittest] Don't hardcode the string "Assertion" 2020-10-26 18:10:56 +01:00
SanitizersTest.cpp [clang][cli] Generate and round-trip language options 2021-02-09 10:18:55 +01:00
SourceManagerTest.cpp SourceManager: Change SourceManager::isMainFile to take a FileEntry, NFC 2020-10-22 21:32:28 -04:00